[libc-commits] [libc] [libc] Implement pause (PR #225365)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Tue Sep 22 22:49:21 PDT 2026


kaladron wrote:

> I was thinking whether it's right to have a pause syscall wrapper (given that it's wrapping a completely different syscall), but I was convinced by the fact that there actually is a SYS_pause on some architectures and we could concievably use it to implement linux_syscalls::pause (to wait "faster" :P) on those architectures.

Right.  This started off as me implementing SYS_pause and then realising that some architectures don't have it.  Rather than pushing the logic off to callers, I went with the compat layer.  Happy to not have it if you'd prefer.

https://github.com/llvm/llvm-project/pull/225365


More information about the libc-commits mailing list