ref: 6f1419495d556e914f5a4afa05c5f3cc8b0e1849
parent: 4ff322bbbc9b8c181b6f48b55c72f5482cec3c88
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jan 8 16:51:41 EST 2017
Add missing open options.
--- a/lib/sys/sys+freebsd-x64.myr
+++ b/lib/sys/sys+freebsd-x64.myr
@@ -189,6 +189,14 @@
const Otrunc : fdopt = 0x400
const Odir : fdopt = 0x20000
+ const Oshlock : fdopt = 0x0010 /* open with shared file lock */
+ const Oexlock : fdopt = 0x0020 /* open with exclusive file lock */
+ const Oasync : fdopt = 0x0040 /* signal pgrp when data ready */
+ const Ofsync : fdopt = 0x0080 /* synchronous writes */
+ const Oexcl : fdopt = 0x0800 /* error if already exists */
+ const Ocloexec : fdopt = 0x00100000
+
+
/* stat modes */
const Sifmt : filemode = 0xf000
const Sififo : filemode = 0x1000