From f62c962c3ed9e47dcd74ae99496df0933ce1ef33 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Wed, 8 Aug 2018 13:45:14 +0000 Subject: [PATCH] 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: 4e1c193db8bfc9174f630903bfc26e5532555309 GitHub-Pull-Request: golang/sys#13 Reviewed-on: https://go-review.googlesource.com/126620 Reviewed-by: Tobias Klauser Run-TryBot: Tobias Klauser TryBot-Result: Gobot Gobot --- unix/types_freebsd.go | 2 ++ unix/ztypes_freebsd_386.go | 2 ++ unix/ztypes_freebsd_amd64.go | 2 ++ unix/ztypes_freebsd_arm.go | 2 ++ 4 files changed, 8 insertions(+) diff --git a/unix/types_freebsd.go b/unix/types_freebsd.go index 4eb02cd4d..f4b6bf961 100644 --- a/unix/types_freebsd.go +++ b/unix/types_freebsd.go @@ -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 diff --git a/unix/ztypes_freebsd_386.go b/unix/ztypes_freebsd_386.go index 878a21ad6..81793a2ad 100644 --- a/unix/ztypes_freebsd_386.go +++ b/unix/ztypes_freebsd_386.go @@ -71,6 +71,8 @@ const ( S_IRUSR = 0x100 S_IWUSR = 0x80 S_IXUSR = 0x40 + S_IRWXG = 0x38 + S_IRWXO = 0x7 ) type Stat_t struct { diff --git a/unix/ztypes_freebsd_amd64.go b/unix/ztypes_freebsd_amd64.go index 8408af125..6c7589b45 100644 --- a/unix/ztypes_freebsd_amd64.go +++ b/unix/ztypes_freebsd_amd64.go @@ -71,6 +71,8 @@ const ( S_IRUSR = 0x100 S_IWUSR = 0x80 S_IXUSR = 0x40 + S_IRWXG = 0x38 + S_IRWXO = 0x7 ) type Stat_t struct { diff --git a/unix/ztypes_freebsd_arm.go b/unix/ztypes_freebsd_arm.go index 4b2d9a483..f620a125c 100644 --- a/unix/ztypes_freebsd_arm.go +++ b/unix/ztypes_freebsd_arm.go @@ -73,6 +73,8 @@ const ( S_IRUSR = 0x100 S_IWUSR = 0x80 S_IXUSR = 0x40 + S_IRWXG = 0x38 + S_IRWXO = 0x7 ) type Stat_t struct {