Changeset View
Changeset View
Standalone View
Standalone View
include/signal.h
| Show All 35 Lines | |||||
| #include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
| #include <sys/_types.h> | #include <sys/_types.h> | ||||
| #include <sys/signal.h> | #include <sys/signal.h> | ||||
| #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE | #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE | ||||
| #include <machine/ucontext.h> | #include <machine/ucontext.h> | ||||
| #include <sys/_ucontext.h> | #include <sys/_ucontext.h> | ||||
| #endif | #endif | ||||
| #if defined(__clang__) | |||||
| #pragma clang diagnostic push | |||||
| #pragma clang diagnostic ignored "-Wnullability-completeness" | |||||
| #endif | |||||
| #if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
| /* | /* | ||||
| * XXX should enlarge these, if only to give empty names instead of bounds | * XXX should enlarge these, if only to give empty names instead of bounds | ||||
| * errors for large signal numbers. | * errors for large signal numbers. | ||||
| */ | */ | ||||
| extern const char * const sys_signame[NSIG]; | extern const char * const sys_signame[NSIG]; | ||||
| extern const char * const sys_siglist[NSIG]; | extern const char * const sys_siglist[NSIG]; | ||||
| extern const int sys_nsig; | extern const int sys_nsig; | ||||
| Show All 25 Lines | int pthread_sigmask(int, const __sigset_t * __restrict, | ||||
| __sigset_t * __restrict); | __sigset_t * __restrict); | ||||
| int sigaction(int, const struct sigaction * __restrict, | int sigaction(int, const struct sigaction * __restrict, | ||||
| struct sigaction * __restrict); | struct sigaction * __restrict); | ||||
| int sigaddset(sigset_t *, int); | int sigaddset(sigset_t *, int); | ||||
| int sigdelset(sigset_t *, int); | int sigdelset(sigset_t *, int); | ||||
| int sigemptyset(sigset_t *); | int sigemptyset(sigset_t *); | ||||
| int sigfillset(sigset_t *); | int sigfillset(sigset_t *); | ||||
| int sigismember(const sigset_t *, int); | int sigismember(const sigset_t *, int); | ||||
| int sigpending(sigset_t *); | int sigpending(sigset_t * _Nonnull); | ||||
| int sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict); | int sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict); | ||||
| int sigsuspend(const sigset_t *); | int sigsuspend(const sigset_t * _Nonnull) __nonnull(1); | ||||
| int sigwait(const sigset_t * __restrict, int * __restrict); | int sigwait(const sigset_t * _Nonnull __restrict, | ||||
| int * _Nonnull __restrict); | |||||
| #endif | #endif | ||||
| #if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 600 | #if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 600 | ||||
| int sigqueue(__pid_t, int, const union sigval); | int sigqueue(__pid_t, int, const union sigval); | ||||
| struct timespec; | struct timespec; | ||||
| int sigtimedwait(const sigset_t * __restrict, siginfo_t * __restrict, | int sigtimedwait(const sigset_t * __restrict, siginfo_t * __restrict, | ||||
| const struct timespec * __restrict); | const struct timespec * __restrict); | ||||
| int sigwaitinfo(const sigset_t * __restrict, siginfo_t * __restrict); | int sigwaitinfo(const sigset_t * __restrict, siginfo_t * __restrict); | ||||
| #endif | #endif | ||||
| #if __XSI_VISIBLE | #if __XSI_VISIBLE | ||||
| int killpg(__pid_t, int); | int killpg(__pid_t, int); | ||||
| int sigaltstack(const stack_t * __restrict, stack_t * __restrict); | int sigaltstack(const stack_t * __restrict, stack_t * __restrict); | ||||
| int sighold(int); | int sighold(int); | ||||
| int sigignore(int); | int sigignore(int); | ||||
| int sigpause(int); | int sigpause(int); | ||||
| int sigrelse(int); | int sigrelse(int); | ||||
| void (*sigset(int, void (*)(int)))(int); | void (* _Nullable sigset(int, void (* _Nullable)(int)))(int); | ||||
| int xsi_sigpause(int); | int xsi_sigpause(int); | ||||
| #endif | #endif | ||||
| #if __XSI_VISIBLE >= 600 | #if __XSI_VISIBLE >= 600 | ||||
| int siginterrupt(int, int); | int siginterrupt(int, int); | ||||
| #endif | #endif | ||||
| #if __POSIX_VISIBLE >= 200809 | #if __POSIX_VISIBLE >= 200809 | ||||
| void psignal(int, const char *); | void psignal(int, const char *); | ||||
| #endif | #endif | ||||
| #if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
| int sigblock(int); | int sigblock(int); | ||||
| int sigreturn(const struct __ucontext *); | int sigreturn(const struct __ucontext *); | ||||
| int sigsetmask(int); | int sigsetmask(int); | ||||
| int sigstack(const struct sigstack *, struct sigstack *); | int sigstack(const struct sigstack *, struct sigstack *); | ||||
| int sigvec(int, struct sigvec *, struct sigvec *); | int sigvec(int, struct sigvec *, struct sigvec *); | ||||
| #endif | #endif | ||||
| __END_DECLS | __END_DECLS | ||||
| #if defined(__clang__) | |||||
| #pragma clang diagnostic pop | |||||
| #endif | |||||
| #endif /* !_SIGNAL_H_ */ | #endif /* !_SIGNAL_H_ */ | ||||