mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 19:09:23 +02:00
* FileGetDate added
This commit is contained in:
parent
65d78b71d2
commit
8a68f96c56
@ -190,17 +190,36 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
Function FileGetDate (Handle : Longint) : Longint;
|
function FileGetDate (Handle: longint): longint; assembler;
|
||||||
|
asm
|
||||||
begin
|
mov ax, 5700h
|
||||||
//!! Needs implementing
|
mov ebx, Handle
|
||||||
|
call syscall
|
||||||
|
mov eax, -1
|
||||||
|
jc @FGetDateEnd
|
||||||
|
mov ax, dx
|
||||||
|
shld eax, cx, 16
|
||||||
|
@FGetDateEnd:
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
Function FileSetDate (Handle,Age : Longint) : Longint;
|
function FileSetDate (Handle, Age: longint): longint;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
//!! Needs implementing
|
if os_mode = osOS2 then
|
||||||
|
begin
|
||||||
|
{TODO: !!! Must be done differently for OS/2 !!!}
|
||||||
|
end
|
||||||
|
else
|
||||||
|
asm
|
||||||
|
mov ax, 5701h
|
||||||
|
mov ebx, Handle
|
||||||
|
mov cx, word ptr [Age]
|
||||||
|
mov dx, word ptr [Age + 2]
|
||||||
|
call syscall
|
||||||
|
jnc @FSetDateEnd
|
||||||
|
mov eax, -1
|
||||||
|
@FSetDateEnd:
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -342,7 +361,10 @@ end;
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.8 2000-05-29 17:59:58 hajny
|
Revision 1.9 2000-06-01 18:36:50 hajny
|
||||||
|
* FileGetDate added
|
||||||
|
|
||||||
|
Revision 1.8 2000/05/29 17:59:58 hajny
|
||||||
* FindClose implemented
|
* FindClose implemented
|
||||||
|
|
||||||
Revision 1.7 2000/05/28 18:22:58 hajny
|
Revision 1.7 2000/05/28 18:22:58 hajny
|
||||||
|
Loading…
Reference in New Issue
Block a user