1 // Copyright 2017 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
12 // FIXME: unexported function from os
13 // syscallMode returns the syscall-specific mode bits from Go's portable mode bits.
14 func syscallMode(i os.FileMode) (o uint32) {
16 if i&os.ModeSetuid != 0 {
19 if i&os.ModeSetgid != 0 {
22 if i&os.ModeSticky != 0 {
25 // No mapping for Go's ModeTemporary (plan9 only).