shithub: mc

Download patch

ref: 1025ec5cb60d81c3ac545ce735973b4c74e8c692
parent: 22f662c694d2469e08614f582e1680f160966433
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jan 9 19:39:02 EST 2017

Add some missing open flags on some oses.

--- a/lib/std/syswrap+plan9.myr
+++ b/lib/std/syswrap+plan9.myr
@@ -32,6 +32,7 @@
 	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 */
--- a/lib/sys/sys+freebsd-x64.myr
+++ b/lib/sys/sys+freebsd-x64.myr
@@ -196,7 +196,6 @@
 	const Oexcl	: fdopt = 0x0800	/* error if already exists */
 	const Ocloexec	: fdopt = 0x00100000
 
-
         /* stat modes */	
 	const Sifmt	: filemode = 0xf000
 	const Sififo	: filemode = 0x1000
--- a/lib/sys/sys+linux-x64.myr
+++ b/lib/sys/sys+linux-x64.myr
@@ -192,8 +192,11 @@
 	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
--- a/lib/sys/sys+openbsd-x64.myr
+++ b/lib/sys/sys+openbsd-x64.myr
@@ -155,9 +155,9 @@
 	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