delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/01/09/20:15:41

From: Andrew Crabtree <andrewc AT typhoon DOT rose DOT hp DOT com>
Message-Id: <199801100114.AA026604887@typhoon.rose.hp.com>
Subject: NSIG ?
To: djgpp-workers AT delorie DOT com
Date: Fri, 09 Jan 1998 17:14:47 PST
Reply-To: andrewc AT rosemail DOT rose DOT hp DOT com

In attempting to build the new c++ libs I came across the 
following code.

static int sys_nsig = NSIG;
extern const char * const sys_siglist[];

NSIG does not appear to be declared in djs signal.h.  

In hpux signal.h it is defined as follows 

/* NSIG is 1 greater than the highest defined signal */

#ifdef __hp9000s300
#  define _NSIG 33
#endif /* __hp9000s300 */

#ifdef __hp9000s800
#  ifndef _KERNEL
#    define _NSIG       31
#  endif /* not _KERNEL */
#endif /* __hp9000s800 */

#if defined(_XPG2) || defined(_XPG3) || defined(_INCLUDE_HPUX_SOURCE)
#  define NSIG  _NSIG
#endif /* _XPG2 || _XPG3 || _INCLUDE_HPUX_SOURCE */


I couldn't find any mention of NSIG in posix, so I don't where 
it comes from.  It may be useful to define though, in case 
other programs rely on it.

Andrew

--
_______       ___________________________________________________________
           /                       	                  Andrew Crabtree 
          /                          	      Workgroup Networks Division 
         ____       ___  /                                Hewlett-Packard 
        /     /    /    /   		                    Roseville, CA 
     __/   __/    _____/                                     916/785-1675
                 /                           andrewc AT rosemail DOT rose DOT hp DOT com
___________   __/   _____________________________________________________

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019