1 /* 2 * Copyright 2006-2010 Haiku Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _BSD_SIGNAL_H_ 6 #define _BSD_SIGNAL_H_ 7 8 9 #include_next <signal.h> 10 #include <features.h> 11 12 13 #ifdef _DEFAULT_SOURCE 14 15 16 #define sigmask(sig) (1 << ((sig) - 1)) 17 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 int sigsetmask(int mask); 24 int sigblock(int mask); 25 int pthread_sigqueue(pthread_t thread, int sig, const union sigval value); 26 27 #ifdef __cplusplus 28 } 29 #endif 30 31 32 #endif 33 34 35 #endif /* _BSD_SIGNAL_H_ */ 36