summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-01-12 15:44:50 -0800
committerOri Bernstein <ori@eigenstate.org>2017-01-12 15:44:50 -0800
commit134d1ae9730f1aab24681285edfc452b4ac1aeee (patch)
treeb91fbdd4ee7af8a736c67f84b8e0318fa40e9887
parent4a7e4f29fb015d12bfab35b393aa1facbd2b763b (diff)
downloadmc-134d1ae9730f1aab24681285edfc452b4ac1aeee.tar.gz
Add more missing system calls.
-rw-r--r--lib/sys/sys+openbsd-x64.myr10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/sys/sys+openbsd-x64.myr b/lib/sys/sys+openbsd-x64.myr
index 39b250d..707887d 100644
--- a/lib/sys/sys+openbsd-x64.myr
+++ b/lib/sys/sys+openbsd-x64.myr
@@ -156,9 +156,17 @@ pkg sys =
const Ordwr : fdopt = 0x2
const Oappend : fdopt = 0x8
const Ondelay : fdopt = 0x4
- const Ocreat : fdopt = 0x200
+ const Oshlock : fdopt = 0x10 /* open with shared file lock */
+ const Oexlock : fdopt = 0x20 /* open with exclusive file lock */
+ const Oasync : fdopt = 0x40 /* signal pgrp when data ready */
+ const Osync : fdopt = 0x80 /* backwards compatibility */
const Onofollow : fdopt = 0x100
+ const Ocreat : fdopt = 0x200
const Otrunc : fdopt = 0x400
+ const Oexcl : fdopt = 0x800
+ const Ocloexec : fdopt = 0x10000
+ const Odsync : fdopt = Osync /* synchronous data writes */
+ const Orsync : fdopt = Osync /* synchronous reads */
const Odir : fdopt = 0x20000
/* stat modes */