diff options
author | Elias Naur <elias.naur@gmail.com> | 2018-12-08 16:45:29 +0100 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-12-13 17:10:32 +0000 |
commit | 9eb383e8f0be692df68ac6cbc3c9f1ccf991d342 (patch) | |
tree | c29ad431afbe97d416f2530a57f7bb1574a44392 /src/runtime/sys_darwin_amd64.s | |
parent | 571d93e977862f91bb153f0b98937ca655505fcd (diff) | |
download | go-9eb383e8f0be692df68ac6cbc3c9f1ccf991d342.tar.gz go-9eb383e8f0be692df68ac6cbc3c9f1ccf991d342.zip |
runtime,os,syscall,internal/poll: replace getdirentries on iOS
The getdirentries syscall is considered private API on iOS and is
rejected by the App Store submission checks. Replace it with the
fdopendir/readdir_r/closedir syscalls.
Fixes #28984
Change-Id: I73341b124310e9cb34834a95f946769f337ec5b7
Reviewed-on: https://go-review.googlesource.com/c/153338
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/runtime/sys_darwin_amd64.s')
-rw-r--r-- | src/runtime/sys_darwin_amd64.s | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/sys_darwin_amd64.s b/src/runtime/sys_darwin_amd64.s index 9d100057a8..f99cb00ab8 100644 --- a/src/runtime/sys_darwin_amd64.s +++ b/src/runtime/sys_darwin_amd64.s @@ -637,6 +637,11 @@ ok: POPQ BP RET +// Not used on amd64. +TEXT runtime·syscallXPtr(SB),NOSPLIT,$0 + MOVL $0xf1, 0xf1 // crash + RET + // syscall6 calls a function in libc on behalf of the syscall package. // syscall6 takes a pointer to a struct like: // struct { |