DEADSOFTWARE

added arm support via cpfront
[cpc.git] / src / cpfront / linux / arm / Posix / Mod / Cfcntl.cp
1 MODULE PosixCfcntl ['fcntl.h'];
3 (* generated by genposix.sh, do not modify *)
5 IMPORT SYSTEM, PosixCtypes, PosixCsys_types;
7 TYPE
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;
38 CONST
39 F_DUPFD* = 0;
40 F_DUPFD_CLOEXEC* = 1030;
41 F_GETFD* = 1;
42 F_SETFD* = 2;
43 F_GETFL* = 3;
44 F_SETFL* = 4;
45 F_GETLK* = 5;
46 F_SETLK* = 6;
47 F_SETLKW* = 7;
48 F_GETOWN* = 9;
49 F_SETOWN* = 8;
51 CONST
52 FD_CLOEXEC* = 1;
54 CONST
55 F_RDLCK* = 0;
56 F_UNLCK* = 2;
57 F_WRLCK* = 1;
59 CONST
60 SEEK_SET* = 0;
61 SEEK_CUR* = 1;
62 SEEK_END* = 2;
64 CONST
65 O_CLOEXEC* = 524288;
66 O_CREAT* = 64;
67 O_DIRECTORY* = 16384;
68 O_EXCL* = 128;
69 O_NOCTTY* = 256;
70 O_NOFOLLOW* = 32768;
71 O_TRUNC* = 512;
72 O_APPEND* = 1024;
73 O_DSYNC* = 4096;
74 O_NONBLOCK* = 2048;
75 O_RSYNC* = 1052672;
76 O_SYNC* = 1052672;
77 O_ACCMODE* = 3;
78 O_RDONLY* = 0;
79 O_RDWR* = 2;
80 O_WRONLY* = 1;
82 CONST
83 AT_FDCWD* = -100;
84 AT_EACCESS* = 512;
85 AT_SYMLINK_NOFOLLOW* = 256;
86 AT_SYMLINK_FOLLOW* = 1024;
87 AT_REMOVEDIR* = 512;
89 CONST
90 POSIX_FADV_DONTNEED* = 4;
91 POSIX_FADV_NOREUSE* = 5;
92 POSIX_FADV_NORMAL* = 0;
93 POSIX_FADV_RANDOM* = 1;
94 POSIX_FADV_SEQUENTIAL* = 2;
95 POSIX_FADV_WILLNEED* = 3;
97 TYPE
98 Pstruct_flock* = POINTER TO struct_flock;
99 struct_flock* ['struct flock'] = RECORD [noalign] (* 16 *)
100 l_type*: short; (* 0+2 *)
101 l_whence*: short; (* 2+2 *)
102 l_start*: off_t; (* 4+4 *)
103 l_len*: off_t; (* 8+4 *)
104 l_pid*: pid_t; (* 12+4 *)
105 END;
107 TYPE
108 mode_t* = PosixCsys_types.mode_t;
109 off_t* = PosixCsys_types.off_t;
110 pid_t* = PosixCsys_types.pid_t;
112 PROCEDURE [ccall] creat* (IN pathname: ARRAY [untagged] OF SHORTCHAR; mode: mode_t): int;
113 PROCEDURE [ccall] fcntl* (fildes, cmd, arg: int): int;
114 PROCEDURE [ccall] open* (IN pathname: ARRAY [untagged] OF SHORTCHAR; flags: int; mode: mode_t): int;
115 PROCEDURE [ccall] openat* (fddir: int; IN pathname: ARRAY [untagged] OF SHORTCHAR; flags: int; mode: mode_t): int;
116 PROCEDURE [ccall] posix_fadvise* (fd: int; offset, len: off_t; advice: int): int;
117 PROCEDURE [ccall] posix_fallocate* (fd: int; offset, len: off_t): int;
119 END PosixCfcntl.