mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 20:17:42 +00:00
LibPthread: Implement pthread_sigmask()
This commit is contained in:
parent
95b086f47f
commit
2b45b7a45c
1 changed files with 8 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include <Kernel/Syscall.h>
|
#include <Kernel/Syscall.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
@ -90,6 +91,13 @@ int pthread_detach(pthread_t thread)
|
||||||
return syscall(SC_detach_thread, thread);
|
return syscall(SC_detach_thread, thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int pthread_sigmask(int how, const sigset_t* set, sigset_t* old_set)
|
||||||
|
{
|
||||||
|
if (sigprocmask(how, set, old_set))
|
||||||
|
return errno;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
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)
|
||||||
{
|
{
|
||||||
// FIXME: Implement mutex attributes
|
// FIXME: Implement mutex attributes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue