Skip to content

Commit 90abad3

Browse files
MKuranowskigopherbot
authored andcommitted
unix: add AT_EACCESS on Darwin
The AT_EACCESS constant, used by faccessat syscall is present on Linux, Solaris and other BSD platforms. This commit also adds this constant on Darwin. The constant (and the associated faccessat syscall) is part of POSIX.1-2008. Fixes golang/go#59265. Change-Id: Iae0ac35107cc291eba523cc88e68d3a9ddb7d01e GitHub-Last-Rev: a6a16c4 GitHub-Pull-Request: #153 Reviewed-on: https://go-review.googlesource.com/c/sys/+/480115 Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org>
1 parent 94933fc commit 90abad3

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

unix/types_darwin.go

+1
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ const (
304304
AT_REMOVEDIR = C.AT_REMOVEDIR
305305
AT_SYMLINK_FOLLOW = C.AT_SYMLINK_FOLLOW
306306
AT_SYMLINK_NOFOLLOW = C.AT_SYMLINK_NOFOLLOW
307+
AT_EACCESS = C.AT_EACCESS
307308
)
308309

309310
// poll

unix/ztypes_darwin_amd64.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unix/ztypes_darwin_arm64.go

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)