The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 1 | /* |
| 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 Glaser | 92b10af | 2009-10-02 15:39:00 +0200 | [diff] [blame] | 28 | |
| 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 Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 34 | #ifndef __BIONIC_SIGDEF |
| 35 | #error __BIONIC_SIGDEF not defined |
| 36 | #endif |
| 37 | |
Elliott Hughes | aa0ebda | 2014-02-11 19:57:06 -0800 | [diff] [blame^] | 38 | __BIONIC_SIGDEF(SIGHUP, "Hangup") |
| 39 | __BIONIC_SIGDEF(SIGINT, "Interrupt") |
| 40 | __BIONIC_SIGDEF(SIGQUIT, "Quit") |
| 41 | __BIONIC_SIGDEF(SIGILL, "Illegal instruction") |
| 42 | __BIONIC_SIGDEF(SIGTRAP, "Trap") |
| 43 | __BIONIC_SIGDEF(SIGABRT, "Aborted") |
| 44 | #ifdef SIGEMT |
| 45 | __BIONIC_SIGDEF(SIGEMT, "EMT") |
Raghu Gandham | 6437eac | 2012-08-02 16:50:10 -0700 | [diff] [blame] | 46 | #endif |
Elliott Hughes | aa0ebda | 2014-02-11 19:57:06 -0800 | [diff] [blame^] | 47 | __BIONIC_SIGDEF(SIGFPE, "Floating point exception") |
| 48 | __BIONIC_SIGDEF(SIGKILL, "Killed") |
| 49 | __BIONIC_SIGDEF(SIGBUS, "Bus error") |
| 50 | __BIONIC_SIGDEF(SIGSEGV, "Segmentation fault") |
| 51 | __BIONIC_SIGDEF(SIGPIPE, "Broken pipe") |
| 52 | __BIONIC_SIGDEF(SIGALRM, "Alarm clock") |
| 53 | __BIONIC_SIGDEF(SIGTERM, "Terminated") |
| 54 | __BIONIC_SIGDEF(SIGUSR1, "User signal 1") |
| 55 | __BIONIC_SIGDEF(SIGUSR2, "User signal 2") |
| 56 | __BIONIC_SIGDEF(SIGCHLD, "Child exited") |
| 57 | __BIONIC_SIGDEF(SIGPWR, "Power failure") |
| 58 | __BIONIC_SIGDEF(SIGWINCH, "Window size changed") |
| 59 | __BIONIC_SIGDEF(SIGURG, "Urgent I/O condition") |
| 60 | __BIONIC_SIGDEF(SIGIO, "I/O possible") |
| 61 | __BIONIC_SIGDEF(SIGSTOP, "Stopped (signal)") |
| 62 | __BIONIC_SIGDEF(SIGTSTP, "Stopped") |
| 63 | __BIONIC_SIGDEF(SIGCONT, "Continue") |
| 64 | __BIONIC_SIGDEF(SIGTTIN, "Stopped (tty input)") |
| 65 | __BIONIC_SIGDEF(SIGTTOU, "Stopped (tty output)") |
| 66 | __BIONIC_SIGDEF(SIGVTALRM, "Virtual timer expired") |
| 67 | __BIONIC_SIGDEF(SIGPROF, "Profiling timer expired") |
| 68 | __BIONIC_SIGDEF(SIGXCPU, "CPU time limit exceeded") |
| 69 | __BIONIC_SIGDEF(SIGXFSZ, "File size limit exceeded") |
| 70 | #if defined(SIGSTKFLT) |
| 71 | __BIONIC_SIGDEF(SIGSTKFLT, "Stack fault") |
Raghu Gandham | 6437eac | 2012-08-02 16:50:10 -0700 | [diff] [blame] | 72 | #endif |
Elliott Hughes | aa0ebda | 2014-02-11 19:57:06 -0800 | [diff] [blame^] | 73 | __BIONIC_SIGDEF(SIGSYS, "Bad system call") |
The Android Open Source Project | a27d2ba | 2008-10-21 07:00:00 -0700 | [diff] [blame] | 74 | |
| 75 | #undef __BIONIC_SIGDEF |