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