* another bunch of *stat* wrappers

git-svn-id: trunk@1231 -
This commit is contained in:
florian 2005-09-29 21:06:25 +00:00
parent 3e5bb17b2c
commit aacae3fb55
2 changed files with 42 additions and 8 deletions

View File

@ -51,7 +51,6 @@ function fstat(__fd:longint; __buf:Pstat):longint;
function lstat(__file:Pchar; __buf:Pstat):longint;
begin
__lxstat(_STAT_VER,__file,__buf);
end;
@ -70,7 +69,6 @@ function fstat64(__fd:longint; __buf:Pstat64):longint;
function lstat64(__file:Pchar; __buf:Pstat64):longint;
begin
__lxstat64(_STAT_VER,__file,__buf);
end;
@ -80,3 +78,39 @@ function stat64(__file:Pchar; __buf:Pstat64):longint;
begin
__xstat64(_STAT_VER,__file,__buf);
end;
function stat(__file:Pchar; var __buf:_stat):longint;
begin
__xstat(_STAT_VER,__file,__buf);
end;
function fstat(__fd:longint; var __buf:_stat):longint;
begin
__fxstat(_STAT_VER,__fd,__buf);
end;
function stat64(__file:Pchar; var __buf: _stat64):longint;
begin
__xstat64(_STAT_VER,__file,__buf);
end;
function fstat64(__fd:longint; var __buf: _stat64):longint;
begin
__fxstat64(_STAT_VER,__fd,__buf);
end;
function lstat(__file:Pchar; var __buf:_stat):longint;
begin
__lxstat(_STAT_VER,__file,__buf);
end;
function lstat64(__file:Pchar; var __buf:_stat64):longint;
begin
__lxstat64(_STAT_VER,__file,__buf);
end;

View File

@ -81,14 +81,14 @@ function __xmknod(__ver:longint; __path:Pchar; __mode:__mode_t; __dev:P__dev_t):
---------------------------------------------------------------------}
// Type
function stat(__file:Pchar; var __buf:_stat):longint;cdecl;external clib name 'stat';
function fstat(__fd:longint; var __buf:_stat):longint;cdecl;external clib name 'fstat';
function stat(__file:Pchar; var __buf:_stat):longint;
function fstat(__fd:longint; var __buf:_stat):longint;
function stat64(__file:Pchar; var __buf: _stat64):longint;cdecl;external clib name 'stat64';
function fstat64(__fd:longint; var __buf: _stat64):longint;cdecl;external clib name 'fstat64';
function stat64(__file:Pchar; var __buf: _stat64):longint;
function fstat64(__fd:longint; var __buf: _stat64):longint;
function lstat(__file:Pchar; var __buf:_stat):longint;cdecl;external clib name 'lstat';
function lstat64(__file:Pchar; var __buf:_stat64):longint;cdecl;external clib name 'lstat64';
function lstat(__file:Pchar; var __buf:_stat):longint;
function lstat64(__file:Pchar; var __buf:_stat64):longint;
function __fxstat(__ver:longint; __fildes:longint; var __stat_buf: _stat):longint;cdecl;external clib name '__fxstat';
function __xstat(__ver:longint; __filename:Pchar; var __stat_buf: _stat):longint;cdecl;external clib name '__xstat';