unix: add S_IRWXG and S_IRWXO to FreeBSD types

I found this during https://github.com/DataDog/datadog-agent/pull/2079

Change-Id: I51d57e7e3cedb8b23e720bc03f38504dc0ad063d
GitHub-Last-Rev: 4e1c193db8
GitHub-Pull-Request: golang/sys#13
Reviewed-on: https://go-review.googlesource.com/126620
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Jan Lehnardt
2018-08-08 13:45:14 +00:00
committed by Tobias Klauser
parent acbc56fc70
commit f62c962c3e
4 changed files with 8 additions and 0 deletions

View File

@@ -204,6 +204,8 @@ const ( // Directory mode bits
S_IRUSR = C.S_IRUSR
S_IWUSR = C.S_IWUSR
S_IXUSR = C.S_IXUSR
S_IRWXG = C.S_IRWXG
S_IRWXO = C.S_IRWXO
)
type Stat_t C.struct_stat8

View File

@@ -71,6 +71,8 @@ const (
S_IRUSR = 0x100
S_IWUSR = 0x80
S_IXUSR = 0x40
S_IRWXG = 0x38
S_IRWXO = 0x7
)
type Stat_t struct {

View File

@@ -71,6 +71,8 @@ const (
S_IRUSR = 0x100
S_IWUSR = 0x80
S_IXUSR = 0x40
S_IRWXG = 0x38
S_IRWXO = 0x7
)
type Stat_t struct {

View File

@@ -73,6 +73,8 @@ const (
S_IRUSR = 0x100
S_IWUSR = 0x80
S_IXUSR = 0x40
S_IRWXG = 0x38
S_IRWXO = 0x7
)
type Stat_t struct {