@@ -42,19 +42,19 @@ type Flag uint8
42
42
// Constants to use when opening files.
43
43
const (
44
44
OREAD Flag = 0x00 // open for read
45
- OWRITE = 0x01 // write
46
- ORDWR = 0x02 // read and write
47
- OEXEC = 0x03 // execute, == read but check execute permission
45
+ OWRITE Flag = 0x01 // write
46
+ ORDWR Flag = 0x02 // read and write
47
+ OEXEC Flag = 0x03 // execute, == read but check execute permission
48
48
49
49
// PROPOSAL(stevvooe): Possible protocal extension to allow the create of
50
50
// symlinks. Initially, the link is created with no value. Read and write
51
51
// to read and set the link value.
52
52
53
- OSYMLINK = 0x04
53
+ OSYMLINK Flag = 0x04
54
54
55
- OTRUNC = 0x10 // or'ed in (except for exec), truncate file first
56
- OCEXEC = 0x20 // or'ed in, close on exec
57
- ORCLOSE = 0x40 // or'ed in, remove on close
55
+ OTRUNC Flag = 0x10 // or'ed in (except for exec), truncate file first
56
+ OCEXEC Flag = 0x20 // or'ed in, close on exec
57
+ ORCLOSE Flag = 0x40 // or'ed in, remove on close
58
58
)
59
59
60
60
// QType indicates the type of a resource within the Qid.
@@ -63,12 +63,12 @@ type QType uint8
63
63
// Constants for use in Qid to indicate resource type.
64
64
const (
65
65
QTDIR QType = 0x80 // type bit for directories
66
- QTAPPEND = 0x40 // type bit for append only files
67
- QTEXCL = 0x20 // type bit for exclusive use files
68
- QTMOUNT = 0x10 // type bit for mounted channel
69
- QTAUTH = 0x08 // type bit for authentication file
70
- QTTMP = 0x04 // type bit for not-backed-up file
71
- QTFILE = 0x00 // plain file
66
+ QTAPPEND QType = 0x40 // type bit for append only files
67
+ QTEXCL QType = 0x20 // type bit for exclusive use files
68
+ QTMOUNT QType = 0x10 // type bit for mounted channel
69
+ QTAUTH QType = 0x08 // type bit for authentication file
70
+ QTTMP QType = 0x04 // type bit for not-backed-up file
71
+ QTFILE QType = 0x00 // plain file
72
72
)
73
73
74
74
func (qt QType ) String () string {
0 commit comments