vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / posix / signal / sigrelse.cpp
blobf49a9eb62ed655571155d4d24551d5e90a97731b
1 /*
2 * Copyright 2007, Vasilis Kaoutsis, kaoutsis@sch.gr
3 * Distributed under the terms of the MIT License.
4 */
7 #include <signal.h>
9 #include <symbol_versioning.h>
11 #include <signal_private.h>
14 int
15 __sigrelse_beos(int signal)
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;
22 // remove the signal from the calling process' signal mask
23 return __pthread_sigmask_beos(SIG_UNBLOCK, &tempSignalSet, NULL);
27 int
28 __sigrelse(int signal)
30 // make an empty set and add the signal
31 sigset_t tempSignalSet = 0;
32 if (sigaddset(&tempSignalSet, signal) == -1)
33 return -1;
35 // remove the signal from the calling process' signal mask
36 return sigprocmask(SIG_UNBLOCK, &tempSignalSet, NULL);
40 DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigrelse_beos", "sigrelse@", "BASE");
42 DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigrelse", "sigrelse@@", "1_ALPHA4");