2
* libcompat - system compatibility library
4
* Copyright © 1995 Ian Jackson <ian@chiark.greenend.org.uk>
6
* This is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as
8
* published by the Free Software Foundation; either version 2,
9
* or (at your option) any later version.
11
* This is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public
17
* License along with dpkg; if not, write to the Free Software
18
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28
#define _(str) gettext(str)
30
#ifndef HAVE_DECL_SYS_SIGLIST
31
const char *const sys_siglist[] = {
57
extern const char *const sys_siglist[];
60
#ifndef HAVE_STRSIGNAL
66
if (s > 0 && s < sizeof(sys_siglist) / sizeof(sys_siglist[0]))
67
return sys_siglist[s];
69
sprintf(buf, _("Unknown signal %d"), s);