VirtualBox

Changeset 3138 in kBuild for vendor/gnumake/current/signame.c


Ignore:
Timestamp:
Mar 12, 2018 7:32:29 PM (7 years ago)
Author:
bird
Message:

Imported make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6) from https://git.savannah.gnu.org/git/make.git.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current/signame.c

    r2596 r3138  
    11/* 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.
     2Copyright (C) 1990-2016 Free Software Foundation, Inc.
    53This file is part of GNU Make.
    64
     
    1715this program.  If not, see <http://www.gnu.org/licenses/>.  */
    1816
    19 #include "make.h"
     17#include "makeint.h"
    2018
    2119/* If the system provides strsignal, we don't need it. */
     
    3028
    3129/* Some systems do not define NSIG in <signal.h>.  */
    32 #ifndef NSIG
    33 #ifdef  _NSIG
    34 #define NSIG    _NSIG
     30#ifndef NSIG
     31#ifdef  _NSIG
     32#define NSIG    _NSIG
    3533#else
    36 #define NSIG    32
     34#define NSIG    32
    3735#endif
    3836#endif
     
    195193#endif
    196194#if defined (SIGIO)
    197   /* "I/O pending" has also been suggested.  A disadvantage is
    198      that signal only happens when the process has
    199      asked for it, not everytime I/O is pending.  Another disadvantage
    200      is the confusion from giving it a different 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.  */
    201199  init_sig (SIGIO, "IO", _("I/O possible"));
    202200#endif
     
    247245#endif
    248246
    249   if (sig > 0 || sig < NSIG)
     247  if (sig > 0 && sig < NSIG)
    250248    return (char *) sys_siglist[sig];
    251249
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette