unix: add PthreadChdir and PthreadFchdir on darwin

Fixes golang/go#68226

Change-Id: I92052e2319e4edde21b5e1e47ddb5b261d81448a
GitHub-Last-Rev: bc02d6d44bb64ad202c97d3525d5355e8a027a5e
GitHub-Pull-Request: golang/sys#201
Reviewed-on: https://go-review.googlesource.com/c/sys/+/595677
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Edoardo Spadolini
2024-07-03 02:01:09 +00:00
committed by Gopher Robot
parent c892bb7ec2
commit faed7ec264
7 changed files with 102 additions and 0 deletions
+2
View File
@@ -101,6 +101,8 @@ var darwinTests = [...]darwinTest{
{"pipe", libc_pipe_trampoline_addr},
{"poll", libc_poll_trampoline_addr},
{"pread", libc_pread_trampoline_addr},
{"pthread_chdir_np", libc_pthread_chdir_np_trampoline_addr},
{"pthread_fchdir_np", libc_pthread_fchdir_np_trampoline_addr},
{"ptrace", libc_ptrace_trampoline_addr},
{"pwrite", libc_pwrite_trampoline_addr},
{"read", libc_read_trampoline_addr},