summaryrefslogtreecommitdiff
path: root/libgo/go/os/sticky_bsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/os/sticky_bsd.go')
-rw-r--r--libgo/go/os/sticky_bsd.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/libgo/go/os/sticky_bsd.go b/libgo/go/os/sticky_bsd.go
new file mode 100644
index 00000000000..6b54c758c70
--- /dev/null
+++ b/libgo/go/os/sticky_bsd.go
@@ -0,0 +1,11 @@
+// Copyright 2014 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build darwin dragonfly freebsd netbsd openbsd solaris
+
+package os
+
+// According to sticky(8), neither open(2) nor mkdir(2) will create
+// a file with the sticky bit set.
+const supportsCreateWithStickyBit = false