]> Cypherpunks repositories - gostls13.git/commit
internal/syscall/unix: implement Eaccess on darwin
authorTobias Klauser <tklauser@distanz.ch>
Thu, 18 Apr 2024 07:39:31 +0000 (09:39 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 19 Apr 2024 15:02:38 +0000 (15:02 +0000)
commit974b2011ca2a74ca1137558771b428bddb2e7df3
tree9ecdf1125e64e46b9ce416f6340156d2f66873de
parent104c293ffe0037de2462cdd404a6910dcf58298d
internal/syscall/unix: implement Eaccess on darwin

Like on other Unix-like platforms, use faccessat(AT_FDCWD, path, mode,
AT_EACCESS).

Change-Id: I6e04b4244f8e90bd3b35b1b8a9ca38fe845b34ae
Reviewed-on: https://go-review.googlesource.com/c/go/+/579976
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/internal/syscall/unix/asm_darwin.s
src/internal/syscall/unix/at_sysnum_darwin.go
src/internal/syscall/unix/eaccess_darwin.go [new file with mode: 0644]
src/internal/syscall/unix/eaccess_other.go