aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-parisc/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-parisc/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-parisc/fcntl.h')
-rw-r--r--include/asm-parisc/fcntl.h26
1 files changed, 1 insertions, 25 deletions
diff --git a/include/asm-parisc/fcntl.h b/include/asm-parisc/fcntl.h
index def35230716a..0a4ee6398735 100644
--- a/include/asm-parisc/fcntl.h
+++ b/include/asm-parisc/fcntl.h
@@ -3,10 +3,6 @@
3 3
4/* open/fcntl - O_SYNC is only implemented on blocks devices and on files 4/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
5 located on an ext2 file system */ 5 located on an ext2 file system */
6#define O_ACCMODE 00000003
7#define O_RDONLY 00000000
8#define O_WRONLY 00000001
9#define O_RDWR 00000002
10#define O_APPEND 00000010 6#define O_APPEND 00000010
11#define O_BLKSEEK 00000100 /* HPUX only */ 7#define O_BLKSEEK 00000100 /* HPUX only */
12#define O_CREAT 00000400 /* not fcntl */ 8#define O_CREAT 00000400 /* not fcntl */
@@ -27,11 +23,6 @@
27#define O_NOFOLLOW 00000200 /* don't follow links */ 23#define O_NOFOLLOW 00000200 /* don't follow links */
28#define O_INVISIBLE 04000000 /* invisible I/O, for DMAPI/XDSM */ 24#define O_INVISIBLE 04000000 /* invisible I/O, for DMAPI/XDSM */
29 25
30#define F_DUPFD 0 /* dup */
31#define F_GETFD 1 /* get f_flags */
32#define F_SETFD 2 /* set f_flags */
33#define F_GETFL 3 /* more flags (cloexec) */
34#define F_SETFL 4
35#define F_GETLK 5 26#define F_GETLK 5
36#define F_SETLK 6 27#define F_SETLK 6
37#define F_SETLKW 7 28#define F_SETLKW 7
@@ -44,9 +35,6 @@
44#define F_SETSIG 13 /* for sockets. */ 35#define F_SETSIG 13 /* for sockets. */
45#define F_GETSIG 14 /* for sockets. */ 36#define F_GETSIG 14 /* for sockets. */
46 37
47/* for F_[GET|SET]FL */
48#define FD_CLOEXEC 1 /* actually anything with low bit set goes */
49
50/* for posix fcntl() and lockf() */ 38/* for posix fcntl() and lockf() */
51#define F_RDLCK 01 39#define F_RDLCK 01
52#define F_WRLCK 02 40#define F_WRLCK 02
@@ -59,18 +47,6 @@
59/* for leases */ 47/* for leases */
60#define F_INPROGRESS 16 48#define F_INPROGRESS 16
61 49
62/* operations for bsd flock(), also used by the kernel implementation */
63#define LOCK_SH 1 /* shared lock */
64#define LOCK_EX 2 /* exclusive lock */
65#define LOCK_NB 4 /* or'd with one of the above to prevent
66 blocking */
67#define LOCK_UN 8 /* remove lock */
68
69#define LOCK_MAND 32 /* This is a mandatory flock */
70#define LOCK_READ 64 /* ... Which allows concurrent read operations */
71#define LOCK_WRITE 128 /* ... Which allows concurrent write operations */
72#define LOCK_RW 192 /* ... Which allows concurrent read & write ops */
73
74struct flock { 50struct flock {
75 short l_type; 51 short l_type;
76 short l_whence; 52 short l_whence;
@@ -87,6 +63,6 @@ struct flock64 {
87 pid_t l_pid; 63 pid_t l_pid;
88}; 64};
89 65
90#define F_LINUX_SPECIFIC_BASE 1024 66#include <asm-generic/fcntl.h>
91 67
92#endif 68#endif