diff options
| author | forsyth <forsyth@vitanuova.com> | 2009-12-04 20:41:24 +0000 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2009-12-04 20:41:24 +0000 |
| commit | 54041ca415f1fdfa1c3dcd82d524223cfa890940 (patch) | |
| tree | 61b7d29f9df1ade1b3cb5ad859f53fecead5e356 /appl/lib/styxconv/nsys.m | |
| parent | 1d6f6b43a0f31b37b3302fc0d627c904c381f3d1 (diff) | |
20091204
Diffstat (limited to 'appl/lib/styxconv/nsys.m')
| -rw-r--r-- | appl/lib/styxconv/nsys.m | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/appl/lib/styxconv/nsys.m b/appl/lib/styxconv/nsys.m new file mode 100644 index 00000000..5fe267ec --- /dev/null +++ b/appl/lib/styxconv/nsys.m @@ -0,0 +1,51 @@ +NSys: module +{ + # Unique file identifier for file objects + Qid: adt + { + path: big; + vers: int; + qtype: int; + }; + + QTDIR: con 16r80; + QTAPPEND: con 16r40; + QTEXCL: con 16r20; + QTAUTH: con 16r08; + QTTMP: con 16r04; + QTFILE: con 0; + + # Return from stat and directory read + Dir: adt + { + name: string; + uid: string; + gid: string; + muid: string; + qid: Qid; + mode: int; + atime: int; + mtime: int; + length: big; + dtype: int; + dev: int; + }; + + # Maximum read which will be completed atomically; + # also the optimum block size + # + ATOMICIO: con 8192; + + OREAD: con 0; + OWRITE: con 1; + ORDWR: con 2; + OTRUNC: con 16; + ORCLOSE: con 64; + OEXCL: con 16r1000; + + DMDIR: con int 1<<31; + DMAPPEND: con int 1<<30; + DMEXCL: con int 1<<29; + DMAUTH: con int 1<<27; + DMTMP: con int 1<<26; +}; |
