cover null default val
[m6w6/ext-psi] / m4 / posix / fcntl.m4
1 PSI_CHECK_FCNTL() {
2 PSI_CONST(F_DUPFD, int)
3 PSI_CONST(F_DUPFD_CLOEXEC, int)
4 PSI_CONST(F_GETFD, int)
5 PSI_CONST(F_SETFD, int)
6 PSI_CONST(F_GETFL, int)
7 PSI_CONST(F_SETFL, int)
8 PSI_CONST(F_GETLK, int)
9 PSI_CONST(F_SETLK, int)
10 PSI_CONST(F_SETLKW, int)
11 PSI_CONST(F_GETOWN, int)
12 PSI_CONST(F_SETOWN, int)
13
14 PSI_CONST(FD_CLOEXEC, int)
15
16 PSI_CONST(F_RDLCK, int)
17 PSI_CONST(F_UNLCK, int)
18 PSI_CONST(F_WRLCK, int)
19
20 PSI_CONST(O_CLOEXEC, int)
21 PSI_CONST(O_CREAT, int)
22 PSI_CONST(O_DIRECTORY, int)
23 PSI_CONST(O_EXCL, int)
24 PSI_CONST(O_NOCTTY, int)
25 PSI_CONST(O_NOFOLLOW, int)
26 PSI_CONST(O_TRUNC, int)
27 PSI_CONST(O_TTY_INIT, int)
28
29 PSI_CONST(O_APPEND, int)
30 PSI_CONST(O_DSYNC, int)
31 PSI_CONST(O_NONBLOCK, int)
32 PSI_CONST(O_RSYNC, int)
33 PSI_CONST(O_SYNC, int)
34
35 PSI_CONST(O_ACCMODE, int)
36
37 PSI_CONST(O_EXEC, int)
38 PSI_CONST(O_RDONLY, int)
39 PSI_CONST(O_RDWR, int)
40 PSI_CONST(O_SEARCH, int)
41 PSI_CONST(O_WRONLY, int)
42
43 PSI_CONST(AT_FDCWD, int)
44 PSI_CONST(AT_EACCESS, int)
45 PSI_CONST(AT_SYMLINK_NOFOLLOW, int)
46 PSI_CONST(AT_SYMLINK_FOLLOW, int)
47 PSI_CONST(AT_REMOVEDIR, int)
48
49 PSI_CONST(POSIX_FADV_DONTNEED, int)
50 PSI_CONST(POSIX_FADV_NOREUSE, int)
51 PSI_CONST(POSIX_FADV_NORMAL, int)
52 PSI_CONST(POSIX_FADV_RANDOM, int)
53 PSI_CONST(POSIX_FADV_SEQUENTUAL, int)
54 PSI_CONST(POSIX_FADV_WILLNEED, int)
55
56 PSI_STRUCT(struct flock, [
57 short l_type,
58 short l_whence,
59 off_t l_start,
60 off_t l_len,
61 pid_t l_pid]
62 )
63
64 PSI_DECL(int creat, [(const char *path, mode_t mode)])
65 PSI_DECL(int fcntl, [(int fd, int cmd, mode_t mode)])
66 PSI_DECL(int open, [(const char *path, int flags, mode_t mode)])
67 PSI_DECL(int openat, [(int dirfd, const char *path, int flags, mode_t mode)])
68
69 PSI_DECL(int posix_fadvise, [(int fd, off_t offset, off_t len, int advice)])
70 PSI_DECL(int posix_fallocate, [(int fd, off_t offset, off_t len)])
71 }