3 #define F(t,n) {t *y = &x.n;}
4 #define C(n) switch(n){case n:;}
8 {void(*x)(int) = SIG_DFL;}
9 {void(*x)(int) = SIG_ERR;}
10 {void(*x)(int) = SIG_IGN;}
11 #ifdef _POSIX_C_SOURCE
12 {void(*x)(int) = SIG_HOLD;}
24 F(union sigval,sigev_value)
25 {void (**y)(union sigval) = &x.sigev_notify_function;}
26 F(pthread_attr_t*,sigev_notify_attributes)
45 #ifdef _POSIX_C_SOURCE
70 {void (**y)(int) = &x.sa_handler;}
73 {void (**y)(int, siginfo_t *, void *) = &x.sa_sigaction;}
94 F(ucontext_t*,uc_link)
95 F(sigset_t,uc_sigmask)
97 F(mcontext_t,uc_mcontext)
116 F(union sigval,si_value)
154 int(*p_kill)(pid_t,int) = kill;
155 int(*p_killpg)(pid_t,int) = killpg;
156 void(*p_psiginfo)(const siginfo_t*,const char*) = psiginfo;
157 void(*p_psignal)(int,const char*) = psignal;
158 int(*p_pthread_kill)(pthread_t,int) = pthread_kill;
159 int(*p_pthread_sigmask)(int,const sigset_t*restrict,sigset_t*restrict) = pthread_sigmask;
160 int(*p_sigaction)(int,const struct sigaction*restrict,struct sigaction*restrict) = sigaction;
161 int(*p_sigaddset)(sigset_t*,int) = sigaddset;
162 int(*p_sigaltstack)(const stack_t*restrict,stack_t*restrict) = sigaltstack;
163 int(*p_sigdelset)(sigset_t*,int) = sigdelset;
164 int(*p_sigemptyset)(sigset_t*) = sigemptyset;
165 int(*p_sigfillset)(sigset_t*) = sigfillset;
166 int(*p_sighold)(int) = sighold;
167 int(*p_sigignore)(int) = sigignore;
168 int(*p_siginterrupt)(int,int) = siginterrupt;
169 int(*p_sigismember)(const sigset_t*,int) = sigismember;
170 int(*p_sigpause)(int) = sigpause;
171 int(*p_sigpending)(sigset_t*) = sigpending;
172 int(*p_sigprocmask)(int,const sigset_t*restrict,sigset_t*restrict) = sigprocmask;
173 int(*p_sigqueue)(pid_t,int,const union sigval) = sigqueue;
174 int(*p_sigrelse)(int) = sigrelse;
175 void(*(*p_sigset)(int,void(*)(int)))(int) = sigset;
176 int(*p_sigsuspend)(const sigset_t*) = sigsuspend;
177 int(*p_sigtimedwait)(const sigset_t*restrict,siginfo_t*restrict,const struct timespec*restrict) = sigtimedwait;
178 int(*p_sigwait)(const sigset_t*restrict,int*restrict) = sigwait;
179 int(*p_sigwaitinfo)(const sigset_t*restrict,siginfo_t*restrict) = sigwaitinfo;
181 int(*p_raise)(int) = raise;
182 void(*(*p_signal)(int,void(*)(int)))(int) = signal;