diff options
-rw-r--r-- | arch/alpha/include/asm/fcntl.h | 4 | ||||
-rw-r--r-- | include/asm-generic/fcntl.h | 19 |
2 files changed, 13 insertions, 10 deletions
diff --git a/arch/alpha/include/asm/fcntl.h b/arch/alpha/include/asm/fcntl.h index e42823e954aa..73126e4dd639 100644 --- a/arch/alpha/include/asm/fcntl.h +++ b/arch/alpha/include/asm/fcntl.h | |||
@@ -26,8 +26,8 @@ | |||
26 | #define F_GETOWN 6 /* for sockets. */ | 26 | #define F_GETOWN 6 /* for sockets. */ |
27 | #define F_SETSIG 10 /* for sockets. */ | 27 | #define F_SETSIG 10 /* for sockets. */ |
28 | #define F_GETSIG 11 /* for sockets. */ | 28 | #define F_GETSIG 11 /* for sockets. */ |
29 | #define F_SETOWN_EX 12 | 29 | #define F_SETOWN_EX 15 |
30 | #define F_GETOWN_EX 13 | 30 | #define F_GETOWN_EX 16 |
31 | 31 | ||
32 | /* for posix fcntl() and lockf() */ | 32 | /* for posix fcntl() and lockf() */ |
33 | #define F_RDLCK 1 | 33 | #define F_RDLCK 1 |
diff --git a/include/asm-generic/fcntl.h b/include/asm-generic/fcntl.h index 0c3dd8603927..cd2d7896e34b 100644 --- a/include/asm-generic/fcntl.h +++ b/include/asm-generic/fcntl.h | |||
@@ -73,9 +73,18 @@ | |||
73 | #define F_SETSIG 10 /* for sockets. */ | 73 | #define F_SETSIG 10 /* for sockets. */ |
74 | #define F_GETSIG 11 /* for sockets. */ | 74 | #define F_GETSIG 11 /* for sockets. */ |
75 | #endif | 75 | #endif |
76 | |||
77 | #ifndef CONFIG_64BIT | ||
78 | #ifndef F_GETLK64 | ||
79 | #define F_GETLK64 12 /* using 'struct flock64' */ | ||
80 | #define F_SETLK64 13 | ||
81 | #define F_SETLKW64 14 | ||
82 | #endif | ||
83 | #endif | ||
84 | |||
76 | #ifndef F_SETOWN_EX | 85 | #ifndef F_SETOWN_EX |
77 | #define F_SETOWN_EX 12 | 86 | #define F_SETOWN_EX 15 |
78 | #define F_GETOWN_EX 13 | 87 | #define F_GETOWN_EX 16 |
79 | #endif | 88 | #endif |
80 | 89 | ||
81 | #define F_OWNER_TID 0 | 90 | #define F_OWNER_TID 0 |
@@ -139,12 +148,6 @@ struct flock { | |||
139 | 148 | ||
140 | #ifndef CONFIG_64BIT | 149 | #ifndef CONFIG_64BIT |
141 | 150 | ||
142 | #ifndef F_GETLK64 | ||
143 | #define F_GETLK64 12 /* using 'struct flock64' */ | ||
144 | #define F_SETLK64 13 | ||
145 | #define F_SETLKW64 14 | ||
146 | #endif | ||
147 | |||
148 | #ifndef HAVE_ARCH_STRUCT_FLOCK64 | 151 | #ifndef HAVE_ARCH_STRUCT_FLOCK64 |
149 | #ifndef __ARCH_FLOCK64_PAD | 152 | #ifndef __ARCH_FLOCK64_PAD |
150 | #define __ARCH_FLOCK64_PAD | 153 | #define __ARCH_FLOCK64_PAD |