diff options
author | Rich Felker <dalias@aerifal.cx> | 2024-02-22 18:50:34 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2024-02-22 18:50:34 -0500 |
commit | 19563e1850808af216b1b84263bb7e83cccce506 (patch) | |
tree | 76aa0be0c61791fcae503569477efb87401cb83e /src/unistd/faccessat.c | |
parent | 7020e85fd768be02e7f5971f1707229407cfa1e4 (diff) | |
download | musl-19563e1850808af216b1b84263bb7e83cccce506.zip musl-19563e1850808af216b1b84263bb7e83cccce506.tar.gz musl-19563e1850808af216b1b84263bb7e83cccce506.tar.bz2 |
add framework to support archs without a native wait4 syscall
this commit should make no codegen change for existing archs, but is a
prerequisite for new archs including riscv32. the wait4 emulation
backend provides both cancellable and non-cancellable variants because
waitpid is required to be a cancellation point, but all of our other
uses are not, and most of them cannot be.
based on patch by Stefan O'Rear.
Diffstat (limited to 'src/unistd/faccessat.c')
-rw-r--r-- | src/unistd/faccessat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/faccessat.c b/src/unistd/faccessat.c index 557503e..43052dd 100644 --- a/src/unistd/faccessat.c +++ b/src/unistd/faccessat.c @@ -53,7 +53,7 @@ int faccessat(int fd, const char *filename, int amode, int flag) if (pid<0 || __syscall(SYS_read, p[0], &ret, sizeof ret) != sizeof(ret)) ret = -EBUSY; __syscall(SYS_close, p[0]); - __syscall(SYS_wait4, pid, &status, __WCLONE, 0); + __sys_wait4(pid, &status, __WCLONE, 0); __restore_sigs(&set); |