1da2e3ebdSchin /*********************************************************************** 2da2e3ebdSchin * * 3da2e3ebdSchin * This software is part of the ast package * 4*3e14f97fSRoger A. Faulkner * Copyright (c) 1985-2010 AT&T Intellectual Property * 5da2e3ebdSchin * and is licensed under the * 6da2e3ebdSchin * Common Public License, Version 1.0 * 77c2fbfb3SApril Chin * by AT&T Intellectual Property * 8da2e3ebdSchin * * 9da2e3ebdSchin * A copy of the License is available at * 10da2e3ebdSchin * http://www.opensource.org/licenses/cpl1.0.txt * 11da2e3ebdSchin * (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 12da2e3ebdSchin * * 13da2e3ebdSchin * Information and Software Systems Research * 14da2e3ebdSchin * AT&T Research * 15da2e3ebdSchin * Florham Park NJ * 16da2e3ebdSchin * * 17da2e3ebdSchin * Glenn Fowler <gsf@research.att.com> * 18da2e3ebdSchin * David Korn <dgk@research.att.com> * 19da2e3ebdSchin * Phong Vo <kpv@research.att.com> * 20da2e3ebdSchin * * 21da2e3ebdSchin ***********************************************************************/ 22da2e3ebdSchin 23da2e3ebdSchin /* : : generated by proto : : */ 24*3e14f97fSRoger A. Faulkner /* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_i386_32bit/src/lib/libast/features/sig.sh by iffe version 2009-12-04 : : */ 25da2e3ebdSchin #ifndef _def_sig_ast 26da2e3ebdSchin #if !defined(__PROTO__) 27da2e3ebdSchin # if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus) 28da2e3ebdSchin # if defined(__cplusplus) 29da2e3ebdSchin # define __LINKAGE__ "C" 30da2e3ebdSchin # else 31da2e3ebdSchin # define __LINKAGE__ 32da2e3ebdSchin # endif 33da2e3ebdSchin # define __STDARG__ 34da2e3ebdSchin # define __PROTO__(x) x 35da2e3ebdSchin # define __OTORP__(x) 36da2e3ebdSchin # define __PARAM__(n,o) n 37da2e3ebdSchin # if !defined(__STDC__) && !defined(__cplusplus) 38da2e3ebdSchin # if !defined(c_plusplus) 39da2e3ebdSchin # define const 40da2e3ebdSchin # endif 41da2e3ebdSchin # define signed 42da2e3ebdSchin # define void int 43da2e3ebdSchin # define volatile 44da2e3ebdSchin # define __V_ char 45da2e3ebdSchin # else 46da2e3ebdSchin # define __V_ void 47da2e3ebdSchin # endif 48da2e3ebdSchin # else 49da2e3ebdSchin # define __PROTO__(x) () 50da2e3ebdSchin # define __OTORP__(x) x 51da2e3ebdSchin # define __PARAM__(n,o) o 52da2e3ebdSchin # define __LINKAGE__ 53da2e3ebdSchin # define __V_ char 54da2e3ebdSchin # define const 55da2e3ebdSchin # define signed 56da2e3ebdSchin # define void int 57da2e3ebdSchin # define volatile 58da2e3ebdSchin # endif 59da2e3ebdSchin # define __MANGLE__ __LINKAGE__ 60da2e3ebdSchin # if defined(__cplusplus) || defined(c_plusplus) 61da2e3ebdSchin # define __VARARG__ ... 62da2e3ebdSchin # else 63da2e3ebdSchin # define __VARARG__ 64da2e3ebdSchin # endif 65da2e3ebdSchin # if defined(__STDARG__) 66da2e3ebdSchin # define __VA_START__(p,a) va_start(p,a) 67da2e3ebdSchin # else 68da2e3ebdSchin # define __VA_START__(p,a) va_start(p) 69da2e3ebdSchin # endif 70da2e3ebdSchin # if !defined(__INLINE__) 71da2e3ebdSchin # if defined(__cplusplus) 72da2e3ebdSchin # define __INLINE__ extern __MANGLE__ inline 73da2e3ebdSchin # else 74da2e3ebdSchin # if defined(_WIN32) && !defined(__GNUC__) 75da2e3ebdSchin # define __INLINE__ __inline 76da2e3ebdSchin # endif 77da2e3ebdSchin # endif 78da2e3ebdSchin # endif 79da2e3ebdSchin #endif 80da2e3ebdSchin #if !defined(__LINKAGE__) 81da2e3ebdSchin #define __LINKAGE__ /* 2004-08-11 transition */ 82da2e3ebdSchin #endif 83da2e3ebdSchin 84da2e3ebdSchin #define _def_sig_ast 1 85da2e3ebdSchin #define _sys_types 1 /* #include <sys/types.h> ok */ 86da2e3ebdSchin 87da2e3ebdSchin #define sig_info _sig_info_ 88da2e3ebdSchin 89da2e3ebdSchin #if defined(__STDPP__directive) && defined(__STDPP__hide) 90da2e3ebdSchin __STDPP__directive pragma pp:hide kill killpg 91da2e3ebdSchin #else 92da2e3ebdSchin #define kill ______kill 93da2e3ebdSchin #define killpg ______killpg 94da2e3ebdSchin #endif 95da2e3ebdSchin #include <signal.h> 96da2e3ebdSchin #if defined(__STDPP__directive) && defined(__STDPP__hide) 97da2e3ebdSchin __STDPP__directive pragma pp:nohide kill killpg 98da2e3ebdSchin #else 99da2e3ebdSchin #undef kill 100da2e3ebdSchin #undef killpg 101da2e3ebdSchin #endif 102da2e3ebdSchin #ifndef sigmask 103da2e3ebdSchin #define sigmask(s) (1<<((s)-1)) 104da2e3ebdSchin #endif 105da2e3ebdSchin typedef void (*Sig_handler_t) __PROTO__((int)); 106da2e3ebdSchin 107da2e3ebdSchin 108da2e3ebdSchin #define Handler_t Sig_handler_t 109da2e3ebdSchin 110da2e3ebdSchin #define SIG_REG_PENDING (-1) 111da2e3ebdSchin #define SIG_REG_POP 0 112da2e3ebdSchin #define SIG_REG_EXEC 00001 113da2e3ebdSchin #define SIG_REG_PROC 00002 114da2e3ebdSchin #define SIG_REG_TERM 00004 115da2e3ebdSchin #define SIG_REG_ALL 00777 116da2e3ebdSchin #define SIG_REG_SET 01000 117da2e3ebdSchin 118da2e3ebdSchin typedef struct 119da2e3ebdSchin { 120da2e3ebdSchin char** name; 121da2e3ebdSchin char** text; 122da2e3ebdSchin int sigmax; 123da2e3ebdSchin } Sig_info_t; 124da2e3ebdSchin 125da2e3ebdSchin extern __MANGLE__ int kill __PROTO__((pid_t, int)); 126da2e3ebdSchin extern __MANGLE__ int killpg __PROTO__((pid_t, int)); 127da2e3ebdSchin 128da2e3ebdSchin #if _BLD_ast && defined(__EXPORT__) 129da2e3ebdSchin #undef __MANGLE__ 130da2e3ebdSchin #define __MANGLE__ __LINKAGE__ __EXPORT__ 131da2e3ebdSchin #endif 132da2e3ebdSchin #if !_BLD_ast && defined(__IMPORT__) 133da2e3ebdSchin #undef __MANGLE__ 134da2e3ebdSchin #define __MANGLE__ __LINKAGE__ __IMPORT__ 135da2e3ebdSchin #endif 136da2e3ebdSchin 137da2e3ebdSchin extern __MANGLE__ Sig_info_t sig_info; 138da2e3ebdSchin 139da2e3ebdSchin #undef __MANGLE__ 140da2e3ebdSchin #define __MANGLE__ __LINKAGE__ 141da2e3ebdSchin 142*3e14f97fSRoger A. Faulkner #if _lib_sigflag && _npt_sigflag 143*3e14f97fSRoger A. Faulkner extern __MANGLE__ int sigflag __PROTO__((int, int, int)); 144*3e14f97fSRoger A. Faulkner #endif 145*3e14f97fSRoger A. Faulkner 146da2e3ebdSchin #if _BLD_ast && defined(__EXPORT__) 147da2e3ebdSchin #undef __MANGLE__ 148da2e3ebdSchin #define __MANGLE__ __LINKAGE__ __EXPORT__ 149da2e3ebdSchin #endif 150da2e3ebdSchin 151*3e14f97fSRoger A. Faulkner #if !_lib_sigflag 152*3e14f97fSRoger A. Faulkner extern __MANGLE__ int sigflag __PROTO__((int, int, int)); 153*3e14f97fSRoger A. Faulkner #endif 154da2e3ebdSchin extern __MANGLE__ int sigcritical __PROTO__((int)); 155da2e3ebdSchin extern __MANGLE__ int sigunblock __PROTO__((int)); 156da2e3ebdSchin 157da2e3ebdSchin #undef __MANGLE__ 158da2e3ebdSchin #define __MANGLE__ __LINKAGE__ 159da2e3ebdSchin #endif 160