Subversion Repositories tendra.SVN

Rev

Rev 71 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
71 7u83 1
 
2
 
3
#define	SIG_DFL		(void*)0
4
#define	SIG_IGN		(void*)1
5
#define	SIG_ERR		(void*)-1
6
 
7
#define	SIGINT		2	/* interrupt */
8
#define	SIGILL		4	/* illegal instr. (not reset when caught) */
9
#define	SIGABRT		6	/* abort() */
10
#define	SIGFPE		8	/* floating point exception */
11
#define	SIGSEGV		11	/* segmentation violation */
12
#define	SIGTERM		15	/* software termination signal from kill */
13
 
72 7u83 14
 
15
#define	SIGHUP		1	/* hangup */
16
#define	SIGINT		2	/* interrupt */
17
#define	SIGQUIT		3	/* quit */
18
#define	SIGILL		4	/* illegal instr. (not reset when caught) */
19
#define	SIGTRAP		5	/* trace trap (not reset when caught) */
20
#define	SIGABRT		6	/* abort() */
21
#define	SIGIOT		SIGABRT	/* compatibility */
22
#define	SIGEMT		7	/* EMT instruction */
23
#define	SIGFPE		8	/* floating point exception */
24
#define	SIGKILL		9	/* kill (cannot be caught or ignored) */
25
#define	SIGBUS		10	/* bus error */
26
#define	SIGSEGV		11	/* segmentation violation */
27
#define	SIGSYS		12	/* non-existent system call invoked */
28
#define	SIGPIPE		13	/* write on a pipe with no one to read it */
29
#define	SIGALRM		14	/* alarm clock */
30
#define	SIGTERM		15	/* software termination signal from kill */
31
#define	SIGURG		16	/* urgent condition on IO channel */
32
#define	SIGSTOP		17	/* sendable stop signal not from tty */
33
#define	SIGTSTP		18	/* stop signal from tty */
34
#define	SIGCONT		19	/* continue a stopped process */
35
#define	SIGCHLD		20	/* to parent on child stop or exit */
36
#define	SIGTTIN		21	/* to readers pgrp upon background tty read */
37
#define	SIGTTOU		22	/* like TTIN if (tp->t_local&LTOSTOP) */
38
#define	SIGIO		23	/* input/output possible signal */
39
#if __XSI_VISIBLE
40
#define	SIGXCPU		24	/* exceeded CPU time limit */
41
#define	SIGXFSZ		25	/* exceeded file size limit */
42
#define	SIGVTALRM	26	/* virtual time alarm */
43
#define	SIGPROF		27	/* profiling time alarm */
44
#endif
45
#if __BSD_VISIBLE
46
#define	SIGWINCH	28	/* window size changes */
47
#define	SIGINFO		29	/* information request */
48
#endif
49
#define	SIGUSR1		30	/* user defined signal 1 */
50
#define	SIGUSR2		31	/* user defined signal 2 */
51
#if __BSD_VISIBLE
52
#define	SIGTHR		32	/* reserved by thread library. */
53
#define	SIGLWP		SIGTHR
54
#define	SIGLIBRT	33	/* reserved by real-time library. */
55
#endif
56
 
57
#define	SIGRTMIN	65
58
#define	SIGRTMAX	126
59
 
60
 
61
 
62
 
63
#define	SIG_BLOCK	1	/* block specified signal set */
64
#define	SIG_UNBLOCK	2	/* unblock specified signal set */
65
#define	SIG_SETMASK	3	/* set specified signal set */
66
 
71 7u83 67
typedef int sig_atomic_t;
68
 
72 7u83 69
 
70
#define sigset_t int
71
 
72
struct sigaction {
73
                void    (*sa_handler)(int);
74
        union {
75
                void    (*sa_sigaction)(int, struct __siginfo *, void *);
76
        } xxsa_handler;                /* signal handler */
77
        int     sa_flags;               /* see signal options below */
78
        sigset_t sa_mask;               /* signal mask to apply */
79
};
80
 
81
#define	SA_NOCLDSTOP	0x0008	/* do not generate SIGCHLD on child stop */
82
 
83
#define	SA_ONSTACK	0x0001	/* take signal on signal stack */
84
#define	SA_RESTART	0x0002	/* restart system call on signal return */
85
#define	SA_RESETHAND	0x0004	/* reset to SIG_DFL when taking signal */
86
#define	SA_NODEFER	0x0010	/* don't mask the signal we're delivering */
87
#define	SA_NOCLDWAIT	0x0020	/* don't keep zombies around */
88
#define	SA_SIGINFO	0x0040	/* signal handler with SA_SIGINFO args */
89
 
90