DEADSOFTWARE

first cpc release
[cpc.git] / src / cpfront / linux / C99 / Mod / sys_stat.cp
1 MODULE C99sys_stat ['sys/stat.h'];
3 (* generated by genposix.sh, do not modify *)
5 IMPORT SYSTEM, C99types, C99time, C99sys_types;
7 TYPE
8 char* = C99types.char;
9 signed_char* = C99types.signed_char;
10 unsigned_char* = C99types.unsigned_char;
11 short* = C99types.short;
12 short_int* = C99types.short_int;
13 signed_short* = C99types.signed_short;
14 signed_short_int* = C99types.signed_short_int;
15 unsigned_short* = C99types.unsigned_short;
16 unsigned_short_int* = C99types.unsigned_short_int;
17 int* = C99types.int;
18 signed* = C99types.signed;
19 signed_int* = C99types.signed_int;
20 unsigned* = C99types.unsigned;
21 unsigned_int* = C99types.unsigned_int;
22 long* = C99types.long;
23 long_int* = C99types.long_int;
24 signed_long* = C99types.signed_long;
25 signed_long_int* = C99types.signed_long_int;
26 unsigned_long* = C99types.unsigned_long;
27 unsigned_long_int* = C99types.unsigned_long_int;
28 long_long* = C99types.long_long;
29 long_long_int* = C99types.long_long_int;
30 signed_long_long* = C99types.signed_long_long;
31 signed_long_long_int* = C99types.signed_long_long_int;
32 unsigned_long_long* = C99types.unsigned_long_long;
33 unsigned_long_long_int* = C99types.unsigned_long_long_int;
34 float* = C99types.float;
35 double* = C99types.double;
36 long_double* = C99types.long_double;
38 CONST
39 S_IFMT* = 61440;
40 S_IFBLK* = 24576;
41 S_IFCHR* = 8192;
42 S_IFIFO* = 4096;
43 S_IFREG* = 32768;
44 S_IFDIR* = 16384;
45 S_IFLNK* = 40960;
46 S_IFSOCK* = 49152;
48 CONST
49 S_IRWXU* = 448;
50 S_IRUSR* = 256;
51 S_IWUSR* = 128;
52 S_IXUSR* = 64;
53 S_IRWXG* = 56;
54 S_IRGRP* = 32;
55 S_IWGRP* = 16;
56 S_IXGRP* = 8;
57 S_IRWXO* = 7;
58 S_IROTH* = 4;
59 S_IWOTH* = 2;
60 S_IXOTH* = 1;
61 S_ISUID* = 2048;
62 S_ISGID* = 1024;
63 S_ISVTX* = 512;
65 CONST
66 UTIME_NOW* = 1073741823;
67 UTIME_OMIT* = 1073741822;
69 TYPE
70 blkcnt_t* = C99sys_types.blkcnt_t;
71 blksize_t* = C99sys_types.blksize_t;
72 dev_t* = C99sys_types.dev_t;
73 ino_t* = C99sys_types.ino_t;
74 mode_t* = C99sys_types.mode_t;
75 nlink_t* = C99sys_types.nlink_t;
76 uid_t* = C99sys_types.uid_t;
77 gid_t* = C99sys_types.gid_t;
78 off_t* = C99sys_types.off_t;
79 time_t* = C99sys_types.time_t;
81 TYPE
82 struct_timespec* = C99time.struct_timespec;
84 TYPE
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 *)
100 END;
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;
119 END C99sys_stat.