Go to the documentation of this file.
49 #define O_NONBLOCK 0x0004
50 #define O_APPEND 0x0008
51 #define O_SHLOCK 0x0010
52 #define O_EXLOCK 0x0020
53 #define O_ASYNC 0x0040
54 #define O_FSYNC 0x0080
56 #define O_NOFOLLOW 0x0100
57 #define O_CREAT 0x0200
58 #define O_TRUNC 0x0400
60 #define O_DIRECT 0x00010000
61 #define O_RDONLY 0x0000
62 #define O_WRONLY 0x0001
64 #define O_ACCMODE 0x0003
66 #define FHASLOCK 0x4000
69 #define FAPPEND O_APPEND
70 #define FASYNC O_ASYNC
71 #define FFSYNC O_FSYNC
72 #define FNONBLOCK O_NONBLOCK
73 #define FNDELAY O_NONBLOCK
74 #define O_NDELAY O_NONBLOCK
75 #define FPOSIXSHM O_NOFOLLOW
77 #define O_DIRECTORY 0x00020000
78 #define O_EXEC 0x00040000
80 #define FCNTLFLAGS (FAPPEND|FASYNC|FFSYNC|FNONBLOCK|FPOSIXSHM|O_DIRECT)
88 #define FFLAGS(oflags) ((oflags) & O_EXEC ? (oflags) : (oflags) + 1)
89 #define OFLAGS(fflags) ((fflags) & O_EXEC ? (fflags) : (fflags) - 1)
93 #define FMASK (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FNONBLOCK|O_DIRECT|FEXEC)