1a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project/* 2a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * Copyright (C) 2008 The Android Open Source Project 3a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * All rights reserved. 4a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * 5a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * Redistribution and use in source and binary forms, with or without 6a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * modification, are permitted provided that the following conditions 7a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * are met: 8a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * * Redistributions of source code must retain the above copyright 9a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * notice, this list of conditions and the following disclaimer. 10a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * * Redistributions in binary form must reproduce the above copyright 11a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * notice, this list of conditions and the following disclaimer in 12a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * the documentation and/or other materials provided with the 13a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * distribution. 14a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * 15a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 16a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 17a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 18a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 19a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 20a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 21a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 22a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 23a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 25a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project * SUCH DAMAGE. 27a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project */ 2892b10af793da235659198cf38ff2e0237c181058Thorsten Glaser 2992b10af793da235659198cf38ff2e0237c181058Thorsten Glaser/* 3092b10af793da235659198cf38ff2e0237c181058Thorsten Glaser * this header is used to define signal constants and names; 3192b10af793da235659198cf38ff2e0237c181058Thorsten Glaser * it might be included several times 3292b10af793da235659198cf38ff2e0237c181058Thorsten Glaser */ 3392b10af793da235659198cf38ff2e0237c181058Thorsten Glaser 34a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project#ifndef __BIONIC_SIGDEF 35a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project#error __BIONIC_SIGDEF not defined 36a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project#endif 37a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project 38aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGHUP, "Hangup") 39aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGINT, "Interrupt") 40aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGQUIT, "Quit") 41aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGILL, "Illegal instruction") 42aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGTRAP, "Trap") 43aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGABRT, "Aborted") 44aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes#ifdef SIGEMT 45aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGEMT, "EMT") 466437eac15a5b595ab26ef51834509c44695eb7e4Raghu Gandham#endif 47aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGFPE, "Floating point exception") 48aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGKILL, "Killed") 49aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGBUS, "Bus error") 50aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGSEGV, "Segmentation fault") 51aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGPIPE, "Broken pipe") 52aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGALRM, "Alarm clock") 53aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGTERM, "Terminated") 54aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGUSR1, "User signal 1") 55aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGUSR2, "User signal 2") 56aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGCHLD, "Child exited") 57aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGPWR, "Power failure") 58aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGWINCH, "Window size changed") 59aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGURG, "Urgent I/O condition") 60aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGIO, "I/O possible") 61aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGSTOP, "Stopped (signal)") 62aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGTSTP, "Stopped") 63aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGCONT, "Continue") 64aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGTTIN, "Stopped (tty input)") 65aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGTTOU, "Stopped (tty output)") 66aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGVTALRM, "Virtual timer expired") 67aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGPROF, "Profiling timer expired") 68aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGXCPU, "CPU time limit exceeded") 69aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGXFSZ, "File size limit exceeded") 70aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes#if defined(SIGSTKFLT) 71aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGSTKFLT, "Stack fault") 726437eac15a5b595ab26ef51834509c44695eb7e4Raghu Gandham#endif 73aa0ebdafc71e1ceac78e0929b94f3bb117d0c8e9Elliott Hughes__BIONIC_SIGDEF(SIGSYS, "Bad system call") 74a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project 75a27d2baa0c1a2ec70f47ea9199b1dd6762c8a34The Android Open Source Project#undef __BIONIC_SIGDEF 76