/* * Copyright 2007, Vasilis Kaoutsis, kaoutsis@sch.gr * Distributed under the terms of the MIT License. */ #include #include #include int __sigrelse_beos(int signal) { // make an empty set and add the signal sigset_t_beos tempSignalSet = 0; if (__sigaddset_beos(&tempSignalSet, signal) == -1) return -1; // remove the signal from the calling process' signal mask return __pthread_sigmask_beos(SIG_UNBLOCK, &tempSignalSet, NULL); } int __sigrelse(int signal) { // make an empty set and add the signal sigset_t tempSignalSet = 0; if (sigaddset(&tempSignalSet, signal) == -1) return -1; // remove the signal from the calling process' signal mask return sigprocmask(SIG_UNBLOCK, &tempSignalSet, NULL); } DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigrelse_beos", "sigrelse@", "BASE"); DEFINE_LIBROOT_KERNEL_SYMBOL_VERSION("__sigrelse", "sigrelse@@", "1_ALPHA4");