diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-01-29 23:48:55 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-02-24 07:50:27 +0000 |
commit | 2947fc2ccf918661b0896526a0c0513c59d8d652 (patch) | |
tree | 98a788ff5333d92d8a9ad3c666ed1d7f8ef7fd29 /sys/sys/fcntl.h | |
parent | c6e46d0c6b9a6a79333689c4bf735cb5456200a2 (diff) | |
download | src-2947fc2ccf918661b0896526a0c0513c59d8d652.tar.gz src-2947fc2ccf918661b0896526a0c0513c59d8d652.zip |
lockf: ensure atomicity of lockf for open(O_CREAT|O_EXCL|O_EXLOCK)
(cherry picked from commit fa3bd463cee5c3abeac29a83dc86eb3abfa97b06)
(cherry picked from commit 662283b1088d6488671b90ab18a66a997c526448)
Diffstat (limited to 'sys/sys/fcntl.h')
-rw-r--r-- | sys/sys/fcntl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h index 3c29c04e46db..70e68246be13 100644 --- a/sys/sys/fcntl.h +++ b/sys/sys/fcntl.h @@ -287,6 +287,7 @@ typedef __pid_t pid_t; #define F_POSIX 0x040 /* Use POSIX semantics for lock */ #define F_REMOTE 0x080 /* Lock owner is remote NFS client */ #define F_NOINTR 0x100 /* Ignore signals when waiting */ +#define F_FIRSTOPEN 0x200 /* First right to advlock file */ #endif /* |