Changeset 3138 in kBuild for vendor/gnumake/current/signame.c
- Timestamp:
- Mar 12, 2018 7:32:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/signame.c
r2596 r3138 1 1 /* Convert between signal names and numbers. 2 Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 4 Foundation, Inc. 2 Copyright (C) 1990-2016 Free Software Foundation, Inc. 5 3 This file is part of GNU Make. 6 4 … … 17 15 this program. If not, see <http://www.gnu.org/licenses/>. */ 18 16 19 #include "make .h"17 #include "makeint.h" 20 18 21 19 /* If the system provides strsignal, we don't need it. */ … … 30 28 31 29 /* Some systems do not define NSIG in <signal.h>. */ 32 #ifndef 33 #ifdef 34 #define NSIG_NSIG30 #ifndef NSIG 31 #ifdef _NSIG 32 #define NSIG _NSIG 35 33 #else 36 #define NSIG3234 #define NSIG 32 37 35 #endif 38 36 #endif … … 195 193 #endif 196 194 #if defined (SIGIO) 197 /* "I/O pending" has also been suggested. A disadvantage is 198 that signal only happens when the process has199 asked for it, not everytime I/O is pending. Another disadvantage200 is the confusion from giving it adifferent name than under Unix. */195 /* "I/O pending" has also been suggested. A disadvantage is that signal 196 only happens when the process has asked for it, not every time I/O is 197 pending. Another disadvantage is the confusion from giving it a 198 different name than under Unix. */ 201 199 init_sig (SIGIO, "IO", _("I/O possible")); 202 200 #endif … … 247 245 #endif 248 246 249 if (sig > 0 ||sig < NSIG)247 if (sig > 0 && sig < NSIG) 250 248 return (char *) sys_siglist[sig]; 251 249
Note:
See TracChangeset
for help on using the changeset viewer.