authorgravatar for leroycepearson@geemili.xyzLeRoyce Pearson <leroycepearson@geemili.xyz> 2020-04-02 23:50:12-06:00
committergravatar for leroycepearson@geemili.xyzLeRoyce Pearson <leroycepearson@geemili.xyz> 2020-04-02 23:50:12-06:00
log4dd0822a3680de84ce5e6fd2536ffc91e0aaefb1
treec5de9e8d25e95558837401a8fbb4cd0536e1bf7e
parent733f1c25bd34270b76c5fa43928dfffda1ecd5e3

Add LOCK_* constants to BSD `os/bits`


3 files changed, 15 insertions(+), 0 deletions(-)

lib/std/os/bits/dragonfly.zig+5
......@@ -692,6 +692,11 @@ pub const F_DUP2FD = 10;
692692pub const F_DUPFD_CLOEXEC = 17;
693693pub const F_DUP2FD_CLOEXEC = 18;
694694
695pub const LOCK_SH = 1;
696pub const LOCK_EX = 2;
697pub const LOCK_UN = 8;
698pub const LOCK_NB = 4;
699
695700pub const Flock = extern struct {
696701 l_start: off_t,
697702 l_len: off_t,
lib/std/os/bits/freebsd.zig+5
......@@ -367,6 +367,11 @@ pub const F_RDLCK = 1;
367367pub const F_WRLCK = 3;
368368pub const F_UNLCK = 2;
369369
370pub const LOCK_SH = 1;
371pub const LOCK_EX = 2;
372pub const LOCK_UN = 8;
373pub const LOCK_NB = 4;
374
370375pub const F_SETOWN_EX = 15;
371376pub const F_GETOWN_EX = 16;
372377
lib/std/os/bits/netbsd.zig+5
......@@ -447,6 +447,11 @@ pub const F_RDLCK = 1;
447447pub const F_WRLCK = 3;
448448pub const F_UNLCK = 2;
449449
450pub const LOCK_SH = 1;
451pub const LOCK_EX = 2;
452pub const LOCK_UN = 8;
453pub const LOCK_NB = 4;
454
450455pub const FD_CLOEXEC = 1;
451456
452457pub const SEEK_SET = 0;