git-svn-id: trunk@44013 - (cherry picked from commit 69956cd97a3178add5b81947079f8c13b8755b37)
@@ -182,7 +182,7 @@ begin
end;
-function FileGetDate(Handle: THandle) : LongInt;
+function FileGetDate(Handle: THandle) : Int64;
var
tmpFIB : PFileInfoBlock;
tmpDateTime: TDateTime;
@@ -76,7 +76,7 @@ begin
td: TDOSTIME;
begin
@@ -52,8 +52,7 @@ begin
result := -1;
-
-function FileGetDate(Handle: LongInt) : LongInt;
@@ -838,7 +838,7 @@ begin
-function FileGetDate (Handle: longint): longint; assembler;
+function FileGetDate (Handle: longint): Int64; assembler;
asm
push ebx
{$IFDEF REGCALL}
@@ -854,10 +854,11 @@ asm
shld eax, ecx, 16
@FGetDateEnd:
pop ebx
+ xorl edx,edx
end {['eax', 'ebx', 'ecx', 'edx']};
-function FileSetDate (Handle, Age: longint): longint;
+function FileSetDate (Handle: longint; Age: Int64): longint;
var FStat: PFileStatus3;
RC: cardinal;
@@ -61,13 +61,13 @@ begin
+function FileGetDate(Handle: LongInt) : Int64;
-function FileSetDate(Handle, Age: Int64) : LongInt;
+function FileSetDate(Handle: Longint; Age: Int64) : LongInt;
@@ -424,7 +424,7 @@ begin
-Function FileGetDate (Handle : Longint) : Longint;
+Function FileGetDate (Handle : Longint) : Int64;
Regs: registers;
@@ -435,14 +435,11 @@ begin
if Regs.Flags and CarryFlag <> 0 then
result := -1
else
- begin
- LongRec(result).Lo := Regs.cx;
- LongRec(result).Hi := Regs.dx;
- end ;
+ result:=(Regs.dx shl 16) or Regs.cx;
-Function FileSetDate (Handle, Age : Int64) : Longint;
+Function FileSetDate (Handle: longint; Age: Int64) : Longint;
@@ -446,7 +446,7 @@ begin
(*
Var Info : Stat;
@@ -462,7 +462,7 @@ begin
-Function FileSetDate (Handle,Age : Int64) : Longint;
+Function FileSetDate (Handle: Longint; Age: Int64) : Longint;
// TODO fix
@@ -423,7 +423,7 @@ begin
-Function FileGetDate (Handle : THandle) : Longint;
+Function FileGetDate (Handle : THandle) : Int64;
@@ -434,10 +434,7 @@ begin
if Regs.Flags and fCarry <> 0 then
@@ -853,7 +853,7 @@ Begin
-function FileGetDate(Handle: THandle): Longint;
+function FileGetDate(Handle: THandle): Int64;
res: NTSTATUS;
basic: FILE_BASIC_INFORMATION;
@@ -70,13 +70,13 @@ begin
+function FileSetDate(Handle: LongInt; Age: Int64) : LongInt;
@@ -362,7 +362,7 @@ begin
Var Info : NWStatBufT;
PTM : PNWTM;
@@ -336,7 +336,7 @@ BEGIN
END;
{
Function FileSetAttr (Const Filename : String; Attr: longint) : Longint;
}
PROCEDURE SysUtilsTest;
@@ -354,7 +354,7 @@ end;
Var Info : TStat;
_PTM : PTM;
@@ -537,7 +537,7 @@ end;
type
TAbstractSearchRec = Record
- Time : Longint;
+ Time : Int64;
Size : Int64;
Attr : Longint;
{ this will be assigned by the generic code; it is actually either a
@@ -356,7 +356,7 @@ begin
-function FileGetDate (Handle: THandle): longint;
+function FileGetDate (Handle: THandle): Int64;
FStat: TFileStatus3;
Time: Longint;
@@ -376,7 +376,7 @@ begin
FileGetDate:=Time;
-function FileSetDate (Handle: THandle; Age: longint): longint;
+function FileSetDate (Handle: THandle; Age: Int64): longint;
FStat: PFileStatus3;
@@ -53,7 +53,7 @@ begin
@@ -406,7 +406,7 @@ begin
@@ -60,13 +60,13 @@ begin
@@ -650,7 +650,7 @@ end;
Var
FT : TFileTime;
tmpdtime : longint;
@@ -449,7 +449,7 @@ begin
@@ -461,10 +461,7 @@ begin
+ Result:=(Regs.dx shl 16) or Regs.cx;
@@ -361,7 +361,7 @@ begin