1 #ifndef _SIGNAL_H 2 # include <signal/signal.h> 3 4 # ifndef _ISOMAC 5 # include <sigsetops.h> 6 7 libc_hidden_proto (sigemptyset) 8 libc_hidden_proto (sigfillset) 9 libc_hidden_proto (sigaddset) 10 libc_hidden_proto (sigdelset) 11 libc_hidden_proto (sigismember) 12 extern int __sigpause (int sig_or_mask, int is_sig); 13 libc_hidden_proto (__sigpause) 14 libc_hidden_proto (raise) 15 libc_hidden_proto (__libc_current_sigrtmin) 16 libc_hidden_proto (__libc_current_sigrtmax) 17 extern const char * const __sys_siglist[_NSIG]; 18 libc_hidden_proto (__sys_siglist) 19 extern const char * const __sys_sigabbrev[_NSIG]; 20 libc_hidden_proto (__sys_sigabbrev) 21 22 /* Now define the internal interfaces. */ 23 extern __sighandler_t __bsd_signal (int __sig, __sighandler_t __handler); 24 extern int __kill (__pid_t __pid, int __sig); 25 libc_hidden_proto (__kill) 26 extern int __sigaction (int __sig, const struct sigaction *__restrict __act, 27 struct sigaction *__restrict __oact); 28 libc_hidden_proto (__sigaction) 29 extern int __sigblock (int __mask); 30 libc_hidden_proto (__sigblock) 31 extern int __sigsetmask (int __mask); 32 extern int __sigprocmask (int __how, 33 const sigset_t *__set, sigset_t *__oset); 34 libc_hidden_proto (__sigprocmask) 35 extern int __sigsuspend (const sigset_t *__set); 36 libc_hidden_proto (__sigsuspend) 37 extern int __sigwait (const sigset_t *__set, int *__sig); 38 libc_hidden_proto (__sigwait) 39 extern int __sigwaitinfo (const sigset_t *__set, siginfo_t *__info); 40 libc_hidden_proto (__sigwaitinfo) 41 #if __TIMESIZE == 64 42 # define __sigtimedwait64 __sigtimedwait 43 #else 44 # include <struct___timespec64.h> 45 extern int __sigtimedwait64 (const sigset_t *__set, siginfo_t *__info, 46 const struct __timespec64 *__timeout); 47 libc_hidden_proto (__sigtimedwait64) 48 #endif 49 extern int __sigtimedwait (const sigset_t *__set, siginfo_t *__info, 50 const struct timespec *__timeout); 51 libc_hidden_proto (__sigtimedwait) 52 extern int __sigqueue (__pid_t __pid, int __sig, 53 const union sigval __val); 54 #ifdef __USE_MISC 55 extern int __sigreturn (struct sigcontext *__scp); 56 #endif 57 extern int __sigaltstack (const stack_t *__ss, 58 stack_t *__oss); 59 libc_hidden_proto (__sigaltstack) 60 extern int __libc_sigaction (int sig, const struct sigaction *act, 61 struct sigaction *oact); 62 libc_hidden_proto (__libc_sigaction) 63 64 extern int __default_sigpause (int mask); 65 extern int __xpg_sigpause (int sig); 66 67 /* Allocate real-time signal with highest/lowest available priority. */ 68 extern int __libc_allocate_rtsig (int __high); 69 70 # if IS_IN (rtld) 71 extern __typeof (__sigaction) __sigaction attribute_hidden; 72 extern __typeof (__libc_sigaction) __libc_sigaction attribute_hidden; 73 # endif 74 75 # endif /* _ISOMAC */ 76 #endif /* signal.h */ 77