1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 09:17:35 +00:00

LibPthread: Add POSIX spec link for pthread_sigmask API

This commit is contained in:
Brian Gianforcaro 2022-01-07 00:35:46 -08:00 committed by Brian Gianforcaro
parent 29716b9624
commit f4dd388caf

View file

@ -171,12 +171,14 @@ int pthread_detach(pthread_t thread)
__RETURN_PTHREAD_ERROR(rc);
}
// https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_sigmask.html
int pthread_sigmask(int how, const sigset_t* set, sigset_t* old_set)
{
if (sigprocmask(how, set, old_set))
return errno;
return 0;
}
// https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_mutex_init.html
int pthread_mutex_init(pthread_mutex_t* mutex, const pthread_mutexattr_t* attributes)
{