From 816aa99b9a905c5a1fb1d1853698d87b74099720 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Tue, 15 Nov 2016 16:33:22 +0100 Subject: [PATCH] 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 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/syscall/const_plan9.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/syscall/const_plan9.go b/src/syscall/const_plan9.go index ba26f123dea..063d5dfd7c2 100644 --- a/src/syscall/const_plan9.go +++ b/src/syscall/const_plan9.go @@ -12,6 +12,17 @@ const ( O_EXCL = 0x1000 ) +// Bind flags +const ( + MORDER = 0x0003 // mask for bits defining order of mounting + MREPL = 0x0000 // mount replaces object + MBEFORE = 0x0001 // mount goes before others in union directory + MAFTER = 0x0002 // mount goes after others in union directory + MCREATE = 0x0004 // permit creation in mounted directory + MCACHE = 0x0010 // cache some data + MMASK = 0x0017 // all bits on +) + // Rfork flags const ( RFNAMEG = 1 << 0