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