1 /* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_sparc_32bit/src/cmd/ksh93/features/sigfeatures by iffe version 2009-12-04 : : */
2 #ifndef _def_sigfeatures_ksh93
3 #define _def_sigfeatures_ksh93 1
4 #define _sys_types 1 /* #include <sys/types.h> ok */
5 #define _LIB_dll 1 /* /home/gisburn/ksh93/ast_ksh_20100309/build_sparc_32bit/arch/sol11.sun4/lib/libdll.a is a library */
6 #define _LIB_ast 1 /* /home/gisburn/ksh93/ast_ksh_20100309/build_sparc_32bit/arch/sol11.sun4/lib/libast.a is a library */
7 #define _LIB_m 1 /* -lm is a library */
8 #define _LIB_cmd 1 /* /home/gisburn/ksh93/ast_ksh_20100309/build_sparc_32bit/arch/sol11.sun4/lib/libcmd.a is a library */
9 #define _LIB_md 1 /* -lmd is a library */
10 #define _lib_sigrelse 1 /* sigrelse() in default lib(s) */
11 #define _lib_sigprocmask 1 /* sigprocmask() in default lib(s) */
12 #define _hdr_time 1 /* #include <time.h> ok */
13 #define _sys_time 1 /* #include <sys/time.h> ok */
14 #define _sys_times 1 /* #include <sys/times.h> ok */
15 #define _hdr_stddef 1 /* #include <stddef.h> ok */
16 #define _hdr_stdlib 1 /* #include <stdlib.h> ok */
17 #define _hdr_ast 1 /* #include <ast.h> ok */
18 #define _hdr_signal 1 /* #include <signal.h> ok */
19 #define _typ_sigset_t 1 /* sigset_t is a type */
20 #ifndef _mem_sigvec_sv_mask
23 #ifdef _lib_sigprocmask
24 # define sh_sigaction(s,action) do { sigset_t ss;\
26 if(s) sigaddset(&ss,(s)); \
27 sigprocmask(action,&ss,0); \
29 # define sigrelease(s) sh_sigaction(s,SIG_UNBLOCK)
30 # define sigblock(s) sh_sigaction(s,SIG_BLOCK)
31 # define sig_begin() sh_sigaction(0,SIG_SETMASK)
33 # ifndef _lib_sigblock
36 # ifdef _lib_sigsetmask
37 # define sigrelease(s) sigsetmask(0)
38 # define sig_begin() sigsetmask(0)
41 # define sigrelease sigrelse
44 # define sig_begin() (0)
45 # define sigrelease(s) (0)
46 # endif /* _lib_sigrelse */
47 # endif /* _lib_sigsetmask */
48 #endif /* _lib_sigprocmask */