blob: 5fe267ecc720184f045dccbfd5ce4365cbfcdd7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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;
};
|