diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/uapi/asm-generic/fcntl.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/uapi/asm-generic/fcntl.h b/include/uapi/asm-generic/fcntl.h index 36025f77c6ed..a9b13f8b3595 100644 --- a/include/uapi/asm-generic/fcntl.h +++ b/include/uapi/asm-generic/fcntl.h | |||
| @@ -132,6 +132,22 @@ | |||
| 132 | #define F_GETOWNER_UIDS 17 | 132 | #define F_GETOWNER_UIDS 17 |
| 133 | #endif | 133 | #endif |
| 134 | 134 | ||
| 135 | /* | ||
| 136 | * fd "private" POSIX locks. | ||
| 137 | * | ||
| 138 | * Usually POSIX locks held by a process are released on *any* close and are | ||
| 139 | * not inherited across a fork(). | ||
| 140 | * | ||
| 141 | * These cmd values will set locks that conflict with normal POSIX locks, but | ||
| 142 | * are "owned" by the opened file, not the process. This means that they are | ||
| 143 | * inherited across fork() like BSD (flock) locks, and they are only released | ||
| 144 | * automatically when the last reference to the the open file against which | ||
| 145 | * they were acquired is put. | ||
| 146 | */ | ||
| 147 | #define F_GETLKP 36 | ||
| 148 | #define F_SETLKP 37 | ||
| 149 | #define F_SETLKPW 38 | ||
| 150 | |||
| 135 | #define F_OWNER_TID 0 | 151 | #define F_OWNER_TID 0 |
| 136 | #define F_OWNER_PID 1 | 152 | #define F_OWNER_PID 1 |
| 137 | #define F_OWNER_PGRP 2 | 153 | #define F_OWNER_PGRP 2 |
