mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:27:45 +00:00
LibPthread: Add POSIX spec link for pthread_sigmask API
This commit is contained in:
parent
29716b9624
commit
f4dd388caf
1 changed files with 2 additions and 0 deletions
|
@ -171,12 +171,14 @@ int pthread_detach(pthread_t thread)
|
||||||
__RETURN_PTHREAD_ERROR(rc);
|
__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)
|
int pthread_sigmask(int how, const sigset_t* set, sigset_t* old_set)
|
||||||
{
|
{
|
||||||
if (sigprocmask(how, set, old_set))
|
if (sigprocmask(how, set, old_set))
|
||||||
return errno;
|
return errno;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_mutex_init.html
|
// https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_mutex_init.html
|
||||||
int pthread_mutex_init(pthread_mutex_t* mutex, const pthread_mutexattr_t* attributes)
|
int pthread_mutex_init(pthread_mutex_t* mutex, const pthread_mutexattr_t* attributes)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue