mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 17:49:13 +02:00
* fix utimensat and utimensat if the rtl is compiled with -dFPC_USE_LIBC
This commit is contained in:
parent
654d75b777
commit
9ee2eee293
@ -552,8 +552,8 @@ Type
|
|||||||
function statx(dfd: cint; filename: PAnsiChar; flags,mask: cuint; var buf: tstatx):cint; {$ifdef FPC_USE_LIBC} cdecl; weakexternal name 'statx'; {$ENDIF}
|
function statx(dfd: cint; filename: PAnsiChar; flags,mask: cuint; var buf: tstatx):cint; {$ifdef FPC_USE_LIBC} cdecl; weakexternal name 'statx'; {$ENDIF}
|
||||||
|
|
||||||
{$ifndef android}
|
{$ifndef android}
|
||||||
Function utimensat(dfd: cint; path:PAnsiChar;const times:tkernel_timespecs;flags:cint):cint; {$ifdef FPC_USE_LIBC} cdecl; external name 'utimensat'; {$ENDIF}
|
Function utimensat(dfd: cint; path:PAnsiChar;const times:TTimespecArr;flags:cint):cint; {$ifdef FPC_USE_LIBC} cdecl; external name 'utimensat'; {$ENDIF}
|
||||||
Function futimens(fd: cint; const times:tkernel_timespecs):cint; {$ifdef FPC_USE_LIBC} cdecl; external name 'futimens'; {$ENDIF}
|
Function futimens(fd: cint; const times:TTimespecArr):cint; {$ifdef FPC_USE_LIBC} cdecl; external name 'futimens'; {$ENDIF}
|
||||||
{$endif android}
|
{$endif android}
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
@ -877,7 +877,7 @@ end;
|
|||||||
|
|
||||||
|
|
||||||
{$ifndef android}
|
{$ifndef android}
|
||||||
Function utimensat(dfd: cint; path:PAnsiChar;const times:tkernel_timespecs;flags:cint):cint;
|
Function utimensat(dfd: cint; path:PAnsiChar;const times:TTimespecArr;flags:cint):cint;
|
||||||
var
|
var
|
||||||
tsa: Array[0..1] of timespec;
|
tsa: Array[0..1] of timespec;
|
||||||
begin
|
begin
|
||||||
@ -897,7 +897,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
Function futimens(fd: cint; const times:tkernel_timespecs):cint;
|
Function futimens(fd: cint; const times:TTimespecArr):cint;
|
||||||
var
|
var
|
||||||
tsa: Array[0..1] of timespec;
|
tsa: Array[0..1] of timespec;
|
||||||
begin
|
begin
|
||||||
@ -916,6 +916,7 @@ begin
|
|||||||
{$endif sizeof(clong)<=4}
|
{$endif sizeof(clong)<=4}
|
||||||
end;
|
end;
|
||||||
{$endif android}
|
{$endif android}
|
||||||
|
|
||||||
{$endif not FPC_USE_LIBC}
|
{$endif not FPC_USE_LIBC}
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user