13 /* terminal line hangup */
\r
18 /* interrupt program */
\r
28 /* illegal instruction */
\r
38 /* abnormal termination triggered by abort call */
\r
43 /* floating point exception */
\r
58 /* segment violation */
\r
63 /* non-existent system call invoked */
\r
68 /* write on a pipe with no reader */
\r
73 /* real-time timer expired */
\r
78 /* software termination signal from kill */
\r
83 /* urgent condition present on socket */
\r
88 /* stop (cannot be caught orignored) */
\r
93 /* stop signal generated from keyboard */
\r
98 /* continue after stop */
\r
103 /* child status has changed */
\r
108 /* background read attempted from control terminal */
\r
113 /* background write attempted to control terminal */
\r
118 /* I/O is possible on a descriptor see fcntl(2)) */
\r
123 /* cpu time limit exceeded (see setrlimit(2)) */
\r
128 /* file size limit exceeded (see setrlimit(2)) */
\r
133 /* virtual time alarm (see setitimer(2)) */
\r
135 #define SIGVTALRM 26
\r
138 /* profiling timer alarm (see setitimer(2)) */
\r
143 /* window size change */
\r
145 #define SIGWINCH 28
\r
148 /* user defined signal 1 */
\r
153 /* user defined signal 2 */
\r
160 is_an_unhandled_exception(DWORD exit_code);
\r
163 *return a non-zero value if status was returned for a child process that terminated normally.
\r
165 #define WIFEXITED(__status) !is_an_unhandled_exception((__status))
\r
167 /* if the value of WIFEXITED(__status) is non-zero, this macro evaluates the value the child
\r
168 * process returned from main().
\r
170 #define WEXITSTATUS(__status) (__status)
\r
172 /* return a non-zero value if status was returned for a child process that terminated due to the
\r
173 * receipt of a signal that was not caught
\r
175 #define WIFSIGNALED(__status) is_an_unhandled_exception((__status))
\r
177 /* if the value of WIFSIGNALED(__status) is non-zero, this macro evaluates to the number of the
\r
178 * signal that caused the termination of the child process.
\r
180 #define WTERMSIG(__status) (__status)
\r
187 signal_name(DWORD got, const char* expected);
\r
190 signal_name(unsigned int got, char *expected);
\r
195 sig_exists(const char* sig_name);
\r
201 #endif /* !__XSIGNAL_H */
\r