aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/fcntl.h
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-09-06 18:17:57 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-07 19:57:37 -0400
commit9317259ead88fe6c05120ae1e3ace99738e2c698 (patch)
treeb899748ca57a96d59003945f97ceae01b5fdc48c /include/asm-mips/fcntl.h
parent5ba4d46dc44c5399bc4e7a39239de5a1690848a4 (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-mips/fcntl.h')
-rw-r--r--include/asm-mips/fcntl.h28
1 files changed, 2 insertions, 26 deletions
diff --git a/include/asm-mips/fcntl.h b/include/asm-mips/fcntl.h
index 2436392e7990..4b6043f12806 100644
--- a/include/asm-mips/fcntl.h
+++ b/include/asm-mips/fcntl.h
@@ -10,10 +10,6 @@
10 10
11/* open/fcntl - O_SYNC is only implemented on blocks devices and on files 11/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
12 located on an ext2 file system */ 12 located on an ext2 file system */
13#define O_ACCMODE 0x0003
14#define O_RDONLY 0x0000
15#define O_WRONLY 0x0001
16#define O_RDWR 0x0002
17#define O_APPEND 0x0008 13#define O_APPEND 0x0008
18#define O_SYNC 0x0010 14#define O_SYNC 0x0010
19#define O_NONBLOCK 0x0080 15#define O_NONBLOCK 0x0080
@@ -30,11 +26,6 @@
30 26
31#define O_NDELAY O_NONBLOCK 27#define O_NDELAY O_NONBLOCK
32 28
33#define F_DUPFD 0 /* dup */
34#define F_GETFD 1 /* get close_on_exec */
35#define F_SETFD 2 /* set/clear close_on_exec */
36#define F_GETFL 3 /* get file->f_flags */
37#define F_SETFL 4 /* set file->f_flags */
38#define F_GETLK 14 29#define F_GETLK 14
39#define F_SETLK 6 30#define F_SETLK 6
40#define F_SETLKW 7 31#define F_SETLKW 7
@@ -50,9 +41,6 @@
50#define F_SETLKW64 35 41#define F_SETLKW64 35
51#endif 42#endif
52 43
53/* for F_[GET|SET]FL */
54#define FD_CLOEXEC 1 /* actually anything with low bit set goes */
55
56/* for posix fcntl() and lockf() */ 44/* for posix fcntl() and lockf() */
57#define F_RDLCK 0 45#define F_RDLCK 0
58#define F_WRLCK 1 46#define F_WRLCK 1
@@ -65,18 +53,6 @@
65/* for leases */ 53/* for leases */
66#define F_INPROGRESS 16 54#define F_INPROGRESS 16
67 55
68/* operations for bsd flock(), also used by the kernel implementation */
69#define LOCK_SH 1 /* shared lock */
70#define LOCK_EX 2 /* exclusive lock */
71#define LOCK_NB 4 /* or'd with one of the above to prevent
72 blocking */
73#define LOCK_UN 8 /* remove lock */
74
75#define LOCK_MAND 32 /* This is a mandatory flock */
76#define LOCK_READ 64 /* ... Which allows concurrent read operations */
77#define LOCK_WRITE 128 /* ... Which allows concurrent write operations */
78#define LOCK_RW 192 /* ... Which allows concurrent read & write ops */
79
80/* 56/*
81 * The flavours of struct flock. "struct flock" is the ABI compliant 57 * The flavours of struct flock. "struct flock" is the ABI compliant
82 * variant. Finally struct flock64 is the LFS variant of struct flock. As 58 * variant. Finally struct flock64 is the LFS variant of struct flock. As
@@ -86,7 +62,7 @@
86 62
87#ifndef __mips64 63#ifndef __mips64
88 64
89typedef struct flock { 65struct flock {
90 short l_type; 66 short l_type;
91 short l_whence; 67 short l_whence;
92 __kernel_off_t l_start; 68 __kernel_off_t l_start;
@@ -120,6 +96,6 @@ typedef struct flock {
120 96
121#endif 97#endif
122 98
123#define F_LINUX_SPECIFIC_BASE 1024 99#include <asm-generic/fcntl.h>
124 100
125#endif /* _ASM_FCNTL_H */ 101#endif /* _ASM_FCNTL_H */