summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-01-08 21:51:41 -0800
committerOri Bernstein <ori@eigenstate.org>2017-01-08 21:51:41 -0800
commit6f1419495d556e914f5a4afa05c5f3cc8b0e1849 (patch)
treee67aa38afc9a511f7aa979f04b3a7bd588b66d1b /lib
parent4ff322bbbc9b8c181b6f48b55c72f5482cec3c88 (diff)
downloadmc-6f1419495d556e914f5a4afa05c5f3cc8b0e1849.tar.gz
Add missing open options.
Diffstat (limited to 'lib')
-rw-r--r--lib/sys/sys+freebsd-x64.myr8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/sys/sys+freebsd-x64.myr b/lib/sys/sys+freebsd-x64.myr
index b1c8034..b4d86a3 100644
--- a/lib/sys/sys+freebsd-x64.myr
+++ b/lib/sys/sys+freebsd-x64.myr
@@ -189,6 +189,14 @@ pkg sys =
const Otrunc : fdopt = 0x400
const Odir : fdopt = 0x20000
+ const Oshlock : fdopt = 0x0010 /* open with shared file lock */
+ const Oexlock : fdopt = 0x0020 /* open with exclusive file lock */
+ const Oasync : fdopt = 0x0040 /* signal pgrp when data ready */
+ const Ofsync : fdopt = 0x0080 /* synchronous writes */
+ const Oexcl : fdopt = 0x0800 /* error if already exists */
+ const Ocloexec : fdopt = 0x00100000
+
+
/* stat modes */
const Sifmt : filemode = 0xf000
const Sififo : filemode = 0x1000