Go to the documentation of this file. 1 #ifndef _ASM_GENERIC_FCNTL_H
2 #define _ASM_GENERIC_FCNTL_H
4 #include <linux/types.h>
18 #define O_ACCMODE 00000003
19 #define O_RDONLY 00000000
20 #define O_WRONLY 00000001
21 #define O_RDWR 00000002
23 #define O_CREAT 00000100
26 #define O_EXCL 00000200
29 #define O_NOCTTY 00000400
32 #define O_TRUNC 00001000
35 #define O_APPEND 00002000
38 #define O_NONBLOCK 00004000
41 #define O_DSYNC 00010000
44 #define FASYNC 00020000
47 #define O_DIRECT 00040000
50 #define O_LARGEFILE 00100000
53 #define O_DIRECTORY 00200000
56 #define O_NOFOLLOW 00400000
59 #define O_NOATIME 01000000
62 #define O_CLOEXEC 02000000
79 #define __O_SYNC 04000000
80 #define O_SYNC (__O_SYNC|O_DSYNC)
84 #define O_PATH 010000000
88 #define O_NDELAY O_NONBLOCK
114 #define F_SETLKW64 14
119 #define F_SETOWN_EX 15
120 #define F_GETOWN_EX 16
123 #ifndef F_GETOWNER_UIDS
124 #define F_GETOWNER_UIDS 17
127 #define F_OWNER_TID 0
128 #define F_OWNER_PID 1
129 #define F_OWNER_PGRP 2
161 #define LOCK_WRITE 128
164 #define F_LINUX_SPECIFIC_BASE 1024
166 #ifndef HAVE_ARCH_STRUCT_FLOCK
167 #ifndef __ARCH_FLOCK_PAD
168 #define __ARCH_FLOCK_PAD
183 #ifndef HAVE_ARCH_STRUCT_FLOCK64
184 #ifndef __ARCH_FLOCK64_PAD
185 #define __ARCH_FLOCK64_PAD