diff options
Diffstat (limited to 'include/asm-ia64/fcntl.h')
-rw-r--r-- | include/asm-ia64/fcntl.h | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/include/asm-ia64/fcntl.h b/include/asm-ia64/fcntl.h index cee16ea1780a..9f0ec1e4bd50 100644 --- a/include/asm-ia64/fcntl.h +++ b/include/asm-ia64/fcntl.h | |||
@@ -11,10 +11,6 @@ | |||
11 | * open/fcntl - O_SYNC is only implemented on blocks devices and on | 11 | * open/fcntl - O_SYNC is only implemented on blocks devices and on |
12 | * files located on an ext2 file system | 12 | * files located on an ext2 file system |
13 | */ | 13 | */ |
14 | #define O_ACCMODE 0003 | ||
15 | #define O_RDONLY 00 | ||
16 | #define O_WRONLY 01 | ||
17 | #define O_RDWR 02 | ||
18 | #define O_CREAT 0100 /* not fcntl */ | 14 | #define O_CREAT 0100 /* not fcntl */ |
19 | #define O_EXCL 0200 /* not fcntl */ | 15 | #define O_EXCL 0200 /* not fcntl */ |
20 | #define O_NOCTTY 0400 /* not fcntl */ | 16 | #define O_NOCTTY 0400 /* not fcntl */ |
@@ -30,11 +26,6 @@ | |||
30 | #define O_NOFOLLOW 0400000 /* don't follow links */ | 26 | #define O_NOFOLLOW 0400000 /* don't follow links */ |
31 | #define O_NOATIME 01000000 | 27 | #define O_NOATIME 01000000 |
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 5 | 29 | #define F_GETLK 5 |
39 | #define F_SETLK 6 | 30 | #define F_SETLK 6 |
40 | #define F_SETLKW 7 | 31 | #define F_SETLKW 7 |
@@ -44,9 +35,6 @@ | |||
44 | #define F_SETSIG 10 /* for sockets. */ | 35 | #define F_SETSIG 10 /* for sockets. */ |
45 | #define F_GETSIG 11 /* for sockets. */ | 36 | #define F_GETSIG 11 /* 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 0 | 39 | #define F_RDLCK 0 |
52 | #define F_WRLCK 1 | 40 | #define F_WRLCK 1 |
@@ -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 | |||
74 | struct flock { | 50 | struct flock { |
75 | short l_type; | 51 | short l_type; |
76 | short l_whence; | 52 | short l_whence; |
@@ -79,9 +55,9 @@ struct flock { | |||
79 | pid_t l_pid; | 55 | pid_t l_pid; |
80 | }; | 56 | }; |
81 | 57 | ||
82 | #define F_LINUX_SPECIFIC_BASE 1024 | ||
83 | |||
84 | #define force_o_largefile() \ | 58 | #define force_o_largefile() \ |
85 | (personality(current->personality) != PER_LINUX32) | 59 | (personality(current->personality) != PER_LINUX32) |
86 | 60 | ||
61 | #include <asm-generic/fcntl.h> | ||
62 | |||
87 | #endif /* _ASM_IA64_FCNTL_H */ | 63 | #endif /* _ASM_IA64_FCNTL_H */ |