diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index d1b3e22cea3..1888da76510 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -63,18 +63,17 @@ extern int dir_notify_enable; #define MAY_ACCESS 16 #define MAY_OPEN 32 -#define FMODE_READ 1 -#define FMODE_WRITE 2 - -/* Internal kernel extensions */ -#define FMODE_LSEEK 4 -#define FMODE_PREAD 8 -#define FMODE_PWRITE FMODE_PREAD /* These go hand in hand */ - -/* File is being opened for execution. Primary users of this flag are - distributed filesystems that can use it to achieve correct ETXTBUSY - behavior for cross-node execution/opening_for_writing of files */ -#define FMODE_EXEC 16 +/* file is open for reading */ +#define FMODE_READ (1) +/* file is open for writing */ +#define FMODE_WRITE (2) +/* file is seekable */ +#define FMODE_LSEEK (4) +/* file can be accessed using pread/pwrite */ +#define FMODE_PREAD (8) +#define FMODE_PWRITE FMODE_PREAD /* These go hand in hand */ +/* File is opened for execution with sys_execve / sys_uselib */ +#define FMODE_EXEC (16) #define RW_MASK 1 #define RWA_MASK 2 |