|
@@ -20,6 +20,7 @@ interface
|
|
{ force ansistrings }
|
|
{ force ansistrings }
|
|
{$H+}
|
|
{$H+}
|
|
|
|
|
|
|
|
+{$DEFINE OS_FILESETDATEBYNAME}
|
|
{$DEFINE HAS_SLEEP}
|
|
{$DEFINE HAS_SLEEP}
|
|
{$DEFINE HAS_OSERROR}
|
|
{$DEFINE HAS_OSERROR}
|
|
{$DEFINE HAS_OSCONFIG}
|
|
{$DEFINE HAS_OSCONFIG}
|
|
@@ -646,6 +647,19 @@ begin
|
|
Result := fpAccess(PChar(FileName),W_OK)<>0;
|
|
Result := fpAccess(PChar(FileName),W_OK)<>0;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+Function FileSetDate (Const FileName : String;Age : Longint) : Longint;
|
|
|
|
+
|
|
|
|
+var
|
|
|
|
+ t: TUTimBuf;
|
|
|
|
+
|
|
|
|
+begin
|
|
|
|
+ Result := 0;
|
|
|
|
+ t.actime := Age;
|
|
|
|
+ t.modtime := Age;
|
|
|
|
+ if fputime(PChar(FileName), @t) = -1 then
|
|
|
|
+ Result := fpgeterrno;
|
|
|
|
+end;
|
|
|
|
+
|
|
{****************************************************************************
|
|
{****************************************************************************
|
|
Disk Functions
|
|
Disk Functions
|
|
****************************************************************************}
|
|
****************************************************************************}
|
|
@@ -1023,6 +1037,8 @@ begin
|
|
Result:=fpgetErrNo;
|
|
Result:=fpgetErrNo;
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
{ ---------------------------------------------------------------------
|
|
{ ---------------------------------------------------------------------
|
|
Application config files
|
|
Application config files
|
|
---------------------------------------------------------------------}
|
|
---------------------------------------------------------------------}
|