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