17 #define SA_SIGINFO 0x2
20 #define SIGEV_SIGNAL 2
22 typedef uint32_t sigset_t;
37 void (*sa_handler)(int);
38 void (*sa_sigaction)(int,
siginfo_t *,
void *);
44 typedef void (*sa_handler_t)(int);
45 typedef void (*sa_sigaction_t)(int,
siginfo_t *,
void *);
51 void (*sigev_notify_function)(
union sigval);
52 void *sigev_notify_attributes;
53 pid_t sigev_notify_thread_id;
113 int sigwait(
const sigset_t *set,
int *sig);
129 int kill(pid_t pid,
int sig);
int kill(pid_t pid, int sig)
Send a signal to a task.
Definition: signal.c:131
int pause(void)
To cause the calling task (or thread) to sleep until a signal is delivered that either terminate the ...
Definition: signal.c:112
int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact)
Set up a signal for the task to catch.
Definition: signal.c:100
int sigemptyset(sigset_t *set)
Initialize the signal set given by set to empty, with all signals excluded from the set.
Definition: signal.c:62
int sigismember(const sigset_t *set, int signum)
Test whether sugnum is a member of the set.
Definition: signal.c:94
int sigfillset(sigset_t *set)
Initialize the signal set to full, including all signals.
Definition: signal.c:68
int sigdelset(sigset_t *set, int signum)
Delete a signal from the set.
Definition: signal.c:84
int sigwait(const sigset_t *set, int *sig)
Suspend execution of the calling task until one of the signals specified in the signal set becomes pe...
Definition: signal.c:107
int sigaddset(sigset_t *set, int signum)
Add a signal into the set.
Definition: signal.c:74