diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-09-06 18:17:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 19:57:37 -0400 |
commit | 9317259ead88fe6c05120ae1e3ace99738e2c698 (patch) | |
tree | b899748ca57a96d59003945f97ceae01b5fdc48c /include/asm-generic/fcntl.h | |
parent | 5ba4d46dc44c5399bc4e7a39239de5a1690848a4 (diff) |
[PATCH] Create asm-generic/fcntl.h
This set of patches creates asm-generic/fcntl.h and consolidates as much as
possible from the asm-*/fcntl.h files into it.
This patch just gathers all the identical bits of the asm-*/fcntl.h files into
asm-generic/fcntl.h.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-generic/fcntl.h')
-rw-r--r-- | include/asm-generic/fcntl.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/asm-generic/fcntl.h b/include/asm-generic/fcntl.h new file mode 100644 index 000000000000..d256c5bb6edc --- /dev/null +++ b/include/asm-generic/fcntl.h | |||
@@ -0,0 +1,32 @@ | |||
1 | #ifndef _ASM_GENERIC_FCNTL_H | ||
2 | #define _ASM_GENERIC_FCNTL_H | ||
3 | |||
4 | #define O_ACCMODE 0003 | ||
5 | #define O_RDONLY 0000 | ||
6 | #define O_WRONLY 0001 | ||
7 | #define O_RDWR 0002 | ||
8 | |||
9 | #define F_DUPFD 0 /* dup */ | ||
10 | #define F_GETFD 1 /* get close_on_exec */ | ||
11 | #define F_SETFD 2 /* set/clear close_on_exec */ | ||
12 | #define F_GETFL 3 /* get file->f_flags */ | ||
13 | #define F_SETFL 4 /* set file->f_flags */ | ||
14 | |||
15 | /* for F_[GET|SET]FL */ | ||
16 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ | ||
17 | |||
18 | /* operations for bsd flock(), also used by the kernel implementation */ | ||
19 | #define LOCK_SH 1 /* shared lock */ | ||
20 | #define LOCK_EX 2 /* exclusive lock */ | ||
21 | #define LOCK_NB 4 /* or'd with one of the above to prevent | ||
22 | blocking */ | ||
23 | #define LOCK_UN 8 /* remove lock */ | ||
24 | |||
25 | #define LOCK_MAND 32 /* This is a mandatory flock ... */ | ||
26 | #define LOCK_READ 64 /* which allows concurrent read operations */ | ||
27 | #define LOCK_WRITE 128 /* which allows concurrent write operations */ | ||
28 | #define LOCK_RW 192 /* which allows concurrent read & write ops */ | ||
29 | |||
30 | #define F_LINUX_SPECIFIC_BASE 1024 | ||
31 | |||
32 | #endif /* _ASM_GENERIC_FCNTL_H */ | ||