1 MODULE PosixCsys_stat
['sys
/stat
.h'
];
3 (* generated by genposix.sh, do not modify *)
5 IMPORT SYSTEM
, PosixCtypes
, PosixCtime
, PosixCsys_types
;
8 char
* = PosixCtypes
.char
;
9 signed_char
* = PosixCtypes
.signed_char
;
10 unsigned_char
* = PosixCtypes
.unsigned_char
;
11 short
* = PosixCtypes
.short
;
12 short_int
* = PosixCtypes
.short_int
;
13 signed_short
* = PosixCtypes
.signed_short
;
14 signed_short_int
* = PosixCtypes
.signed_short_int
;
15 unsigned_short
* = PosixCtypes
.unsigned_short
;
16 unsigned_short_int
* = PosixCtypes
.unsigned_short_int
;
17 int
* = PosixCtypes
.int
;
18 signed
* = PosixCtypes
.signed
;
19 signed_int
* = PosixCtypes
.signed_int
;
20 unsigned
* = PosixCtypes
.unsigned
;
21 unsigned_int
* = PosixCtypes
.unsigned_int
;
22 long
* = PosixCtypes
.long
;
23 long_int
* = PosixCtypes
.long_int
;
24 signed_long
* = PosixCtypes
.signed_long
;
25 signed_long_int
* = PosixCtypes
.signed_long_int
;
26 unsigned_long
* = PosixCtypes
.unsigned_long
;
27 unsigned_long_int
* = PosixCtypes
.unsigned_long_int
;
28 long_long
* = PosixCtypes
.long_long
;
29 long_long_int
* = PosixCtypes
.long_long_int
;
30 signed_long_long
* = PosixCtypes
.signed_long_long
;
31 signed_long_long_int
* = PosixCtypes
.signed_long_long_int
;
32 unsigned_long_long
* = PosixCtypes
.unsigned_long_long
;
33 unsigned_long_long_int
* = PosixCtypes
.unsigned_long_long_int
;
34 float
* = PosixCtypes
.float
;
35 double
* = PosixCtypes
.double
;
36 long_double
* = PosixCtypes
.long_double
;
66 UTIME_NOW
* = 1073741823;
67 UTIME_OMIT
* = 1073741822;
70 blkcnt_t
* = PosixCsys_types
.blkcnt_t
;
71 blksize_t
* = PosixCsys_types
.blksize_t
;
72 dev_t
* = PosixCsys_types
.dev_t
;
73 ino_t
* = PosixCsys_types
.ino_t
;
74 mode_t
* = PosixCsys_types
.mode_t
;
75 nlink_t
* = PosixCsys_types
.nlink_t
;
76 uid_t
* = PosixCsys_types
.uid_t
;
77 gid_t
* = PosixCsys_types
.gid_t
;
78 off_t
* = PosixCsys_types
.off_t
;
79 time_t
* = PosixCsys_types
.time_t
;
82 struct_timespec
* = PosixCtime
.struct_timespec
;
85 Pstruct_stat
* = POINTER TO struct_stat
;
86 struct_stat
* ['struct stat'
] = RECORD [noalign
] (* 88 *)
87 st_dev
*: dev_t
; (* 0+8 *)
88 st_ino
*: ino_t
; (* 12+4 *)
89 st_mode
*: mode_t
; (* 16+4 *)
90 st_nlink
*: nlink_t
; (* 20+4 *)
91 st_uid
*: uid_t
; (* 24+4 *)
92 st_gid
*: gid_t
; (* 28+4 *)
93 st_rdev
*: dev_t
; (* 32+8 *)
94 st_size
*: off_t
; (* 44+4 *)
95 st_blksize
*: blksize_t
; (* 48+4 *)
96 st_blocks
*: blkcnt_t
; (* 52+4 *)
97 st_atim
*: struct_timespec
; (* 56+8 *)
98 st_mtim
*: struct_timespec
; (* 64+8 *)
99 st_ctim
*: struct_timespec
; (* 72+8 *)
102 PROCEDURE [ccall
] chmod
* (IN path
: ARRAY [untagged
] OF SHORTCHAR
; mode
: mode_t
): int
;
103 PROCEDURE [ccall
] fchmod
* (fd
: int
; IN path
: ARRAY [untagged
] OF SHORTCHAR
; mode
: mode_t
): int
;
104 PROCEDURE [ccall
] fchmodat
* (fd
: int
; IN path
: ARRAY [untagged
] OF SHORTCHAR
; mode
: mode_t
; flag
: int
): int
;
105 PROCEDURE [ccall
] fstat
* (fd
: int
; VAR buf
: struct_stat
): int
;
106 PROCEDURE [ccall
] fstatat
* (fd
: int
; IN path
: ARRAY [untagged
] OF SHORTCHAR
; VAR buf
: struct_stat
; flag
: int
): int
;
107 PROCEDURE [ccall
] futimens
* (fd
: int
; IN times
: ARRAY [untagged
] 2 OF struct_timespec
): int
;
108 PROCEDURE [ccall
] lstat
* (IN path
: ARRAY [untagged
] OF SHORTCHAR
; VAR buf
: struct_stat
): int
;
109 PROCEDURE [ccall
] mkdir
* (IN path
: ARRAY [untagged
] OF SHORTCHAR
; mode
: mode_t
): int
;
110 PROCEDURE [ccall
] mkdirat
* (fd
: int
; IN path
: ARRAY [untagged
] OF SHORTCHAR
; mode
: mode_t
): int
;
111 PROCEDURE [ccall
] mkfifo
* (IN pathname
: ARRAY [untagged
] OF SHORTCHAR
; mode
: mode_t
): int
;
112 PROCEDURE [ccall
] mkfifoat
* (dirfd
: int
; IN pathname
: ARRAY [untagged
] OF SHORTCHAR
; mode
: mode_t
): int
;
113 PROCEDURE [ccall
] mknod
* (IN path
: ARRAY [untagged
] OF SHORTCHAR
; mode
: mode_t
; dev
: dev_t
): int
;
114 PROCEDURE [ccall
] mknodat
* (df
: int
; IN path
: ARRAY [untagged
] OF SHORTCHAR
; mode
: mode_t
; dev
: dev_t
): int
;
115 PROCEDURE [ccall
] stat
* (IN path
: ARRAY [untagged
] OF SHORTCHAR
; VAR buf
: struct_stat
): int
;
116 PROCEDURE [ccall
] umask
* (mode
: mode_t
): mode_t
;
117 PROCEDURE [ccall
] utimensat
* (dirfd
: int
; IN pathname
: ARRAY [untagged
] OF SHORTCHAR
; IN times
: ARRAY [untagged
] 2 OF struct_timespec
; flags
: int
): int
;