Commit d865e1fa authored by Tobias Klauser's avatar Tobias Klauser Committed by Tobias Klauser

syscall: add S_IRWXG and S_IRWXO on OpenBSD

As discussed in CL 126621, these constants are already defined on Linux,
Darwin, FreeBSD and NetBSD. In order to ensure portability of existing
code using the syscall package, provide them for OpenBSD (and
DragonflyBSD, in a separate CL) as well.

Change-Id: Ia9e07cb01f989d144a620d268daa8ec946788861
Reviewed-on: https://go-review.googlesource.com/130336
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent e8daca4c
...@@ -114,6 +114,8 @@ const ( // Directory mode bits ...@@ -114,6 +114,8 @@ const ( // Directory mode bits
S_IRUSR = C.S_IRUSR S_IRUSR = C.S_IRUSR
S_IWUSR = C.S_IWUSR S_IWUSR = C.S_IWUSR
S_IXUSR = C.S_IXUSR S_IXUSR = C.S_IXUSR
S_IRWXG = C.S_IRWXG
S_IRWXO = C.S_IRWXO
) )
type Stat_t C.struct_stat type Stat_t C.struct_stat
......
...@@ -71,6 +71,8 @@ const ( ...@@ -71,6 +71,8 @@ const (
S_IRUSR = 0x100 S_IRUSR = 0x100
S_IWUSR = 0x80 S_IWUSR = 0x80
S_IXUSR = 0x40 S_IXUSR = 0x40
S_IRWXG = 0x38
S_IRWXO = 0x7
) )
type Stat_t struct { type Stat_t struct {
......
...@@ -71,6 +71,8 @@ const ( ...@@ -71,6 +71,8 @@ const (
S_IRUSR = 0x100 S_IRUSR = 0x100
S_IWUSR = 0x80 S_IWUSR = 0x80
S_IXUSR = 0x40 S_IXUSR = 0x40
S_IRWXG = 0x38
S_IRWXO = 0x7
) )
type Stat_t struct { type Stat_t struct {
......
...@@ -71,6 +71,8 @@ const ( ...@@ -71,6 +71,8 @@ const (
S_IRUSR = 0x100 S_IRUSR = 0x100
S_IWUSR = 0x80 S_IWUSR = 0x80
S_IXUSR = 0x40 S_IXUSR = 0x40
S_IRWXG = 0x38
S_IRWXO = 0x7
) )
type Stat_t struct { type Stat_t struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment