summaryrefslogtreecommitdiff
path: root/libstd/sys+plan9-x64.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-12-23 15:29:57 -0800
committerOri Bernstein <ori@eigenstate.org>2014-12-23 15:29:57 -0800
commit18bcc12f58930608f28dd3854f408941d39cc01a (patch)
tree969ffa7c40bd82b50293b55cdcc700f54b38a300 /libstd/sys+plan9-x64.myr
parent6c03e0312087a22b53c44369ac758c7d8ae155e4 (diff)
downloadmc-18bcc12f58930608f28dd3854f408941d39cc01a.tar.gz
Add directory modes.
Diffstat (limited to 'libstd/sys+plan9-x64.myr')
-rw-r--r--libstd/sys+plan9-x64.myr18
1 files changed, 18 insertions, 0 deletions
diff --git a/libstd/sys+plan9-x64.myr b/libstd/sys+plan9-x64.myr
index 3437f09..e658cec 100644
--- a/libstd/sys+plan9-x64.myr
+++ b/libstd/sys+plan9-x64.myr
@@ -17,6 +17,24 @@ pkg sys =
const Orclose : fdopt = 64
const Oexcl : fdopt = 0x1000
+ const Qtdir : int64 = 0x80
+ const Qtappend : int64 = 0x40
+ const Qtexcl : int64 = 0x20
+ const Qtmount : int64 = 0x10
+ const Qtauth : int64 = 0x08
+ const Qttmp : int64 = 0x04
+ const Qtfile : int64 = 0x00
+
+ const Dmdir : int64 = 0x8000000
+ const Dmappend : int64 = 0x4000000
+ const Dmexcl : int64 = 0x2000000
+ const Dmmount : int64 = 0x1000000
+ const Dmauth : int64 = 0x0800000
+ const Dmtmp : int64 = 0x0400000
+ const Dmread : int64 = 0x4
+ const Dmwrite : int64 = 0x2
+ const Dmexec : int64 = 0x1
+
const Syssysr1 : scno = 0
const Sys_errstr : scno = 1
const Sysbind : scno = 2