Skip to content

Commit 816aa99

Browse files
0introbradfitz
authored andcommitted
syscall: define bind flags on Plan 9
These bind flags were removed by mistake in CL 2167. Fixes #17921. Change-Id: I1e8089dade30a212b8db0b216c8299946d924d4b Reviewed-on: https://go-review.googlesource.com/33271 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 59dc9d7 commit 816aa99

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/syscall/const_plan9.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ const (
1212
O_EXCL = 0x1000
1313
)
1414

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+
1526
// Rfork flags
1627
const (
1728
RFNAMEG = 1 << 0

0 commit comments

Comments
 (0)