summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-05-18 11:25:13 -0700
committerOri Bernstein <ori@markovcorp.com>2017-05-18 11:25:13 -0700
commitcde6c5f1152664a737ad8fd963ae2d354a07a99e (patch)
tree9041cf5bc411c747c62b5e8adeee0b9167823bc4
parent46d314b6a9301cf48b66a9e1a6db16a1a0f22fce (diff)
downloadmc-cde6c5f1152664a737ad8fd963ae2d354a07a99e.tar.gz
Add Ocexec.
It's useful.
-rw-r--r--lib/std/syswrap+posixy.myr1
-rw-r--r--lib/sys/sys+osx-x64.myr2
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/syswrap+posixy.myr b/lib/std/syswrap+posixy.myr
index d99eb69..5766a00 100644
--- a/lib/std/syswrap+posixy.myr
+++ b/lib/std/syswrap+posixy.myr
@@ -30,6 +30,7 @@ pkg std =
const Ordwr : fdopt = (sys.Ordwr : fdopt)
const Ocreat : fdopt = (sys.Ocreat : fdopt)
const Otrunc : fdopt = (sys.Otrunc : fdopt)
+ const Ocexec : fdopt = (sys.Ocloexec : fdopt)
const Odir : fdopt = (sys.Odir : fdopt)
/* fd stuff */
diff --git a/lib/sys/sys+osx-x64.myr b/lib/sys/sys+osx-x64.myr
index d9b09a8..4c98708 100644
--- a/lib/sys/sys+osx-x64.myr
+++ b/lib/sys/sys+osx-x64.myr
@@ -241,6 +241,8 @@ pkg sys =
const Onofollow : fdopt = 0x100
const Otrunc : fdopt = 0x400
const Odir : fdopt = 0x100000
+ const Ocloexec : fdopt = 0x1000000
+
/* stat modes */
const Sifmt : filemode = 0xf000