summaryrefslogtreecommitdiff
path: root/src/unistd
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2024-10-10 17:09:24 -0400
committerRich Felker <dalias@aerifal.cx>2024-10-10 17:11:39 -0400
commit6d8000d3c6e1026415f8398f540f5f3783622538 (patch)
treef4d59b573e007dd78fd796fb050f959169834626 /src/unistd
parent23ab04a8630225371455d5f4538fd078665bb646 (diff)
downloadmusl-6d8000d3c6e1026415f8398f540f5f3783622538.tar.gz
abstract missing SYS_pause syscall with macros
newer archs lack the syscall. the pause() function accounted for this with its own #ifdef, but that didn't allow use of the syscall directly elsewhere, so move the logic to macros in src/internal/syscall.h where it can be shared.
Diffstat (limited to 'src/unistd')
-rw-r--r--src/unistd/pause.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/unistd/pause.c b/src/unistd/pause.c
index 90bbf4ca..90cc8db5 100644
--- a/src/unistd/pause.c
+++ b/src/unistd/pause.c
@@ -3,9 +3,5 @@
int pause(void)
{
-#ifdef SYS_pause
- return syscall_cp(SYS_pause);
-#else
- return syscall_cp(SYS_ppoll, 0, 0, 0, 0);
-#endif
+ return sys_pause_cp();
}