Fix last ChangeLog entry.
[gnulib.git] / lib / sig2str.h
blob671412986ad42a3ba2a6517fd9682e5f86f838f9
1 /* sig2str.h -- convert between signal names and numbers
3 Copyright (C) 2002, 2005, 2009-2025 Free Software Foundation, Inc.
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <https://www.gnu.org/licenses/>. */
18 /* Written by Paul Eggert. */
20 #include <signal.h>
22 /* An upper bound on signal numbers allowed by the system. */
24 #if defined _sys_nsig
25 # define SIGNUM_BOUND (_sys_nsig - 1)
26 #elif defined _SIG_MAXSIG
27 # define SIGNUM_BOUND (_SIG_MAXSIG - 2) /* FreeBSD >= 7. */
28 #elif defined NSIG
29 # define SIGNUM_BOUND (NSIG - 1)
30 #else
31 # define SIGNUM_BOUND 64
32 #endif