1 |
greg |
2.1 |
/* Copyright (c) 1992 Regents of the University of California */ |
2 |
|
|
|
3 |
|
|
/* SCCSid "$SunId$ LBL" */ |
4 |
|
|
|
5 |
|
|
/* |
6 |
|
|
* Dummy signal definitions for non-UNIX systems |
7 |
|
|
*/ |
8 |
|
|
|
9 |
|
|
#ifdef NIX |
10 |
|
|
|
11 |
|
|
#define NSIG 2 |
12 |
|
|
|
13 |
|
|
#define SIGHUP 1 /* hangup */ |
14 |
|
|
#define SIGINT 1 /* interrupt */ |
15 |
|
|
#define SIGQUIT 1 /* quit */ |
16 |
|
|
#define SIGILL 1 /* illegal instruction (not reset when caught) */ |
17 |
|
|
#define SIGTRAP 1 /* trace trap (not reset when caught) */ |
18 |
|
|
#define SIGIOT 1 /* IOT instruction */ |
19 |
|
|
#define SIGEMT 1 /* EMT instruction */ |
20 |
|
|
#define SIGFPE 1 /* floating point exception */ |
21 |
|
|
#define SIGKILL 1 /* kill (cannot be caught or ignored) */ |
22 |
|
|
#define SIGBUS 1 /* bus error */ |
23 |
|
|
#define SIGSEGV 1 /* segmentation violation */ |
24 |
|
|
#define SIGSYS 1 /* bad argument to system call */ |
25 |
|
|
#define SIGPIPE 1 /* write on a pipe with no one to read it */ |
26 |
|
|
#define SIGALRM 1 /* alarm clock */ |
27 |
|
|
#define SIGTERM 1 /* software termination signal from kill */ |
28 |
|
|
#define SIGURG 1 /* urgent condition on IO channel */ |
29 |
|
|
#define SIGSTOP 1 /* sendable stop signal not from tty */ |
30 |
|
|
#define SIGTSTP 1 /* stop signal from tty */ |
31 |
|
|
#define SIGCONT 1 /* continue a stopped process */ |
32 |
|
|
#define SIGCHLD 1 /* to parent on child stop or exit */ |
33 |
|
|
#define SIGTTIN 1 /* to readers pgrp upon background tty read */ |
34 |
|
|
#define SIGTTOU 1 /* like TTIN for output if (tp->t_local<OSTOP) */ |
35 |
|
|
#define SIGIO 1 /* input/output possible signal */ |
36 |
|
|
#define SIGLOST 1 /* resource lost (eg, record-lock lost) */ |
37 |
|
|
|
38 |
|
|
#define BADSIG (int (*)())-1 |
39 |
|
|
#define SIG_DFL (int (*)())0 |
40 |
|
|
#define SIG_IGN (int (*)())1 |
41 |
|
|
|
42 |
|
|
/* |
43 |
|
|
* Macro for converting signal number to a mask suitable for sigblock(). |
44 |
|
|
*/ |
45 |
|
|
#define sigmask(m) (1 << ((m)-1)) |
46 |
|
|
|
47 |
|
|
#define signal(n,f) SIG_DFL |
48 |
|
|
|
49 |
|
|
#define sigblock(m) 0 |
50 |
|
|
|
51 |
|
|
#else |
52 |
|
|
|
53 |
|
|
#include "/usr/include/signal.h" |
54 |
|
|
|
55 |
|
|
#endif |