From 0b93932a2103b178d3ab5235c837df14173ed38c Mon Sep 17 00:00:00 2001 From: LeRoyce Pearson Date: Mon, 23 Mar 2020 21:07:50 -0600 Subject: [PATCH] Add O_SHLOCK and O_EXLOCK to freebsd and netbsd --- lib/std/os/bits/freebsd.zig | 3 +++ lib/std/os/bits/netbsd.zig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/std/os/bits/freebsd.zig b/lib/std/os/bits/freebsd.zig index 2648e4a98f28ce47e52c57ba1fa150e82bb08214..f0490ee23a1ffbd188f01ddc528faffda028de2f 100644 --- a/lib/std/os/bits/freebsd.zig +++ b/lib/std/os/bits/freebsd.zig @@ -325,6 +325,9 @@ pub const O_WRONLY = 0x0001; pub const O_RDWR = 0x0002; pub const O_ACCMODE = 0x0003; +pub const O_SHLOCK = 0x0010; +pub const O_EXLOCK = 0x0020; + pub const O_CREAT = 0x0200; pub const O_EXCL = 0x0800; pub const O_NOCTTY = 0x8000; diff --git a/lib/std/os/bits/netbsd.zig b/lib/std/os/bits/netbsd.zig index fba38e002d2c5fef9afe53d3becfc3715b0859a3..4599baddff23c659cf56e96808b4fca6d448ea0b 100644 --- a/lib/std/os/bits/netbsd.zig +++ b/lib/std/os/bits/netbsd.zig @@ -287,6 +287,9 @@ pub const O_WRONLY = 0x0001; pub const O_RDWR = 0x0002; pub const O_ACCMODE = 0x0003; +pub const O_SHLOCK = 0x0010; +pub const O_EXLOCK = 0x0020; + pub const O_CREAT = 0x0200; pub const O_EXCL = 0x0800; pub const O_NOCTTY = 0x8000; -- 2.54.0