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 26 #ifdef __cplusplus 27 } 28 #endif 29 30 31 #endif 32 33 34 #endif /* _BSD_SIGNAL_H_ */ 35