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-alpha/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-alpha/fcntl.h')
-rw-r--r-- | include/asm-alpha/fcntl.h | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/include/asm-alpha/fcntl.h b/include/asm-alpha/fcntl.h index 6b7d6c1649ce..3f3ad49e8365 100644 --- a/include/asm-alpha/fcntl.h +++ b/include/asm-alpha/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 0003 | ||
7 | #define O_RDONLY 00 | ||
8 | #define O_WRONLY 01 | ||
9 | #define O_RDWR 02 | ||
10 | #define O_CREAT 01000 /* not fcntl */ | 6 | #define O_CREAT 01000 /* not fcntl */ |
11 | #define O_TRUNC 02000 /* not fcntl */ | 7 | #define O_TRUNC 02000 /* not fcntl */ |
12 | #define O_EXCL 04000 /* not fcntl */ | 8 | #define O_EXCL 04000 /* not fcntl */ |
@@ -23,11 +19,6 @@ | |||
23 | #define O_DIRECT 02000000 /* direct disk access - should check with OSF/1 */ | 19 | #define O_DIRECT 02000000 /* direct disk access - should check with OSF/1 */ |
24 | #define O_NOATIME 04000000 | 20 | #define O_NOATIME 04000000 |
25 | 21 | ||
26 | #define F_DUPFD 0 /* dup */ | ||
27 | #define F_GETFD 1 /* get close_on_exec */ | ||
28 | #define F_SETFD 2 /* set/clear close_on_exec */ | ||
29 | #define F_GETFL 3 /* get file->f_flags */ | ||
30 | #define F_SETFL 4 /* set file->f_flags */ | ||
31 | #define F_GETLK 7 | 22 | #define F_GETLK 7 |
32 | #define F_SETLK 8 | 23 | #define F_SETLK 8 |
33 | #define F_SETLKW 9 | 24 | #define F_SETLKW 9 |
@@ -37,9 +28,6 @@ | |||
37 | #define F_SETSIG 10 /* for sockets. */ | 28 | #define F_SETSIG 10 /* for sockets. */ |
38 | #define F_GETSIG 11 /* for sockets. */ | 29 | #define F_GETSIG 11 /* for sockets. */ |
39 | 30 | ||
40 | /* for F_[GET|SET]FL */ | ||
41 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ | ||
42 | |||
43 | /* for posix fcntl() and lockf() */ | 31 | /* for posix fcntl() and lockf() */ |
44 | #define F_RDLCK 1 | 32 | #define F_RDLCK 1 |
45 | #define F_WRLCK 2 | 33 | #define F_WRLCK 2 |
@@ -51,17 +39,6 @@ | |||
51 | 39 | ||
52 | #define F_INPROGRESS 64 | 40 | #define F_INPROGRESS 64 |
53 | 41 | ||
54 | /* operations for bsd flock(), also used by the kernel implementation */ | ||
55 | #define LOCK_SH 1 /* shared lock */ | ||
56 | #define LOCK_EX 2 /* exclusive lock */ | ||
57 | #define LOCK_NB 4 /* or'd with one of the above to prevent | ||
58 | blocking */ | ||
59 | #define LOCK_UN 8 /* remove lock */ | ||
60 | #define LOCK_MAND 32 /* This is a mandatory flock */ | ||
61 | #define LOCK_READ 64 /* ... Which allows concurrent read operations */ | ||
62 | #define LOCK_WRITE 128 /* ... Which allows concurrent write operations */ | ||
63 | #define LOCK_RW 192 /* ... Which allows concurrent read & write ops */ | ||
64 | |||
65 | struct flock { | 42 | struct flock { |
66 | short l_type; | 43 | short l_type; |
67 | short l_whence; | 44 | short l_whence; |
@@ -70,6 +47,6 @@ struct flock { | |||
70 | __kernel_pid_t l_pid; | 47 | __kernel_pid_t l_pid; |
71 | }; | 48 | }; |
72 | 49 | ||
73 | #define F_LINUX_SPECIFIC_BASE 1024 | 50 | #include <asm-generic/fcntl.h> |
74 | 51 | ||
75 | #endif | 52 | #endif |