mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-03 23:57:32 -04:00
unix: add *at functions (POSIX.1-2008) on darwin/{arm,arm64}
Follow golang.org/cl/50450 and add the Faccessat, Fchmodat, Fchownat, Linkat, Mkdirat, Openat, Readlinkat, Renameat, Symlinkat and Unlinkat functions (to conform to POSIX.1-2008) for darwin/arm and darwin/amd64. Also add the missing AT_* constants. Generated on Mac OS 10.11 (Darwin 15.6.0). This also regenerates the syscall numbers for arm and arm64 akin to golang.org/cl/14151 Also fix the mksysnum call in mkall.sh to work for darwin/arm. Fixes golang/go#14457 Change-Id: Ia3c36dbca9e6f1e4873afdfafcc4f7d8050644f9 Reviewed-on: https://go-review.googlesource.com/54271 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
f1e7f7a8ac
commit
89d4068c4f
+1
-1
@@ -72,7 +72,7 @@ darwin_amd64)
|
||||
;;
|
||||
darwin_arm)
|
||||
mkerrors="$mkerrors"
|
||||
mksysnum="./mksysnum_darwin.pl /usr/include/sys/syscall.h"
|
||||
mksysnum="./mksysnum_darwin.pl $(xcrun --show-sdk-path --sdk iphoneos)/usr/include/sys/syscall.h"
|
||||
mktypes="GOARCH=$GOARCH go tool cgo -godefs"
|
||||
;;
|
||||
darwin_arm64)
|
||||
|
||||
Reference in New Issue
Block a user