2020-06-15 07:18:57 -07:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_SIG_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_SIG_H_
|
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2022-08-05 23:50:08 +02:00
|
|
|
extern const int SIGBUS;
|
2022-11-05 19:49:41 -07:00
|
|
|
extern const int SIGTHR;
|
2022-08-05 23:50:08 +02:00
|
|
|
extern const int SIGCHLD;
|
|
|
|
extern const int SIGCONT;
|
|
|
|
extern const int SIGEMT;
|
|
|
|
extern const int SIGINFO;
|
|
|
|
extern const int SIGIO;
|
|
|
|
extern const int SIGPOLL;
|
|
|
|
extern const int SIGPWR;
|
|
|
|
extern const int SIGRTMAX;
|
|
|
|
extern const int SIGRTMIN;
|
|
|
|
extern const int SIGSTKFLT;
|
|
|
|
extern const int SIGSTOP;
|
|
|
|
extern const int SIGSYS;
|
|
|
|
extern const int SIGTSTP;
|
|
|
|
extern const int SIGUNUSED;
|
|
|
|
extern const int SIGURG;
|
|
|
|
extern const int SIGUSR1;
|
|
|
|
extern const int SIGUSR2;
|
2020-06-15 07:18:57 -07:00
|
|
|
|
2022-08-05 23:50:08 +02:00
|
|
|
extern const int SIG_BLOCK;
|
|
|
|
extern const int SIG_SETMASK;
|
|
|
|
extern const int SIG_UNBLOCK;
|
2020-06-15 07:18:57 -07:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
|
2023-06-08 23:44:03 -07:00
|
|
|
#define SIGABRT 6
|
|
|
|
#define SIGALRM 14
|
|
|
|
#define SIGFPE 8
|
|
|
|
#define SIGHUP 1
|
|
|
|
#define SIGILL 4
|
|
|
|
#define SIGINT 2
|
|
|
|
#define SIGIOT 6
|
|
|
|
#define SIGKILL 9
|
|
|
|
#define SIGPIPE 13
|
|
|
|
#define SIGPROF 27
|
|
|
|
#define SIGQUIT 3
|
|
|
|
#define SIGSEGV 11
|
|
|
|
#define SIGTERM 15
|
|
|
|
#define SIGTRAP 5
|
|
|
|
#define SIGTTIN 21
|
|
|
|
#define SIGTTOU 22
|
|
|
|
#define SIGVTALRM 26
|
|
|
|
#define SIGWINCH 28
|
|
|
|
#define SIGXCPU 24
|
|
|
|
#define SIGXFSZ 25
|
2022-03-25 07:11:44 -07:00
|
|
|
|
2023-08-13 07:10:14 -07:00
|
|
|
/*
|
|
|
|
* - No macro is define for SIGIO and SIGPOLL in order to persuade
|
|
|
|
* ./configure scripts to favor using poll() or select() instead of
|
|
|
|
* interrupt-based i/o.
|
|
|
|
*
|
|
|
|
* - No macros are defined for SIGRTMIN and SIGRTMAX because the project
|
|
|
|
* hasn't fleshed them out yet.
|
|
|
|
*
|
|
|
|
* - SIGTHR doesn't have a macro since it's internal to posix threads.
|
2023-11-16 16:34:53 -08:00
|
|
|
*
|
|
|
|
* - SIGSTKFLT is Linux-only so no macro is defined.
|
2023-08-13 07:10:14 -07:00
|
|
|
*/
|
|
|
|
|
2023-11-16 16:34:53 -08:00
|
|
|
#define SIGBUS SIGBUS
|
|
|
|
#define SIGCHLD SIGCHLD
|
|
|
|
#define SIGCONT SIGCONT
|
|
|
|
#define SIGEMT SIGEMT
|
|
|
|
#define SIGINFO SIGINFO
|
|
|
|
#define SIGPWR SIGPWR
|
|
|
|
#define SIGSTOP SIGSTOP
|
|
|
|
#define SIGSYS SIGSYS
|
|
|
|
#define SIGTSTP SIGTSTP
|
|
|
|
#define SIGURG SIGURG
|
|
|
|
#define SIGUSR1 SIGUSR1
|
|
|
|
#define SIGUSR2 SIGUSR2
|
2020-06-15 07:18:57 -07:00
|
|
|
|
2023-06-08 23:44:03 -07:00
|
|
|
#define SIG_BLOCK SIG_BLOCK
|
|
|
|
#define SIG_SETMASK SIG_SETMASK
|
|
|
|
#define SIG_UNBLOCK SIG_UNBLOCK
|
|
|
|
|
2020-06-15 07:18:57 -07:00
|
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_SIG_H_ */
|