LibC: Implement pause

This commit is contained in:
2026-07-06 15:15:14 +03:00
parent e8a490336c
commit fc10de7ccb

View File

@@ -688,6 +688,14 @@ int getpagesize(void)
return PAGE_SIZE; return PAGE_SIZE;
} }
int pause(void)
{
sigset_t mask;
if (sigprocmask(SIG_BLOCK, nullptr, &mask) == -1)
return -1;
return sigsuspend(&mask);
}
int lockf(int fildes, int function, off_t size) int lockf(int fildes, int function, off_t size)
{ {
(void)fildes; (void)fildes;