19 #ifndef _XENO_POSIX_SIGNAL_H
20 #define _XENO_POSIX_SIGNAL_H
22 #if defined(__KERNEL__) || defined(__XENO_SIM__)
24 #include <nucleus/xenomai.h>
27 #include <linux/signal.h>
30 #define sa_sigaction sa_handler
31 typedef void (*sighandler_t) (
int sig);
32 typedef unsigned long sig_atomic_t;
36 #include <posix_overrides.h>
49 #define sigaction(sig, action, old) pse51_sigaction(sig, action, old)
50 #define sigemptyset pse51_sigemptyset
51 #define sigfillset pse51_sigfillset
52 #define sigaddset pse51_sigaddset
53 #define sigdelset pse51_sigdelset
54 #define sigismember pse51_sigismember
91 int sigwait(
const sigset_t *set,
96 siginfo_t *__restrict__ info);
99 siginfo_t *__restrict__ info,
100 const struct timespec *__restrict__ timeout);
110 #pragma GCC system_header
112 #include_next <signal.h>
115 #include_next <signal.h>
129 #define SIGSUSP (SIGRTMAX + 1)
130 #define SIGRESM (SIGRTMAX + 2)
131 #define SIGRELS (SIGRTMAX + 3)
int sigdelset(sigset_t *set, int signum)
Delete a signal from a signal set.
Definition: signal.c:248
int sigaddset(sigset_t *set, int signum)
Add a signal to a signal set.
Definition: signal.c:215
int sigpending(sigset_t *set)
Examine pending signals.
Definition: signal.c:672
int pthread_kill(pthread_t thread, int sig)
Send a signal to a thread.
Definition: signal.c:521
int sigismember(const sigset_t *set, int signum)
Test for a signal in a signal set.
Definition: signal.c:281
int pthread_sigqueue_np(pthread_t thread, int sig, union sigval value)
Queue a signal to a thread.
Definition: signal.c:618
int sigtimedwait(const sigset_t *__restrict__ user_set, siginfo_t *__restrict__ info, const struct timespec *__restrict__ timeout)
Wait during a bounded time for signals.
Definition: signal.c:1002
int sigfillset(sigset_t *set)
Initialize and fill a signal set.
Definition: signal.c:187
int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
Examine and change the set of signals blocked by a thread.
Definition: signal.c:735
int sigwaitinfo(const sigset_t *__restrict__ set, siginfo_t *__restrict__ info)
Wait for signals.
Definition: signal.c:949
int sigwait(const sigset_t *set, int *sig)
Wait for signals.
Definition: signal.c:908
int sigaction(int sig, const struct sigaction *action, struct sigaction *old)
Examine and change a signal action.
Definition: signal.c:466
int sigemptyset(sigset_t *set)
Initialize and empty a signal set.
Definition: signal.c:164