diff options
author | Szabolcs Nagy <nsz@port70.net> | 2014-09-08 15:26:40 +0200 |
---|---|---|
committer | Szabolcs Nagy <nsz@port70.net> | 2014-09-08 15:35:26 +0200 |
commit | 976bb28fa0f5b6d82055502c27444ac5c9bf34ed (patch) | |
tree | 223528fa4c956ceeca5390dff945178b9d75f280 | |
parent | 23614b0fcb4cd4d7b2e4148d3b1887b642169765 (diff) | |
download | musl-976bb28fa0f5b6d82055502c27444ac5c9bf34ed.tar.gz musl-976bb28fa0f5b6d82055502c27444ac5c9bf34ed.tar.xz musl-976bb28fa0f5b6d82055502c27444ac5c9bf34ed.zip |
add new F_OFD_* macros to fcntl.h (open file description locks)
open file description locks are inherited across fork and only auto dropped after the last fd of the file description is closed, they can be used to synchronize between threads that open separate file descriptions for the same file. new in linux 3.15 commit 0d3f7a2dd2f5cf9642982515e020c1aee2cf7af6
-rw-r--r-- | include/fcntl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fcntl.h b/include/fcntl.h index 2d8fa6e4..ff9fcb92 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -46,6 +46,10 @@ int posix_fallocate(int, off_t, off_t); #define O_WRONLY 01 #define O_RDWR 02 +#define F_OFD_GETLK 36 +#define F_OFD_SETLK 37 +#define F_OFD_SETLKW 38 + #define F_DUPFD_CLOEXEC 1030 #define F_RDLCK 0 |