63 #ifndef __INCLUDE_SIGNAL_H 64 #define __INCLUDE_SIGNAL_H 70 #include <tinyara/config.h> 71 #include <tinyara/compiler.h> 82 #define NULL_SIGNAL_SET ((sigset_t)0x00000000) 83 #define ALL_SIGNAL_SET ((sigset_t)0xffffffff) 86 #define GOOD_SIGNO(s) ((((unsigned)(s)) <= MAX_SIGNO)) 87 #define SIGNO2SET(s) ((sigset_t)1 << (s)) 91 #define SIGRTMIN MIN_SIGNO 92 #define SIGRTMAX MAX_SIGNO 104 #ifndef CONFIG_SIG_SIGUSR1 107 #define SIGUSR1 CONFIG_SIG_SIGUSR1 110 #ifndef CONFIG_SIG_SIGUSR2 113 #define SIGUSR2 CONFIG_SIG_SIGUSR2 116 #ifndef CONFIG_SIG_SIGALARM 120 #define SIGALRM CONFIG_SIG_SIGALARM 123 #ifdef CONFIG_SCHED_HAVE_PARENT 124 #ifndef CONFIG_SIG_SIGCHLD 127 #define SIGCHLD CONFIG_SIG_SIGCHLD 132 #ifndef CONFIG_SIG_POLL 135 #define SIGPOLL CONFIG_SIG_POLL 139 #ifndef CONFIG_SIG_SIGKILL 142 #define SIGKILL CONFIG_SIG_SIGKILL 147 #ifndef CONFIG_DISABLE_PTHREAD 148 #ifndef CONFIG_SIG_SIGCONDTIMEDOUT 149 #define SIGCONDTIMEDOUT 16 151 #define SIGCONDTIMEDOUT CONFIG_SIG_SIGCONDTIMEDOUT 157 #if defined(CONFIG_SCHED_WORKQUEUE) || defined(CONFIG_PAGING) 158 #ifndef CONFIG_SIG_SIGWORK 161 #define SIGWORK CONFIG_SIG_SIGWORK 168 #define SIG_UNBLOCK 2 169 #define SIG_SETMASK 3 173 #define SA_NOCLDSTOP (1 << 0) 175 #define SA_SIGINFO (1 << 1) 178 #define SA_NOCLDWAIT (1 << 2) 192 #define CLD_TRAPPED 8 193 #define CLD_STOPPED 9 194 #define CLD_CONTINUED 10 199 #define SIGEV_SIGNAL 1 203 #define SIG_ERR ((CODE void*)-1) 204 #define SIG_DFL ((CODE void*)0) 205 #define SIG_IGN ((CODE void*)0) 244 #ifdef CONFIG_SCHED_HAVE_PARENT 274 #define sa_handler sa_u._sa_handler 275 #define sa_sigaction sa_u._sa_sigaction 288 #define EXTERN extern "C" 291 #define EXTERN extern 299 int kill(pid_t,
int);
391 #ifdef CONFIG_CAN_PASS_STRUCTS CODE void(* _sa_sigaction_t)(int, FAR siginfo_t *, FAR void *)
Union for defining the types of the siginfo si_value field.
int sigaction(int sig, FAR const struct sigaction *act, FAR struct sigaction *oact)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int sigrelse(int signo)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int sigpending(FAR sigset_t *set)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int sigfillset(FAR sigset_t *set)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int sigprocmask(int how, FAR const sigset_t *set, FAR sigset_t *oset)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
Structure for using to pass parameters to/from signal handlers.
int sighold(int signo)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int sigemptyset(FAR sigset_t *set)
POSIX APIs (refer to : http://pubs.pengroup.org/onlinepubs/9699919799/)
int sigsuspend(FAR const sigset_t *sigmask)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int sigtimedwait(FAR const sigset_t *set, FAR struct siginfo *value, FAR const struct timespec *timeout)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
Structure for elements that define a queue signal. The following is used to attach a signal to a mess...
int sigwaitinfo(FAR const sigset_t *set, FAR struct siginfo *value)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
_sa_handler_t _sa_handler
int sigqueue(int pid, int signo, FAR void *sival_ptr)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int kill(pid_t, int)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int sigaddset(FAR sigset_t *set, int signo)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int sigdelset(FAR sigset_t *set, int signo)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
Structure for defining the action to take for given signal.
structure represents an elapsed time
CODE void(* _sa_handler_t)(int)
int sigismember(FAR const sigset_t *set, int signo)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
_sa_sigaction_t _sa_sigaction