xref: /illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/sig (revision 533affcbc7fc4d0c8132976ea454aaa715fe2307)
1
2/* : : generated by proto : : */
3/* : : generated from contrib/ast/src/lib/libast/features/sig.sh by iffe version 2012-07-17 : : */
4#ifndef _def_sig_ast
5#if !defined(__PROTO__)
6#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
7#    if defined(__cplusplus)
8#      define __LINKAGE__	"C"
9#    else
10#      define __LINKAGE__
11#    endif
12#    define __STDARG__
13#    define __PROTO__(x)	x
14#    define __OTORP__(x)
15#    define __PARAM__(n,o)	n
16#    if !defined(__STDC__) && !defined(__cplusplus)
17#      if !defined(c_plusplus)
18#      	define const
19#      endif
20#      define signed
21#      define void		int
22#      define volatile
23#      define __V_		char
24#    else
25#      define __V_		void
26#    endif
27#  else
28#    define __PROTO__(x)	()
29#    define __OTORP__(x)	x
30#    define __PARAM__(n,o)	o
31#    define __LINKAGE__
32#    define __V_		char
33#    define const
34#    define signed
35#    define void		int
36#    define volatile
37#  endif
38#  define __MANGLE__	__LINKAGE__
39#  if defined(__cplusplus) || defined(c_plusplus)
40#    define __VARARG__	...
41#  else
42#    define __VARARG__
43#  endif
44#  if defined(__STDARG__)
45#    define __VA_START__(p,a)	va_start(p,a)
46#  else
47#    define __VA_START__(p,a)	va_start(p)
48#  endif
49#  if !defined(__INLINE__)
50#    if defined(__cplusplus)
51#      define __INLINE__	extern __MANGLE__ inline
52#    else
53#      if defined(_WIN32) && !defined(__GNUC__)
54#      	define __INLINE__	__inline
55#      endif
56#    endif
57#  endif
58#endif
59#if !defined(__LINKAGE__)
60#define __LINKAGE__		/* 2004-08-11 transition */
61#endif
62
63#define _def_sig_ast	1
64#define _sys_types	1	/* #include <sys/types.h> ok */
65
66#define sig_info	_sig_info_
67
68#if defined(__STDPP__directive) && defined(__STDPP__hide)
69__STDPP__directive pragma pp:hide kill killpg
70#else
71#define kill	______kill
72#define killpg	______killpg
73#endif
74#include <signal.h>
75#if defined(__STDPP__directive) && defined(__STDPP__hide)
76__STDPP__directive pragma pp:nohide kill killpg
77#else
78#undef	kill
79#undef	killpg
80#endif
81#ifndef sigmask
82#define sigmask(s)	(1<<((s)-1))
83#endif
84typedef void (*Sig_handler_t) __PROTO__((int));
85
86
87#define Handler_t		Sig_handler_t
88
89#define SIG_REG_PENDING		(-1)
90#define SIG_REG_POP		0
91#define SIG_REG_EXEC		00001
92#define SIG_REG_PROC		00002
93#define SIG_REG_TERM		00004
94#define SIG_REG_ALL		00777
95#define SIG_REG_SET		01000
96
97typedef struct
98{
99	char**		name;
100	char**		text;
101	int		sigmax;
102} Sig_info_t;
103
104extern __MANGLE__ int		kill __PROTO__((pid_t, int));
105extern __MANGLE__ int		killpg __PROTO__((pid_t, int));
106
107#if _BLD_ast && defined(__EXPORT__)
108#undef __MANGLE__
109#define __MANGLE__ __LINKAGE__ __EXPORT__
110#endif
111#if !_BLD_ast && defined(__IMPORT__)
112#undef __MANGLE__
113#define __MANGLE__ __LINKAGE__ __IMPORT__
114#endif
115
116extern __MANGLE__ Sig_info_t	sig_info;
117
118#undef __MANGLE__
119#define __MANGLE__ __LINKAGE__
120
121#if _lib_sigflag && _npt_sigflag
122extern __MANGLE__ int		sigflag __PROTO__((int, int, int));
123#endif
124
125#if _BLD_ast && defined(__EXPORT__)
126#undef __MANGLE__
127#define __MANGLE__ __LINKAGE__		__EXPORT__
128#endif
129
130#if !_lib_sigflag
131extern __MANGLE__ int		sigflag __PROTO__((int, int, int));
132#endif
133extern __MANGLE__ int		sigcritical __PROTO__((int));
134extern __MANGLE__ int		sigunblock __PROTO__((int));
135
136#undef __MANGLE__
137#define __MANGLE__ __LINKAGE__
138#endif
139