mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 02:38:59 +00:00
LibPthread: Add POSIX spec link for pthread_sigmask API
This commit is contained in:
parent
29716b9624
commit
f4dd388caf
Notes:
sideshowbarker
2024-07-17 21:30:22 +09:00
Author: https://github.com/bgianfo
Commit: f4dd388caf
Pull-request: https://github.com/SerenityOS/serenity/pull/11691
Reviewed-by: https://github.com/Quaker762 ✅
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue