1 /* Target errno mappings for newlib/libgloss environment. 2 Copyright 1995-2024 Free Software Foundation, Inc. 3 Contributed by Mike Frysinger. 4 5 This file is part of simulators. 6 7 This program is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 3 of the License, or 10 (at your option) any later version. 11 12 This program is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 19 20 /* This must come before any other includes. */ 21 #include "defs.h" 22 23 #include <signal.h> 24 25 #include "sim/callback.h" 26 27 /* This file is kept up-to-date via the gennltvals.py script. Do not edit 28 anything between the START & END comment blocks below. */ 29 30 CB_TARGET_DEFS_MAP cb_init_signal_map[] = { 31 /* gennltvals: START */ 32 #ifdef SIGABRT 33 { "SIGABRT", SIGABRT, 6 }, 34 #endif 35 #ifdef SIGALRM 36 { "SIGALRM", SIGALRM, 14 }, 37 #endif 38 #ifdef SIGBUS 39 { "SIGBUS", SIGBUS, 10 }, 40 #endif 41 #ifdef SIGCHLD 42 { "SIGCHLD", SIGCHLD, 20 }, 43 #endif 44 #ifdef SIGCLD 45 { "SIGCLD", SIGCLD, 20 }, 46 #endif 47 #ifdef SIGCONT 48 { "SIGCONT", SIGCONT, 19 }, 49 #endif 50 #ifdef SIGEMT 51 { "SIGEMT", SIGEMT, 7 }, 52 #endif 53 #ifdef SIGFPE 54 { "SIGFPE", SIGFPE, 8 }, 55 #endif 56 #ifdef SIGHUP 57 { "SIGHUP", SIGHUP, 1 }, 58 #endif 59 #ifdef SIGILL 60 { "SIGILL", SIGILL, 4 }, 61 #endif 62 #ifdef SIGINT 63 { "SIGINT", SIGINT, 2 }, 64 #endif 65 #ifdef SIGIO 66 { "SIGIO", SIGIO, 23 }, 67 #endif 68 #ifdef SIGIOT 69 { "SIGIOT", SIGIOT, 6 }, 70 #endif 71 #ifdef SIGKILL 72 { "SIGKILL", SIGKILL, 9 }, 73 #endif 74 #ifdef SIGLOST 75 { "SIGLOST", SIGLOST, 29 }, 76 #endif 77 #ifdef SIGPIPE 78 { "SIGPIPE", SIGPIPE, 13 }, 79 #endif 80 #ifdef SIGPOLL 81 { "SIGPOLL", SIGPOLL, 23 }, 82 #endif 83 #ifdef SIGPROF 84 { "SIGPROF", SIGPROF, 27 }, 85 #endif 86 #ifdef SIGQUIT 87 { "SIGQUIT", SIGQUIT, 3 }, 88 #endif 89 #ifdef SIGSEGV 90 { "SIGSEGV", SIGSEGV, 11 }, 91 #endif 92 #ifdef SIGSTOP 93 { "SIGSTOP", SIGSTOP, 17 }, 94 #endif 95 #ifdef SIGSYS 96 { "SIGSYS", SIGSYS, 12 }, 97 #endif 98 #ifdef SIGTERM 99 { "SIGTERM", SIGTERM, 15 }, 100 #endif 101 #ifdef SIGTRAP 102 { "SIGTRAP", SIGTRAP, 5 }, 103 #endif 104 #ifdef SIGTSTP 105 { "SIGTSTP", SIGTSTP, 18 }, 106 #endif 107 #ifdef SIGTTIN 108 { "SIGTTIN", SIGTTIN, 21 }, 109 #endif 110 #ifdef SIGTTOU 111 { "SIGTTOU", SIGTTOU, 22 }, 112 #endif 113 #ifdef SIGURG 114 { "SIGURG", SIGURG, 16 }, 115 #endif 116 #ifdef SIGUSR1 117 { "SIGUSR1", SIGUSR1, 30 }, 118 #endif 119 #ifdef SIGUSR2 120 { "SIGUSR2", SIGUSR2, 31 }, 121 #endif 122 #ifdef SIGVTALRM 123 { "SIGVTALRM", SIGVTALRM, 26 }, 124 #endif 125 #ifdef SIGWINCH 126 { "SIGWINCH", SIGWINCH, 28 }, 127 #endif 128 #ifdef SIGXCPU 129 { "SIGXCPU", SIGXCPU, 24 }, 130 #endif 131 #ifdef SIGXFSZ 132 { "SIGXFSZ", SIGXFSZ, 25 }, 133 #endif 134 /* gennltvals: END */ 135 { NULL, -1, -1 }, 136 }; 137