diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2018-08-21 10:48:00 +0200 |
|---|---|---|
| committer | Tobias Klauser <tobias.klauser@gmail.com> | 2018-08-21 14:08:55 +0000 |
| commit | 4e1b11e2c9bdb0ddea1141eed487be1a626ff5be (patch) | |
| tree | 133f31fd885459beaa102e8912dc4bcb47fb39fe /src/syscall | |
| parent | d865e1fa483d689f1f4afae0b2b6260a5b657959 (diff) | |
| download | go-4e1b11e2c9bdb0ddea1141eed487be1a626ff5be.tar.xz | |
syscall: add S_IRWXG and S_IRWXO on Solaris
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 Solaris as well.
Change-Id: Id49f6991f36775b152b9c47b9923cd0a08053bcb
Reviewed-on: https://go-review.googlesource.com/130356
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/syscall')
| -rw-r--r-- | src/syscall/types_solaris.go | 2 | ||||
| -rw-r--r-- | src/syscall/ztypes_solaris_amd64.go | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/syscall/types_solaris.go b/src/syscall/types_solaris.go index a219a437d5..a9e6d6bdd6 100644 --- a/src/syscall/types_solaris.go +++ b/src/syscall/types_solaris.go @@ -120,6 +120,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_stat diff --git a/src/syscall/ztypes_solaris_amd64.go b/src/syscall/ztypes_solaris_amd64.go index 12307abfaa..b892cd6612 100644 --- a/src/syscall/ztypes_solaris_amd64.go +++ b/src/syscall/ztypes_solaris_amd64.go @@ -77,6 +77,8 @@ const ( S_IRUSR = 0x100 S_IWUSR = 0x80 S_IXUSR = 0x40 + S_IRWXG = 0x38 + S_IRWXO = 0x7 ) type Stat_t struct { |
