1 /*
2 * Copyright 2007, Vasilis Kaoutsis, kaoutsis@sch.gr
3 * Distributed under the terms of the MIT License.
4 */
5
6
7 #include <signal.h>
8
9 #include <symbol_versioning.h>
10
11 #include <signal_private.h>
12
13
14 int
__sigrelse_beos(int signal)15 __sigrelse_beos(int signal)
16 {
17 // make an empty set and add the signal
18 sigset_t_beos tempSignalSet = 0;
19 if (__sigaddset_beos(&tempSignalSet, signal) == -1)
20 return -1;
21
22 // remove the signal from the calling process' signal mask
23 return __pthread_sigmask_beos(SIG_UNBLOCK, &tempSignalSet, NULL);
24 }
25
26
27 int
__sigrelse(int signal)28 __sigrelse(int signal)
29 {
30 // make an empty set and add the signal
31 sigset_t tempSignalSet = 0;
32 if (sigaddset(&tempSignalSet, signal) == -1)
33 return -1;
34
35 // remove the signal from the calling process' signal mask
36 return sigprocmask(SIG_UNBLOCK, &tempSignalSet, NULL);
37 }
38
39
40 DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigrelse_beos", "sigrelse@", "BASE");
41
42 DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigrelse", "sigrelse@@", "1_ALPHA4");
43