2 * Copyright 2011, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Copyright 2004-2006, Axel Dörfler, axeld@pinc-software.de.
5 * Distributed under the terms of the MIT License.
13 #include <syscall_utils.h>
15 #include <symbol_versioning.h>
18 #include <errno_private.h>
19 #include <signal_private.h>
23 __sigprocmask_beos(int how
, const sigset_t_beos
* beosSet
,
24 sigset_t_beos
* beosOldSet
)
26 RETURN_AND_SET_ERRNO(__pthread_sigmask_beos(how
, beosSet
, beosOldSet
));
31 __pthread_sigmask_beos(int how
, const sigset_t_beos
* beosSet
,
32 sigset_t_beos
* beosOldSet
)
34 // convert new signal set
37 set
= from_beos_sigset(*beosSet
);
41 status_t error
= _kern_set_signal_mask(how
, beosSet
!= NULL
? &set
: NULL
,
42 beosOldSet
!= NULL
? &oldSet
: NULL
);
46 // convert old signal set back
47 if (beosOldSet
!= NULL
)
48 *beosOldSet
= to_beos_sigset(oldSet
);
55 __sigprocmask(int how
, const sigset_t
* set
, sigset_t
* oldSet
)
57 RETURN_AND_SET_ERRNO(_kern_set_signal_mask(how
, set
, oldSet
));
62 __pthread_sigmask(int how
, const sigset_t
* set
, sigset_t
* oldSet
)
64 return _kern_set_signal_mask(how
, set
, oldSet
);
68 DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigprocmask_beos",
69 "sigprocmask@", "BASE");
70 DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__pthread_sigmask_beos",
71 "pthread_sigmask@", "BASE");
73 DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigprocmask", "sigprocmask@@",
75 DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__pthread_sigmask", "pthread_sigmask@@",