blob: eadf7b98787f82a849a6b881bd85fe8ecec4b8a4 [file] [log] [blame]
The Android Open Source Projecta27d2ba2008-10-21 07:00:00 -07001/*
2 * Copyright (C) 2008 The Android Open Source Project
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
12 * the documentation and/or other materials provided with the
13 * distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
18 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
19 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
22 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
Thorsten Glaser92b10af2009-10-02 15:39:00 +020028
29/*
30 * this header is used to define signal constants and names;
31 * it might be included several times
32 */
33
The Android Open Source Projecta27d2ba2008-10-21 07:00:00 -070034#ifndef __BIONIC_SIGDEF
35#error __BIONIC_SIGDEF not defined
36#endif
37
Thorsten Glaser92b10af2009-10-02 15:39:00 +020038__BIONIC_SIGDEF(HUP,1,"Hangup")
39__BIONIC_SIGDEF(INT,2,"Interrupt")
40__BIONIC_SIGDEF(QUIT,3,"Quit")
41__BIONIC_SIGDEF(ILL,4,"Illegal instruction")
42__BIONIC_SIGDEF(TRAP,5,"Trap")
43__BIONIC_SIGDEF(ABRT,6,"Aborted")
Raghu Gandham6437eac2012-08-02 16:50:10 -070044#ifdef __mips__
45__BIONIC_SIGDEF(EMT,7,"EMT")
46#else
Thorsten Glaser92b10af2009-10-02 15:39:00 +020047__BIONIC_SIGDEF(BUS,7,"Bus error")
Raghu Gandham6437eac2012-08-02 16:50:10 -070048#endif
Thorsten Glaser92b10af2009-10-02 15:39:00 +020049__BIONIC_SIGDEF(FPE,8,"Floating point exception")
50__BIONIC_SIGDEF(KILL,9,"Killed")
Raghu Gandham6437eac2012-08-02 16:50:10 -070051#ifdef __mips__
52__BIONIC_SIGDEF(BUS,10,"Bus error")
53#else
Thorsten Glaser92b10af2009-10-02 15:39:00 +020054__BIONIC_SIGDEF(USR1,10,"User signal 1")
Raghu Gandham6437eac2012-08-02 16:50:10 -070055#endif
Thorsten Glaser92b10af2009-10-02 15:39:00 +020056__BIONIC_SIGDEF(SEGV,11,"Segmentation fault")
Raghu Gandham6437eac2012-08-02 16:50:10 -070057#ifdef __mips__
58__BIONIC_SIGDEF(SYS,12,"Bad system call")
59#else
Thorsten Glaser92b10af2009-10-02 15:39:00 +020060__BIONIC_SIGDEF(USR2,12,"User signal 2")
Raghu Gandham6437eac2012-08-02 16:50:10 -070061#endif
Thorsten Glaser92b10af2009-10-02 15:39:00 +020062__BIONIC_SIGDEF(PIPE,13,"Broken pipe")
63__BIONIC_SIGDEF(ALRM,14,"Alarm clock")
64__BIONIC_SIGDEF(TERM,15,"Terminated")
Raghu Gandham6437eac2012-08-02 16:50:10 -070065#ifdef __mips__
66__BIONIC_SIGDEF(USR1,16,"User signal 1")
67__BIONIC_SIGDEF(USR2,17,"User signal 2")
68__BIONIC_SIGDEF(CHLD,18,"Child exited")
69__BIONIC_SIGDEF(PWR,19,"Power failure")
70__BIONIC_SIGDEF(WINCH,20,"Window size changed")
71__BIONIC_SIGDEF(URG,21,"Urgent I/O condition")
72__BIONIC_SIGDEF(IO,22,"I/O possible")
73__BIONIC_SIGDEF(STOP,23,"Stopped (signal)")
74__BIONIC_SIGDEF(TSTP,24,"Stopped")
75__BIONIC_SIGDEF(CONT,25,"Continue")
76__BIONIC_SIGDEF(TTIN,26,"Stopped (tty input)")
77__BIONIC_SIGDEF(TTOU,27,"Stopped (tty output)")
78__BIONIC_SIGDEF(VTALRM,28,"Virtual timer expired")
79__BIONIC_SIGDEF(PROF,29,"Profiling timer expired")
80__BIONIC_SIGDEF(XCPU,30,"CPU time limit exceeded")
81__BIONIC_SIGDEF(XFSZ,31,"File size limit exceeded")
82#else
Thorsten Glaser92b10af2009-10-02 15:39:00 +020083__BIONIC_SIGDEF(STKFLT,16,"Stack fault")
84__BIONIC_SIGDEF(CHLD,17,"Child exited")
85__BIONIC_SIGDEF(CONT,18,"Continue")
86__BIONIC_SIGDEF(STOP,19,"Stopped (signal)")
87__BIONIC_SIGDEF(TSTP,20,"Stopped")
88__BIONIC_SIGDEF(TTIN,21,"Stopped (tty input)")
Elliott Hughes01030e62012-08-10 12:23:58 -070089__BIONIC_SIGDEF(TTOU,22,"Stopped (tty output)")
Thorsten Glaser92b10af2009-10-02 15:39:00 +020090__BIONIC_SIGDEF(URG,23,"Urgent I/O condition")
91__BIONIC_SIGDEF(XCPU,24,"CPU time limit exceeded")
92__BIONIC_SIGDEF(XFSZ,25,"File size limit exceeded")
93__BIONIC_SIGDEF(VTALRM,26,"Virtual timer expired")
94__BIONIC_SIGDEF(PROF,27,"Profiling timer expired")
95__BIONIC_SIGDEF(WINCH,28,"Window size changed")
96__BIONIC_SIGDEF(IO,29,"I/O possible")
97__BIONIC_SIGDEF(PWR,30,"Power failure")
98__BIONIC_SIGDEF(SYS,31,"Bad system call")
Raghu Gandham6437eac2012-08-02 16:50:10 -070099#endif
The Android Open Source Projecta27d2ba2008-10-21 07:00:00 -0700100
101#undef __BIONIC_SIGDEF