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