sig.h (596B)
1 /* see LICENSE file for copyright and license details */ 2 #ifndef SIG_H_ 3 #define SIG_H_ 4 5 #include <signal.h> 6 #include <sys/types.h> 7 8 #ifndef SIG2STR_MAX 9 #define SIG2STR_MAX 32 10 #endif 11 12 #ifndef NSIG 13 #ifdef _NSIG 14 #define NSIG _NSIG 15 #else 16 #define NSIG 64 17 #endif 18 #endif 19 20 extern const char *const aruu_sys_signame[NSIG]; 21 extern const int aruu_sys_nsig; 22 23 #define sys_signame aruu_sys_signame 24 #define sys_nsig aruu_sys_nsig 25 26 #define sig2str aruu_sig2str 27 #define str2sig aruu_str2sig 28 29 int aruu_sig2str(int signo, char *str); 30 int aruu_str2sig(const char *str, int *signop); 31 32 #endif /* !SIG_H_ */