aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-generic/fcntl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/fcntl.h')
-rw-r--r--include/asm-generic/fcntl.h28
1 files changed, 22 insertions, 6 deletions
diff --git a/include/asm-generic/fcntl.h b/include/asm-generic/fcntl.h
index 4d3e48373e74..495dc8af4044 100644
--- a/include/asm-generic/fcntl.h
+++ b/include/asm-generic/fcntl.h
@@ -74,6 +74,28 @@
74#define F_GETSIG 11 /* for sockets. */ 74#define F_GETSIG 11 /* for sockets. */
75#endif 75#endif
76 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
85#ifndef F_SETOWN_EX
86#define F_SETOWN_EX 15
87#define F_GETOWN_EX 16
88#endif
89
90#define F_OWNER_TID 0
91#define F_OWNER_PID 1
92#define F_OWNER_PGRP 2
93
94struct f_owner_ex {
95 int type;
96 pid_t pid;
97};
98
77/* for F_[GET|SET]FL */ 99/* for F_[GET|SET]FL */
78#define FD_CLOEXEC 1 /* actually anything with low bit set goes */ 100#define FD_CLOEXEC 1 /* actually anything with low bit set goes */
79 101
@@ -126,12 +148,6 @@ struct flock {
126 148
127#ifndef CONFIG_64BIT 149#ifndef CONFIG_64BIT
128 150
129#ifndef F_GETLK64
130#define F_GETLK64 12 /* using 'struct flock64' */
131#define F_SETLK64 13
132#define F_SETLKW64 14
133#endif
134
135#ifndef HAVE_ARCH_STRUCT_FLOCK64 151#ifndef HAVE_ARCH_STRUCT_FLOCK64
136#ifndef __ARCH_FLOCK64_PAD 152#ifndef __ARCH_FLOCK64_PAD
137#define __ARCH_FLOCK64_PAD 153#define __ARCH_FLOCK64_PAD