Print this page
    
OS-4300 increase RT signal count
Reviewed by: Robert Mustacchi <rm@joyent.com>
    
      
        | Split | 
	Close | 
      
      | Expand all | 
      | Collapse all | 
    
    
          --- old/usr/src/uts/common/sys/iso/signal_iso.h
          +++ new/usr/src/uts/common/sys/iso/signal_iso.h
   1    1  /*
   2    2   * CDDL HEADER START
   3    3   *
   4    4   * The contents of this file are subject to the terms of the
   5    5   * Common Development and Distribution License (the "License").
   6    6   * You may not use this file except in compliance with the License.
   7    7   *
   8    8   * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9    9   * or http://www.opensolaris.org/os/licensing.
  10   10   * See the License for the specific language governing permissions
  11   11   * and limitations under the License.
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  
    | 
      ↓ open down ↓ | 
    14 lines elided | 
    
      ↑ open up ↑ | 
  
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
       25 + * Copyright 2015, Joyent, Inc.
  25   26   */
  26   27  
  27   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   29  /*        All Rights Reserved   */
  29   30  
  30   31  /*
  31   32   * An application should not include this header directly.  Instead it
  32   33   * should be included only through the inclusion of other Sun headers.
  33   34   *
  34   35   * The contents of this header is limited to identifiers specified in the
  35   36   * C Standard.  Any new identifiers specified in future amendments to the
  36   37   * C Standard must be placed in this header.  If these new identifiers
  37   38   * are required to also be in the C++ Standard "std" namespace, then for
  38   39   * anything other than macro definitions, corresponding "using" directives
  39   40   * must also be added to <sys/signal.h.h>.
  40   41   */
  41   42  
  42   43  #ifndef _SYS_SIGNAL_ISO_H
  43   44  #define _SYS_SIGNAL_ISO_H
  44   45  
  45   46  #include <sys/unistd.h>         /* needed for _SC_SIGRT_MIN/MAX */
  46   47  
  47   48  #ifdef  __cplusplus
  48   49  extern "C" {
  49   50  #endif
  50   51  
  51   52  #define SIGHUP  1       /* hangup */
  52   53  #define SIGINT  2       /* interrupt (rubout) */
  53   54  #define SIGQUIT 3       /* quit (ASCII FS) */
  54   55  #define SIGILL  4       /* illegal instruction (not reset when caught) */
  55   56  #define SIGTRAP 5       /* trace trap (not reset when caught) */
  56   57  #define SIGIOT  6       /* IOT instruction */
  57   58  #define SIGABRT 6       /* used by abort, replace SIGIOT in the future */
  58   59  #define SIGEMT  7       /* EMT instruction */
  59   60  #define SIGFPE  8       /* floating point exception */
  60   61  #define SIGKILL 9       /* kill (cannot be caught or ignored) */
  61   62  #define SIGBUS  10      /* bus error */
  62   63  #define SIGSEGV 11      /* segmentation violation */
  63   64  #define SIGSYS  12      /* bad argument to system call */
  64   65  #define SIGPIPE 13      /* write on a pipe with no one to read it */
  65   66  #define SIGALRM 14      /* alarm clock */
  66   67  #define SIGTERM 15      /* software termination signal from kill */
  67   68  #define SIGUSR1 16      /* user defined signal 1 */
  68   69  #define SIGUSR2 17      /* user defined signal 2 */
  69   70  #define SIGCLD  18      /* child status change */
  70   71  #define SIGCHLD 18      /* child status change alias (POSIX) */
  71   72  #define SIGPWR  19      /* power-fail restart */
  72   73  #define SIGWINCH 20     /* window size change */
  73   74  #define SIGURG  21      /* urgent socket condition */
  74   75  #define SIGPOLL 22      /* pollable event occured */
  75   76  #define SIGIO   SIGPOLL /* socket I/O possible (SIGPOLL alias) */
  76   77  #define SIGSTOP 23      /* stop (cannot be caught or ignored) */
  77   78  #define SIGTSTP 24      /* user stop requested from tty */
  78   79  #define SIGCONT 25      /* stopped process has been continued */
  79   80  #define SIGTTIN 26      /* background tty read attempted */
  80   81  #define SIGTTOU 27      /* background tty write attempted */
  81   82  #define SIGVTALRM 28    /* virtual timer expired */
  82   83  #define SIGPROF 29      /* profiling timer expired */
  83   84  #define SIGXCPU 30      /* exceeded cpu limit */
  84   85  #define SIGXFSZ 31      /* exceeded file size limit */
  85   86  #define SIGWAITING 32   /* reserved signal no longer used by threading code */
  86   87  #define SIGLWP  33      /* reserved signal no longer used by threading code */
  87   88  #define SIGFREEZE 34    /* special signal used by CPR */
  
    | 
      ↓ open down ↓ | 
    53 lines elided | 
    
      ↑ open up ↑ | 
  
  88   89  #define SIGTHAW 35      /* special signal used by CPR */
  89   90  #define SIGCANCEL 36    /* reserved signal for thread cancellation */
  90   91  #define SIGLOST 37      /* resource lost (eg, record-lock lost) */
  91   92  #define SIGXRES 38      /* resource control exceeded */
  92   93  #define SIGJVM1 39      /* reserved signal for Java Virtual Machine */
  93   94  #define SIGJVM2 40      /* reserved signal for Java Virtual Machine */
  94   95  #define SIGINFO 41      /* information request */
  95   96  
  96   97  /* insert new signals here, and move _SIGRTM* appropriately */
  97   98  #define _SIGRTMIN 42    /* first (highest-priority) realtime signal */
  98      -#define _SIGRTMAX 73    /* last (lowest-priority) realtime signal */
       99 +#define _SIGRTMAX 74    /* last (lowest-priority) realtime signal */
  99  100  extern long _sysconf(int);      /* System Private interface to sysconf() */
 100  101  #define SIGRTMIN ((int)_sysconf(_SC_SIGRT_MIN)) /* first realtime signal */
 101  102  #define SIGRTMAX ((int)_sysconf(_SC_SIGRT_MAX)) /* last realtime signal */
 102  103  
 103  104  #if     defined(__cplusplus)
 104  105  
 105  106  typedef void SIG_FUNC_TYP(int);
 106  107  typedef SIG_FUNC_TYP *SIG_TYP;
 107  108  #define SIG_PF SIG_TYP
 108  109  
 109  110  #define SIG_DFL (SIG_PF)0
 110  111  #define SIG_ERR (SIG_PF)-1
 111  112  #define SIG_IGN (SIG_PF)1
 112  113  #define SIG_HOLD (SIG_PF)2
 113  114  
 114  115  #elif   defined(__lint)
 115  116  
 116  117  #define SIG_DFL (void(*)())0
 117  118  #define SIG_ERR (void(*)())0
 118  119  #define SIG_IGN (void (*)())0
 119  120  #define SIG_HOLD (void(*)())0
 120  121  
 121  122  #else
 122  123  
 123  124  #define SIG_DFL (void(*)())0
 124  125  #define SIG_ERR (void(*)())-1
 125  126  #define SIG_IGN (void (*)())1
 126  127  #define SIG_HOLD (void(*)())2
 127  128  
 128  129  #endif
 129  130  
 130  131  #define SIG_BLOCK       1
 131  132  #define SIG_UNBLOCK     2
 132  133  #define SIG_SETMASK     3
 133  134  
 134  135  #ifdef  __cplusplus
 135  136  }
 136  137  #endif
 137  138  
 138  139  #endif /* _SYS_SIGNAL_ISO_H */
  
    | 
      ↓ open down ↓ | 
    30 lines elided | 
    
      ↑ open up ↑ | 
  
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX