root / bsd-user / syscall_defs.h @ bfb811ad
History | View | Annotate | Download (5.6 kB)
1 |
/* $OpenBSD: signal.h,v 1.19 2006/01/08 14:20:16 millert Exp $ */
|
---|---|
2 |
/* $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $ */
|
3 |
|
4 |
/*
|
5 |
* Copyright (c) 1982, 1986, 1989, 1991, 1993
|
6 |
* The Regents of the University of California. All rights reserved.
|
7 |
* (c) UNIX System Laboratories, Inc.
|
8 |
* All or some portions of this file are derived from material licensed
|
9 |
* to the University of California by American Telephone and Telegraph
|
10 |
* Co. or Unix System Laboratories, Inc. and are reproduced herein with
|
11 |
* the permission of UNIX System Laboratories, Inc.
|
12 |
*
|
13 |
* Redistribution and use in source and binary forms, with or without
|
14 |
* modification, are permitted provided that the following conditions
|
15 |
* are met:
|
16 |
* 1. Redistributions of source code must retain the above copyright
|
17 |
* notice, this list of conditions and the following disclaimer.
|
18 |
* 2. Redistributions in binary form must reproduce the above copyright
|
19 |
* notice, this list of conditions and the following disclaimer in the
|
20 |
* documentation and/or other materials provided with the distribution.
|
21 |
* 3. Neither the name of the University nor the names of its contributors
|
22 |
* may be used to endorse or promote products derived from this software
|
23 |
* without specific prior written permission.
|
24 |
*
|
25 |
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
26 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
27 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
28 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
29 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
30 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
31 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
32 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
33 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
34 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
35 |
* SUCH DAMAGE.
|
36 |
*
|
37 |
* @(#)signal.h 8.2 (Berkeley) 1/21/94
|
38 |
*/
|
39 |
|
40 |
#define TARGET_NSIG 32 /* counting 0; could be 33 (mask is 1-32) */ |
41 |
|
42 |
#define TARGET_SIGHUP 1 /* hangup */ |
43 |
#define TARGET_SIGINT 2 /* interrupt */ |
44 |
#define TARGET_SIGQUIT 3 /* quit */ |
45 |
#define TARGET_SIGILL 4 /* illegal instruction (not reset when caught) */ |
46 |
#define TARGET_SIGTRAP 5 /* trace trap (not reset when caught) */ |
47 |
#define TARGET_SIGABRT 6 /* abort() */ |
48 |
#define TARGET_SIGIOT SIGABRT /* compatibility */ |
49 |
#define TARGET_SIGEMT 7 /* EMT instruction */ |
50 |
#define TARGET_SIGFPE 8 /* floating point exception */ |
51 |
#define TARGET_SIGKILL 9 /* kill (cannot be caught or ignored) */ |
52 |
#define TARGET_SIGBUS 10 /* bus error */ |
53 |
#define TARGET_SIGSEGV 11 /* segmentation violation */ |
54 |
#define TARGET_SIGSYS 12 /* bad argument to system call */ |
55 |
#define TARGET_SIGPIPE 13 /* write on a pipe with no one to read it */ |
56 |
#define TARGET_SIGALRM 14 /* alarm clock */ |
57 |
#define TARGET_SIGTERM 15 /* software termination signal from kill */ |
58 |
#define TARGET_SIGURG 16 /* urgent condition on IO channel */ |
59 |
#define TARGET_SIGSTOP 17 /* sendable stop signal not from tty */ |
60 |
#define TARGET_SIGTSTP 18 /* stop signal from tty */ |
61 |
#define TARGET_SIGCONT 19 /* continue a stopped process */ |
62 |
#define TARGET_SIGCHLD 20 /* to parent on child stop or exit */ |
63 |
#define TARGET_SIGTTIN 21 /* to readers pgrp upon background tty read */ |
64 |
#define TARGET_SIGTTOU 22 /* like TTIN for output if (tp->t_local<OSTOP) */ |
65 |
#define TARGET_SIGIO 23 /* input/output possible signal */ |
66 |
#define TARGET_SIGXCPU 24 /* exceeded CPU time limit */ |
67 |
#define TARGET_SIGXFSZ 25 /* exceeded file size limit */ |
68 |
#define TARGET_SIGVTALRM 26 /* virtual time alarm */ |
69 |
#define TARGET_SIGPROF 27 /* profiling time alarm */ |
70 |
#define TARGET_SIGWINCH 28 /* window size changes */ |
71 |
#define TARGET_SIGINFO 29 /* information request */ |
72 |
#define TARGET_SIGUSR1 30 /* user defined signal 1 */ |
73 |
#define TARGET_SIGUSR2 31 /* user defined signal 2 */ |
74 |
|
75 |
/*
|
76 |
* Language spec says we must list exactly one parameter, even though we
|
77 |
* actually supply three. Ugh!
|
78 |
*/
|
79 |
#define TARGET_SIG_DFL (void (*)(int))0 |
80 |
#define TARGET_SIG_IGN (void (*)(int))1 |
81 |
#define TARGET_SIG_ERR (void (*)(int))-1 |
82 |
|
83 |
#define TARGET_SA_ONSTACK 0x0001 /* take signal on signal stack */ |
84 |
#define TARGET_SA_RESTART 0x0002 /* restart system on signal return */ |
85 |
#define TARGET_SA_RESETHAND 0x0004 /* reset to SIG_DFL when taking signal */ |
86 |
#define TARGET_SA_NODEFER 0x0010 /* don't mask the signal we're delivering */ |
87 |
#define TARGET_SA_NOCLDWAIT 0x0020 /* don't create zombies (assign to pid 1) */ |
88 |
#define TARGET_SA_USERTRAMP 0x0100 /* do not bounce off kernel's sigtramp */ |
89 |
#define TARGET_SA_NOCLDSTOP 0x0008 /* do not generate SIGCHLD on child stop */ |
90 |
#define TARGET_SA_SIGINFO 0x0040 /* generate siginfo_t */ |
91 |
|
92 |
/*
|
93 |
* Flags for sigprocmask:
|
94 |
*/
|
95 |
#define TARGET_SIG_BLOCK 1 /* block specified signal set */ |
96 |
#define TARGET_SIG_UNBLOCK 2 /* unblock specified signal set */ |
97 |
#define TARGET_SIG_SETMASK 3 /* set specified signal set */ |
98 |
|
99 |
#define TARGET_BADSIG SIG_ERR
|
100 |
|
101 |
#define TARGET_SS_ONSTACK 0x0001 /* take signals on alternate stack */ |
102 |
#define TARGET_SS_DISABLE 0x0004 /* disable taking signals on alternate stack */ |
103 |
|
104 |
#include "errno_defs.h" |
105 |
|
106 |
#include "freebsd/syscall_nr.h" |
107 |
#include "netbsd/syscall_nr.h" |
108 |
#include "openbsd/syscall_nr.h" |
109 |
|
110 |
struct target_iovec {
|
111 |
abi_long iov_base; /* Starting address */
|
112 |
abi_long iov_len; /* Number of bytes */
|
113 |
}; |
114 |
|