1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
{ ---------------------------------------------------------------------
Macros from sys/stat.h
---------------------------------------------------------------------}
function __S_ISTYPE(mode,mask : __mode_t) : boolean;
begin
__S_ISTYPE:=(mode and __S_IFMT) = mask;
end;
function S_ISDIR(mode : __mode_t) : boolean;
begin
S_ISDIR:=__S_ISTYPE(mode,__S_IFDIR);
end;
function S_ISCHR(mode : __mode_t) : boolean;
begin
S_ISCHR:=__S_ISTYPE(mode,__S_IFCHR);
end;
function S_ISBLK(mode : __mode_t) : boolean;
begin
S_ISBLK:=__S_ISTYPE(mode,__S_IFBLK);
end;
function S_ISREG(mode : __mode_t) : boolean;
begin
S_ISREG:=__S_ISTYPE(mode,__S_IFREG);
end;
function S_ISFIFO(mode : __mode_t) : boolean;
begin
S_ISFIFO:=__S_ISTYPE(mode,__S_IFIFO);
end;
function S_ISLNK(mode : __mode_t) : boolean;
begin
S_ISLNK:=__S_ISTYPE(mode,__S_IFLNK);
end;
function S_ISSOCK(mode : __mode_t) : boolean;
begin
S_ISSOCK:=__S_ISTYPE(mode,__S_IFSOCK);
end;
function fstat(__fd:longint; __buf:Pstat):longint;
begin
__fxstat(_STAT_VER,__fd,__buf);
end;
function lstat(__file:Pchar; __buf:Pstat):longint;
begin
__lxstat(_STAT_VER,__file,__buf);
end;
function stat(__file:Pchar; __buf:Pstat):longint;
begin
__xstat(_STAT_VER,__file,__buf);
end;
function fstat64(__fd:longint; __buf:Pstat64):longint;
begin
__fxstat64(_STAT_VER,__fd,__buf);
end;
function lstat64(__file:Pchar; __buf:Pstat64):longint;
begin
__lxstat64(_STAT_VER,__file,__buf);
end;
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;
|