authorgravatar for leroycepearson@geemili.xyzLeRoyce Pearson <leroycepearson@geemili.xyz> 2020-03-23 21:07:50-06:00
committergravatar for leroycepearson@geemili.xyzLeRoyce Pearson <leroycepearson@geemili.xyz> 2020-03-23 21:07:50-06:00
log0b93932a2103b178d3ab5235c837df14173ed38c
tree3a627d0db186490b156216939be9e30757151da8
parent5b278fb60615751bef5e521a613e8798d783dd26

Add O_SHLOCK and O_EXLOCK to freebsd and netbsd


2 files changed, 6 insertions(+), 0 deletions(-)

lib/std/os/bits/freebsd.zig+3
...@@ -325,6 +325,9 @@ pub const O_WRONLY = 0x0001;...@@ -325,6 +325,9 @@ pub const O_WRONLY = 0x0001;
325pub const O_RDWR = 0x0002;325pub const O_RDWR = 0x0002;
326pub const O_ACCMODE = 0x0003;326pub const O_ACCMODE = 0x0003;
327327
328pub const O_SHLOCK = 0x0010;
329pub const O_EXLOCK = 0x0020;
330
328pub const O_CREAT = 0x0200;331pub const O_CREAT = 0x0200;
329pub const O_EXCL = 0x0800;332pub const O_EXCL = 0x0800;
330pub const O_NOCTTY = 0x8000;333pub const O_NOCTTY = 0x8000;
lib/std/os/bits/netbsd.zig+3
...@@ -287,6 +287,9 @@ pub const O_WRONLY = 0x0001;...@@ -287,6 +287,9 @@ pub const O_WRONLY = 0x0001;
287pub const O_RDWR = 0x0002;287pub const O_RDWR = 0x0002;
288pub const O_ACCMODE = 0x0003;288pub const O_ACCMODE = 0x0003;
289289
290pub const O_SHLOCK = 0x0010;
291pub const O_EXLOCK = 0x0020;
292
290pub const O_CREAT = 0x0200;293pub const O_CREAT = 0x0200;
291pub const O_EXCL = 0x0800;294pub const O_EXCL = 0x0800;
292pub const O_NOCTTY = 0x8000;295pub const O_NOCTTY = 0x8000;