Debian Codegraph @

libgo/go/syscall/const_plan9.go

raw
1 package syscall
2
3 // Plan 9 Constants
4
5 // Open modes
6 const (
7 O_RDONLY = 0
8 O_WRONLY = 1
9 O_RDWR = 2
10 O_TRUNC = 16
11 O_CLOEXEC = 32
12 O_EXCL = 0x1000
13 )
14
15 // Bind flags
16 const (
17 MORDER = 0x0003 // mask for bits defining order of mounting
18 MREPL = 0x0000 // mount replaces object
19 MBEFORE = 0x0001 // mount goes before others in union directory
20 MAFTER = 0x0002 // mount goes after others in union directory
21 MCREATE = 0x0004 // permit creation in mounted directory
22 MCACHE = 0x0010 // cache some data
23 MMASK = 0x0017 // all bits on
24 )
25
26 // Rfork flags
27 const (
28 RFNAMEG = 1 << 0
29 RFENVG = 1 << 1
30 RFFDG = 1 << 2
31 RFNOTEG = 1 << 3
32 RFPROC = 1 << 4
33 RFMEM = 1 << 5
34 RFNOWAIT = 1 << 6
35 RFCNAMEG = 1 << 10
36 RFCENVG = 1 << 11
37 RFCFDG = 1 << 12
38 RFREND = 1 << 13
39 RFNOMNT = 1 << 14
40 )
41
42 // Qid.Type bits
43 const (
44 QTDIR = 0x80
45 QTAPPEND = 0x40
46 QTEXCL = 0x20
47 QTMOUNT = 0x10
48 QTAUTH = 0x08
49 QTTMP = 0x04
50 QTFILE = 0x00
51 )
52
53 // Dir.Mode bits
54 const (
55 DMDIR = 0x80000000
56 DMAPPEND = 0x40000000
57 DMEXCL = 0x20000000
58 DMMOUNT = 0x10000000
59 DMAUTH = 0x08000000
60 DMTMP = 0x04000000
61 DMREAD = 0x4
62 DMWRITE = 0x2
63 DMEXEC = 0x1
64 )
65
66 const (
67 STATMAX = 65535
68 ERRMAX = 128
69 STATFIXLEN = 49
70 )