Print this page
OS-4300 increase RT signal count
Reviewed by: Robert Mustacchi <rm@joyent.com>


   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.

  25  */
  26 
  27 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  28 /*        All Rights Reserved   */
  29 
  30 /*
  31  * University Copyright- Copyright (c) 1982, 1986, 1988
  32  * The Regents of the University of California
  33  * All Rights Reserved
  34  *
  35  * University Acknowledgment- Portions of this document are derived from
  36  * software developed by the University of California, Berkeley, and its
  37  * contributors.
  38  */
  39 
  40 #ifndef _SYS_SIGNAL_H
  41 #define _SYS_SIGNAL_H
  42 
  43 #include <sys/feature_tests.h>
  44 #include <sys/iso/signal_iso.h>


 141 
 142 #if defined(__EXTENSIONS__) || defined(_KERNEL) || \
 143         (!defined(_STRICT_STDC) && !defined(_POSIX_C_SOURCE)) || \
 144         (_POSIX_C_SOURCE > 2) || defined(_XPG4_2)
 145 #define SA_SIGINFO      0x00000008
 146 #endif
 147 
 148 #if defined(__EXTENSIONS__) || defined(_KERNEL) || \
 149         (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
 150         defined(_XPG4_2)
 151 #define SA_NODEFER      0x00000010
 152 
 153 /* this is only valid for SIGCLD */
 154 #define SA_NOCLDWAIT    0x00010000      /* don't save zombie children    */
 155 
 156 #if defined(__EXTENSIONS__) || !defined(_XPG4_2)
 157 /*
 158  * use of these symbols by applications is injurious
 159  *      to binary compatibility
 160  */
 161 #define NSIG    74      /* valid signals range from 1 to NSIG-1 */
 162 #define MAXSIG  73      /* size of u_signal[], NSIG-1 <= MAXSIG */
 163 #endif /* defined(__EXTENSIONS__) || !defined(_XPG4_2) */
 164 
 165 #define MINSIGSTKSZ     2048
 166 #define SIGSTKSZ        8192
 167 
 168 #define SS_ONSTACK      0x00000001
 169 #define SS_DISABLE      0x00000002
 170 
 171 /* Duplicated in <sys/ucontext.h> as a result of XPG4v2 requirements. */
 172 #ifndef _STACK_T
 173 #define _STACK_T
 174 #if defined(__EXTENSIONS__) || !defined(_XPG4_2)
 175 typedef struct sigaltstack {
 176 #else
 177 typedef struct {
 178 #endif
 179         void    *ss_sp;
 180         size_t  ss_size;
 181         int     ss_flags;
 182 } stack_t;




   5  * Common Development and Distribution License (the "License").
   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 
  22 /*
  23  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24  * Use is subject to license terms.
  25  * Copyright 2015, Joyent, Inc.
  26  */
  27 
  28 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T     */
  29 /*        All Rights Reserved   */
  30 
  31 /*
  32  * University Copyright- Copyright (c) 1982, 1986, 1988
  33  * The Regents of the University of California
  34  * All Rights Reserved
  35  *
  36  * University Acknowledgment- Portions of this document are derived from
  37  * software developed by the University of California, Berkeley, and its
  38  * contributors.
  39  */
  40 
  41 #ifndef _SYS_SIGNAL_H
  42 #define _SYS_SIGNAL_H
  43 
  44 #include <sys/feature_tests.h>
  45 #include <sys/iso/signal_iso.h>


 142 
 143 #if defined(__EXTENSIONS__) || defined(_KERNEL) || \
 144         (!defined(_STRICT_STDC) && !defined(_POSIX_C_SOURCE)) || \
 145         (_POSIX_C_SOURCE > 2) || defined(_XPG4_2)
 146 #define SA_SIGINFO      0x00000008
 147 #endif
 148 
 149 #if defined(__EXTENSIONS__) || defined(_KERNEL) || \
 150         (!defined(_STRICT_STDC) && !defined(__XOPEN_OR_POSIX)) || \
 151         defined(_XPG4_2)
 152 #define SA_NODEFER      0x00000010
 153 
 154 /* this is only valid for SIGCLD */
 155 #define SA_NOCLDWAIT    0x00010000      /* don't save zombie children    */
 156 
 157 #if defined(__EXTENSIONS__) || !defined(_XPG4_2)
 158 /*
 159  * use of these symbols by applications is injurious
 160  *      to binary compatibility
 161  */
 162 #define NSIG    75      /* valid signals range from 1 to NSIG-1 */
 163 #define MAXSIG  74      /* size of u_signal[], NSIG-1 <= MAXSIG */
 164 #endif /* defined(__EXTENSIONS__) || !defined(_XPG4_2) */
 165 
 166 #define MINSIGSTKSZ     2048
 167 #define SIGSTKSZ        8192
 168 
 169 #define SS_ONSTACK      0x00000001
 170 #define SS_DISABLE      0x00000002
 171 
 172 /* Duplicated in <sys/ucontext.h> as a result of XPG4v2 requirements. */
 173 #ifndef _STACK_T
 174 #define _STACK_T
 175 #if defined(__EXTENSIONS__) || !defined(_XPG4_2)
 176 typedef struct sigaltstack {
 177 #else
 178 typedef struct {
 179 #endif
 180         void    *ss_sp;
 181         size_t  ss_size;
 182         int     ss_flags;
 183 } stack_t;