summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-01-10 00:39:02 -0800
committerOri Bernstein <ori@eigenstate.org>2017-01-10 01:15:35 -0800
commit1025ec5cb60d81c3ac545ce735973b4c74e8c692 (patch)
tree1892537f71379061d0f803843b25d6be1f73594d
parent22f662c694d2469e08614f582e1680f160966433 (diff)
downloadmc-1025ec5cb60d81c3ac545ce735973b4c74e8c692.tar.gz
Add some missing open flags on some oses.
-rw-r--r--lib/std/syswrap+plan9.myr1
-rw-r--r--lib/sys/sys+freebsd-x64.myr1
-rw-r--r--lib/sys/sys+linux-x64.myr3
-rw-r--r--lib/sys/sys+openbsd-x64.myr2
4 files changed, 5 insertions, 2 deletions
diff --git a/lib/std/syswrap+plan9.myr b/lib/std/syswrap+plan9.myr
index 724ee61..bd3552f 100644
--- a/lib/std/syswrap+plan9.myr
+++ b/lib/std/syswrap+plan9.myr
@@ -32,6 +32,7 @@ pkg std =
const Owronly : fdopt = (sys.Owronly : fdopt)
const Ordwr : fdopt = (sys.Ordwr : fdopt)
const Otrunc : fdopt = (sys.Otrunc : fdopt)
+ const Ocexec : fdopt = (sys.Ocexec : fdopt)
const Ocreat : fdopt = 0x1000000 /* emulated by redirecting to creat(). */
const Oappend : fdopt = 0x2000000 /* emulated by seeking to EOF */
const Odir : fdopt = 0x0 /* no-op on plan9 */
diff --git a/lib/sys/sys+freebsd-x64.myr b/lib/sys/sys+freebsd-x64.myr
index b4d86a3..c612a03 100644
--- a/lib/sys/sys+freebsd-x64.myr
+++ b/lib/sys/sys+freebsd-x64.myr
@@ -196,7 +196,6 @@ pkg sys =
const Oexcl : fdopt = 0x0800 /* error if already exists */
const Ocloexec : fdopt = 0x00100000
-
/* stat modes */
const Sifmt : filemode = 0xf000
const Sififo : filemode = 0x1000
diff --git a/lib/sys/sys+linux-x64.myr b/lib/sys/sys+linux-x64.myr
index 9752eb2..8bcafc8 100644
--- a/lib/sys/sys+linux-x64.myr
+++ b/lib/sys/sys+linux-x64.myr
@@ -192,8 +192,11 @@ pkg sys =
const Oappend : fdopt = 0x400
const Ondelay : fdopt = 0x800
const Odirect : fdopt = 0x4000
+ const Olarge : fdopt = 0x8000
const Odir : fdopt = 0x10000
const Onofollow : fdopt = 0x20000
+ const Onoatime : fdopt = 0x40000
+ const Ocloexec : fdopt = 0x80000
/* stat modes */
const Sifmt : filemode = 0xf000
diff --git a/lib/sys/sys+openbsd-x64.myr b/lib/sys/sys+openbsd-x64.myr
index a8c2cf5..39b250d 100644
--- a/lib/sys/sys+openbsd-x64.myr
+++ b/lib/sys/sys+openbsd-x64.myr
@@ -155,9 +155,9 @@ pkg sys =
const Owronly : fdopt = 0x1
const Ordwr : fdopt = 0x2
const Oappend : fdopt = 0x8
+ const Ondelay : fdopt = 0x4
const Ocreat : fdopt = 0x200
const Onofollow : fdopt = 0x100
- const Ondelay : fdopt = 0x4
const Otrunc : fdopt = 0x400
const Odir : fdopt = 0x20000