update from main archive 961005
[glibc/history.git] / sysdeps / generic / make_siglist.c
blobd42fc0f3585dfb0e754f92d5739a2f140ec16305
1 /* Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
4 The GNU C Library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with the GNU C Library; see the file COPYING. If not, write to
16 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
18 #include <stdio.h>
19 #include <signal.h>
21 /* Get this configuration's defns of the signal numbers. */
22 #undef _SIGNAL_H
23 #define _SIGNAL_H 1
24 #include SIGNUM_H
26 /* Make a definition for sys_siglist. */
29 #undef HAVE_SYS_SIGLIST
30 #define HAVE_STRSIGNAL
31 #define HAVE_PSIGNAL
32 #define sys_siglist my_siglist /* Avoid clash with signal.h. */
34 #include "signame.c"
37 int
38 main()
40 register int i;
42 signame_init ();
44 puts ("#include <stddef.h>\n");
46 puts ("\n/* This is a list of all known signal numbers. */");
48 puts ("\nconst char *const _sys_siglist[] =\n {");
50 for (i = 0; i < NSIG; ++i)
51 printf (" \"%s\",\n", sys_siglist[i]);
53 puts (" NULL\n };\n");
55 puts ("weak_alias (_sys_siglist, sys_siglist)");
56 exit (0);