MODULE C99sys_stat ['libc.so.6']; (* generated by genposix.sh, do not modify *) IMPORT SYSTEM, C99types, C99time, C99sys_types; TYPE char* = C99types.char; signed_char* = C99types.signed_char; unsigned_char* = C99types.unsigned_char; short* = C99types.short; short_int* = C99types.short_int; signed_short* = C99types.signed_short; signed_short_int* = C99types.signed_short_int; unsigned_short* = C99types.unsigned_short; unsigned_short_int* = C99types.unsigned_short_int; int* = C99types.int; signed* = C99types.signed; signed_int* = C99types.signed_int; unsigned* = C99types.unsigned; unsigned_int* = C99types.unsigned_int; long* = C99types.long; long_int* = C99types.long_int; signed_long* = C99types.signed_long; signed_long_int* = C99types.signed_long_int; unsigned_long* = C99types.unsigned_long; unsigned_long_int* = C99types.unsigned_long_int; long_long* = C99types.long_long; long_long_int* = C99types.long_long_int; signed_long_long* = C99types.signed_long_long; signed_long_long_int* = C99types.signed_long_long_int; unsigned_long_long* = C99types.unsigned_long_long; unsigned_long_long_int* = C99types.unsigned_long_long_int; float* = C99types.float; double* = C99types.double; long_double* = C99types.long_double; CONST S_IFMT* = 61440; S_IFBLK* = 24576; S_IFCHR* = 8192; S_IFIFO* = 4096; S_IFREG* = 32768; S_IFDIR* = 16384; S_IFLNK* = 40960; S_IFSOCK* = 49152; CONST S_IRWXU* = 448; S_IRUSR* = 256; S_IWUSR* = 128; S_IXUSR* = 64; S_IRWXG* = 56; S_IRGRP* = 32; S_IWGRP* = 16; S_IXGRP* = 8; S_IRWXO* = 7; S_IROTH* = 4; S_IWOTH* = 2; S_IXOTH* = 1; S_ISUID* = 2048; S_ISGID* = 1024; S_ISVTX* = 512; CONST UTIME_NOW* = 1073741823; UTIME_OMIT* = 1073741822; TYPE blkcnt_t* = C99sys_types.blkcnt_t; blksize_t* = C99sys_types.blksize_t; dev_t* = C99sys_types.dev_t; ino_t* = C99sys_types.ino_t; mode_t* = C99sys_types.mode_t; nlink_t* = C99sys_types.nlink_t; uid_t* = C99sys_types.uid_t; gid_t* = C99sys_types.gid_t; off_t* = C99sys_types.off_t; time_t* = C99sys_types.time_t; TYPE struct_timespec* = C99time.struct_timespec; TYPE Pstruct_stat* = POINTER TO struct_stat; struct_stat* = RECORD [noalign] (* 88 *) st_dev*: dev_t; (* 0+8 *) _____align0_____: ARRAY 4 OF BYTE; st_ino*: ino_t; (* 12+4 *) st_mode*: mode_t; (* 16+4 *) st_nlink*: nlink_t; (* 20+4 *) st_uid*: uid_t; (* 24+4 *) st_gid*: gid_t; (* 28+4 *) st_rdev*: dev_t; (* 32+8 *) _____align1_____: ARRAY 4 OF BYTE; st_size*: off_t; (* 44+4 *) st_blksize*: blksize_t; (* 48+4 *) st_blocks*: blkcnt_t; (* 52+4 *) st_atim*: struct_timespec; (* 56+8 *) st_mtim*: struct_timespec; (* 64+8 *) st_ctim*: struct_timespec; (* 72+8 *) _____align2_____: ARRAY 8 OF BYTE; END; CONST _STAT_VER* = 3; PROCEDURE [ccall] chmod* (IN path: ARRAY [untagged] OF SHORTCHAR; mode: mode_t): int; PROCEDURE [ccall] fchmod* (fd: int; IN path: ARRAY [untagged] OF SHORTCHAR; mode: mode_t): int; PROCEDURE [ccall] fchmodat* (fd: int; IN path: ARRAY [untagged] OF SHORTCHAR; mode: mode_t; flag: int): int; PROCEDURE [ccall] fstat* (fd: int; VAR buf: struct_stat): int; PROCEDURE [ccall] fstatat* (fd: int; IN path: ARRAY [untagged] OF SHORTCHAR; VAR buf: struct_stat; flag: int): int; PROCEDURE [ccall] futimens* (fd: int; IN times: ARRAY [untagged] 2 OF struct_timespec): int; PROCEDURE [ccall] lstat* (IN path: ARRAY [untagged] OF SHORTCHAR; VAR buf: struct_stat): int; PROCEDURE [ccall] mkdir* (IN path: ARRAY [untagged] OF SHORTCHAR; mode: mode_t): int; PROCEDURE [ccall] mkdirat* (fd: int; IN path: ARRAY [untagged] OF SHORTCHAR; mode: mode_t): int; PROCEDURE [ccall] mkfifo* (IN pathname: ARRAY [untagged] OF SHORTCHAR; mode: mode_t): int; PROCEDURE [ccall] mkfifoat* (dirfd: int; IN pathname: ARRAY [untagged] OF SHORTCHAR; mode: mode_t): int; PROCEDURE [ccall] mknod* (IN path: ARRAY [untagged] OF SHORTCHAR; mode: mode_t; dev: dev_t): int; PROCEDURE [ccall] mknodat* (df: int; IN path: ARRAY [untagged] OF SHORTCHAR; mode: mode_t; dev: dev_t): int; PROCEDURE [ccall] __xstat* (version: int; IN path: ARRAY [untagged] OF SHORTCHAR; VAR buf: struct_stat): int; PROCEDURE [ccall] umask* (mode: mode_t): mode_t; PROCEDURE [ccall] utimensat* (dirfd: int; IN pathname: ARRAY [untagged] OF SHORTCHAR; IN times: ARRAY [untagged] 2 OF struct_timespec; flags: int): int; END C99sys_stat.