shithub: mc

Download patch

ref: cde6c5f1152664a737ad8fd963ae2d354a07a99e
parent: 46d314b6a9301cf48b66a9e1a6db16a1a0f22fce
author: Ori Bernstein <ori@markovcorp.com>
date: Thu May 18 07:25:13 EDT 2017

Add Ocexec.

	It's useful.

--- a/lib/std/syswrap+posixy.myr
+++ b/lib/std/syswrap+posixy.myr
@@ -30,6 +30,7 @@
 	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 */
--- a/lib/sys/sys+osx-x64.myr
+++ b/lib/sys/sys+osx-x64.myr
@@ -241,6 +241,8 @@
 	const Onofollow	: fdopt = 0x100
 	const Otrunc   	: fdopt = 0x400
 	const Odir	: fdopt = 0x100000
+	const Ocloexec	: fdopt = 0x1000000
+
 
 	/* stat modes */
 	const Sifmt	: filemode = 0xf000