#include <linux/types.h>
Go to the source code of this file.
#define __ARCH_FLOCK64_PAD |
#define __O_SYNC 04000000 |
#define F_DUPFD 0 /* dup */ |
#define F_EXLCK 4 /* or 3 */ |
#define F_GETFD 1 /* get close_on_exec */ |
#define F_GETFL 3 /* get file->f_flags */ |
#define F_GETOWN 9 /* for sockets. */ |
#define F_GETOWNER_UIDS 17 |
#define F_GETSIG 11 /* for sockets. */ |
#define F_LINUX_SPECIFIC_BASE 1024 |
#define F_SETFD 2 /* set/clear close_on_exec */ |
#define F_SETFL 4 /* set file->f_flags */ |
#define F_SETOWN 8 /* for sockets. */ |
#define F_SETSIG 10 /* for sockets. */ |
#define F_SHLCK 8 /* or 4 */ |
#define FASYNC 00020000 /* fcntl, for BSD compatibility */ |
#define FD_CLOEXEC 1 /* actually anything with low bit set goes */ |
#define LOCK_EX 2 /* exclusive lock */ |
#define LOCK_MAND 32 /* This is a mandatory flock ... */ |
#define LOCK_READ 64 /* which allows concurrent read operations */ |
#define LOCK_RW 192 /* which allows concurrent read & write ops */ |
#define LOCK_UN 8 /* remove lock */ |
#define LOCK_WRITE 128 /* which allows concurrent write operations */ |
#define O_ACCMODE 00000003 |
#define O_APPEND 00002000 |
#define O_CLOEXEC 02000000 /* set close_on_exec */ |
#define O_CREAT 00000100 /* not fcntl */ |
#define O_DIRECTORY 00200000 /* must be a directory */ |
#define O_DSYNC 00010000 /* used to be O_SYNC, see below */ |
#define O_EXCL 00000200 /* not fcntl */ |
#define O_LARGEFILE 00100000 |
#define O_NOATIME 01000000 |
#define O_NOCTTY 00000400 /* not fcntl */ |
#define O_NOFOLLOW 00400000 /* don't follow links */ |
#define O_NONBLOCK 00004000 |
#define O_RDONLY 00000000 |
#define O_TRUNC 00001000 /* not fcntl */ |
#define O_WRONLY 00000001 |