1 /* Target errno mappings for newlib/libgloss environment.
2 Copyright 1995-2023 Free Software Foundation, Inc.
3 Contributed by Mike Frysinger.
5 This file is part of simulators.
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.
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.
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/>. */
20 /* This must come before any other includes. */
25 #include "sim/callback.h"
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. */
30 CB_TARGET_DEFS_MAP cb_init_signal_map
[] = {
31 /* gennltvals: START */
33 { "SIGABRT", SIGABRT
, 6 },
36 { "SIGALRM", SIGALRM
, 14 },
39 { "SIGBUS", SIGBUS
, 10 },
42 { "SIGCHLD", SIGCHLD
, 20 },
45 { "SIGCLD", SIGCLD
, 20 },
48 { "SIGCONT", SIGCONT
, 19 },
51 { "SIGEMT", SIGEMT
, 7 },
54 { "SIGFPE", SIGFPE
, 8 },
57 { "SIGHUP", SIGHUP
, 1 },
60 { "SIGILL", SIGILL
, 4 },
63 { "SIGINT", SIGINT
, 2 },
66 { "SIGIO", SIGIO
, 23 },
69 { "SIGIOT", SIGIOT
, 6 },
72 { "SIGKILL", SIGKILL
, 9 },
75 { "SIGLOST", SIGLOST
, 29 },
78 { "SIGPIPE", SIGPIPE
, 13 },
81 { "SIGPOLL", SIGPOLL
, 23 },
84 { "SIGPROF", SIGPROF
, 27 },
87 { "SIGQUIT", SIGQUIT
, 3 },
90 { "SIGSEGV", SIGSEGV
, 11 },
93 { "SIGSTOP", SIGSTOP
, 17 },
96 { "SIGSYS", SIGSYS
, 12 },
99 { "SIGTERM", SIGTERM
, 15 },
102 { "SIGTRAP", SIGTRAP
, 5 },
105 { "SIGTSTP", SIGTSTP
, 18 },
108 { "SIGTTIN", SIGTTIN
, 21 },
111 { "SIGTTOU", SIGTTOU
, 22 },
114 { "SIGURG", SIGURG
, 16 },
117 { "SIGUSR1", SIGUSR1
, 30 },
120 { "SIGUSR2", SIGUSR2
, 31 },
123 { "SIGVTALRM", SIGVTALRM
, 26 },
126 { "SIGWINCH", SIGWINCH
, 28 },
129 { "SIGXCPU", SIGXCPU
, 24 },
132 { "SIGXFSZ", SIGXFSZ
, 25 },
134 /* gennltvals: END */