ack/lang/cem/libcc.ansi/headers/signal.h

73 lines
2.5 KiB
C
Raw Normal View History

1989-05-16 13:13:53 +00:00
/*
* signal.h - signal handling
*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
/* $Header$ */
1989-09-29 15:46:33 +00:00
1989-12-18 14:00:32 +00:00
#if !defined(_SIGNAL_H)
#define _SIGNAL_H
1989-05-16 13:13:53 +00:00
typedef int sig_atomic_t;
1989-09-29 15:46:33 +00:00
#define SIG_ERR ((void (*)(int))-1)
1989-05-16 13:13:53 +00:00
#if defined(em22) || defined(em24) || defined(em44)
1989-09-29 15:46:33 +00:00
#define SIG_DFL ((void (*)(int))-2)
#define SIG_IGN ((void (*)(int))-3)
1989-05-16 13:13:53 +00:00
#else
1989-09-29 15:46:33 +00:00
#define SIG_DFL ((void (*)(int))0)
#define SIG_IGN ((void (*)(int))1)
#endif /* no interpretation */
1989-05-16 13:13:53 +00:00
#define SIGHUP 1 /* hangup */
#define SIGINT 2 /* interrupt */
#define SIGQUIT 3 /* quit */
#define SIGILL 4 /* illegal instruction (not reset when caught) */
#define SIGTRAP 5 /* trace trap (not reset when caught) */
#define SIGIOT 6 /* IOT instruction */
#define SIGABRT 6 /* ANSI abort trap */
#define SIGEMT 7 /* EMT instruction */
#define SIGFPE 8 /* floating point exception */
#define SIGKILL 9 /* kill (cannot be caught or ignored) */
#define SIGBUS 10 /* bus error */
#define SIGSEGV 11 /* segmentation violation */
#define SIGSYS 12 /* bad argument to system call */
#define SIGPIPE 13 /* write on a pipe with no one to read it */
#define SIGALRM 14 /* alarm clock */
#define SIGTERM 15 /* software termination signal from kill */
1989-09-29 15:46:33 +00:00
#if defined(__USG)
1989-05-16 13:13:53 +00:00
#define SIGUSR1 16 /* user defined signal 1 */
#define SIGUSR2 17 /* user defined signal 2 */
#define SIGCLD 18 /* death of a child */
#define SIGPWR 19 /* power-fail signal */
#define _NSIG 20
#elif defined(__BSD4_2)
#define SIGURG 16 /* urgent condition */
#define SIGSTOP 17 /* stop signal not from tty */
#define SIGTSTP 18 /* stop signal from tty */
#define SIGCONT 19 /* continue a stopped process */
#define SIGCHLD 20 /* death of a child */
#define SIGCLD 20 /* System V compat. */
#define SIGTTIN 21 /* background tty read */
#define SIGTTOU 22 /* background tty write */
#define SIGIO 23 /* I/O possible signal */
#define SIGPOLL SIGIO /* System V compat. */
#define SIGXCPU 24 /* exceeded CPU time limit */
#define SIGXFSZ 25 /* exceeded file size limit */
#define SIGVTALRM 26 /* virtual time alarm */
#define SIGPROF 27 /* profiling time alarm */
#define SIGWINCH 28 /* window has changed */
#define SIGLOST 29 /* resource lost */
#define SIGUSR1 30 /* user defined signal 1 */
#define SIGUSR2 31 /* user defined signal 2 */
#define _NSIG 32
#else
#define _NSIG 16
#endif /* __USG or __BSD4_2 */
1989-09-29 15:46:33 +00:00
void (*signal(int __sig, void (*__func)(int)))(int);
int raise(int __sig);
1989-05-16 13:13:53 +00:00
1989-12-18 14:00:32 +00:00
#endif /* _SIGNAL_H */