Skip to content

Commit 28082ec

Browse files
committed
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.
1 parent 00d8004 commit 28082ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

unix/types_darwin.go

Lines changed: 1 addition & 0 deletions
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

0 commit comments

Comments
 (0)