mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-23 05:46:06 +00:00
LibPthread: Add POSIX spec link for pthread_sigmask API
This commit is contained in:
committed by
Brian Gianforcaro
parent
29716b9624
commit
f4dd388caf
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user