|
| #define | SIG_HOLD ((void *)-2) |
| | Signal disposition: hold the signal (XSI extension, used with sigset()).
|
| |
| #define | SIGRTMIN (CONFIG_THREAD_CANCEL_SIGNAL_NUMBER + 2) |
| |
| #define | SIGRTMAX (SIGRTMIN + CONFIG_POSIX_RTSIG_MAX) |
| | Largest real-time signal number.
|
| |
| #define | SIGEV_NONE 1 |
| | No notification on event completion.
|
| |
| #define | SIGEV_SIGNAL 2 |
| | Send a signal on event completion.
|
| |
| #define | SIGEV_THREAD 3 |
| | Call a function in a new thread on event completion.
|
| |
| #define | SIGEV_THREAD_ID 4 |
| | Send a signal to a specific thread on event completion (Linux-compatible extension).
|
| |
| #define | SIG_BLOCK 1 |
| | Block the signals in set.
|
| |
| #define | SIG_UNBLOCK 2 |
| | Unblock the signals in set.
|
| |
| #define | SIG_SETMASK 0 |
| | Set the signal mask to set.
|
| |
| #define | SA_NOCLDSTOP 0x00000001 |
| | Do not generate SIGCHLD when child processes stop (XSI).
|
| |
| #define | SA_ONSTACK 0x00000002 |
| | Invoke the handler on an alternate signal stack.
|
| |
| #define | SA_RESETHAND 0x00000004 |
| | Reset the signal disposition to SIG_DFL after delivery.
|
| |
| #define | SA_RESTART 0x00000008 |
| | Restart interrupted system calls instead of returning EINTR.
|
| |
| #define | SA_SIGINFO 0x00000010 |
| | Invoke the sa_sigaction handler instead of sa_handler.
|
| |
| #define | SA_NOCLDWAIT 0x00000020 |
| | Do not create zombie processes for terminated child processes (XSI).
|
| |
| #define | SA_NODEFER 0x00000040 |
| | Do not add the signal to the process signal mask during handler execution.
|
| |
| #define | SS_ONSTACK 0x00000001 |
| | Alternate signal stack is active (ss_flags value).
|
| |
| #define | SS_DISABLE 0x00000002 |
| | Alternate signal stack is disabled (ss_flags value).
|
| |
| #define | MINSIGSTKSZ 4096 |
| | Minimum stack size for a signal handler.
|
| |
| #define | SIGSTKSZ 4096 |
| | Default stack size for a signal handler.
|
| |
| #define | SIGHUP 1 |
| | Hangup.
|
| |
| #define | SIGINT 2 |
| | Interrupt.
|
| |
| #define | SIGQUIT 3 |
| | Quit.
|
| |
| #define | SIGILL 4 |
| | Illegal instruction.
|
| |
| #define | SIGTRAP 5 |
| | Trace/breakpoint trap.
|
| |
| #define | SIGABRT 6 |
| | Aborted.
|
| |
| #define | SIGBUS 7 |
| | Bus error.
|
| |
| #define | SIGFPE 8 |
| | Arithmetic exception.
|
| |
| #define | SIGKILL 9 |
| | Killed.
|
| |
| #define | SIGUSR1 10 |
| | User-defined signal 1.
|
| |
| #define | SIGSEGV 11 |
| | Invalid memory reference.
|
| |
| #define | SIGUSR2 12 |
| | User-defined signal 2.
|
| |
| #define | SIGPIPE 13 |
| | Broken pipe.
|
| |
| #define | SIGALRM 14 |
| | Alarm clock.
|
| |
| #define | SIGTERM 15 |
| | Terminated.
|
| |
| #define | SIGCHLD 17 |
| | Child status changed.
|
| |
| #define | SIGCONT 18 |
| | Continued.
|
| |
| #define | SIGSTOP 19 |
| | Stop executing.
|
| |
| #define | SIGTSTP 20 |
| | Stopped.
|
| |
| #define | SIGTTIN 21 |
| | Stopped (read)
|
| |
| #define | SIGTTOU 22 |
| | Stopped (write)
|
| |
| #define | SIGURG 23 |
| | Urgent I/O condition.
|
| |
| #define | SIGXCPU 24 |
| | CPU time limit exceeded.
|
| |
| #define | SIGXFSZ 25 |
| | File size limit exceeded.
|
| |
| #define | SIGVTALRM 26 |
| | Virtual timer expired.
|
| |
| #define | SIGPROF 27 |
| | Profiling timer expired.
|
| |
| #define | SIGPOLL 29 |
| | Pollable event occurred.
|
| |
| #define | SIGSYS 31 |
| | Bad system call.
|
| |
| #define | ILL_ILLOPC 1 |
| | Illegal opcode.
|
| |
| #define | ILL_ILLOPN 2 |
| | Illegal operand.
|
| |
| #define | ILL_ILLADR 3 |
| | Illegal addressing mode.
|
| |
| #define | ILL_ILLTRP 4 |
| | Illegal trap.
|
| |
| #define | ILL_PRVOPC 5 |
| | Privileged opcode.
|
| |
| #define | ILL_PRVREG 6 |
| | Privileged register.
|
| |
| #define | ILL_COPROC 7 |
| | Coprocessor error.
|
| |
| #define | ILL_BADSTK 8 |
| | Internal stack error.
|
| |
| #define | FPE_INTDIV 9 |
| | Integer divide by zero.
|
| |
| #define | FPE_INTOVF 10 |
| | Integer overflow.
|
| |
| #define | FPE_FLTDIV 11 |
| | Floating-point divide by zero.
|
| |
| #define | FPE_FLTOVF 12 |
| | Floating-point overflow.
|
| |
| #define | FPE_FLTUND 13 |
| | Floating-point underflow.
|
| |
| #define | FPE_FLTRES 15 |
| | Floating-point inexact result.
|
| |
| #define | FPE_FLTINV 16 |
| | Invalid floating-point operation.
|
| |
| #define | FPE_FLTSUB 17 |
| | Subscript out of range.
|
| |
| #define | SEGV_MAPERR 18 |
| | Address not mapped to object.
|
| |
| #define | SEGV_ACCERR 19 |
| | Invalid permissions for mapped object.
|
| |
| #define | BUS_ADRALN 20 |
| | Invalid address alignment.
|
| |
| #define | BUS_ADRERR 21 |
| | Nonexistent physical address.
|
| |
| #define | BUS_OBJERR 22 |
| | Object-specific hardware error.
|
| |
| #define | TRAP_BRKPT 23 |
| | Process breakpoint.
|
| |
| #define | TRAP_TRACE 24 |
| | Process trace trap.
|
| |
| #define | CLD_EXITED 25 |
| | Child has exited.
|
| |
| #define | CLD_KILLED 26 |
| | Child has terminated abnormally and did not create a core file.
|
| |
| #define | CLD_DUMPED 27 |
| | Child has terminated abnormally and created a core file.
|
| |
| #define | CLD_TRAPPED 28 |
| | Traced child has trapped.
|
| |
| #define | CLD_STOPPED 29 |
| | Child has stopped.
|
| |
| #define | CLD_CONTINUED 30 |
| | Stopped child has continued.
|
| |
| #define | POLL_IN 31 |
| | Data input available.
|
| |
| #define | POLL_OUT 32 |
| | Output buffers available.
|
| |
| #define | POLL_MSG 33 |
| | Input message available.
|
| |
| #define | POLL_ERR 34 |
| | I/O error.
|
| |
| #define | POLL_PRI 35 |
| | High priority input available.
|
| |
| #define | POLL_HUP 36 |
| | Device disconnected.
|
| |
| #define | SI_USER 37 |
| | Signal sent by kill()
|
| |
| #define | SI_QUEUE 38 |
| | Signal sent by sigqueue()
|
| |
| #define | SI_TIMER 39 |
| | Signal generated by expiration of a timer set by timer_settime()
|
| |
| #define | SI_ASYNCIO 40 |
| | Signal generated by completion of an asynchronous I/O request.
|
| |
| #define | SI_MESGQ 41 |
| | Signal generated by arrival of a message on an empty message queue.
|
| |
|
|
| BUILD_ASSERT (CONFIG_POSIX_RTSIG_MAX >=0) |
| |
|
| BUILD_ASSERT ((CONFIG_THREAD_CANCEL_SIGNAL_NUMBER+2+CONFIG_POSIX_RTSIG_MAX)<=SIGNAL_SET_SIZE) |
| |
| int | kill (pid_t pid, int sig) |
| | Send a signal to a process or process group.
|
| |
| int | killpg (pid_t pgrp, int sig) |
| | Send a signal to a process group (XSI extension).
|
| |
| void | psiginfo (const siginfo_t *info, const char *message) |
| | Print a signal description with additional siginfo_t context.
|
| |
| void | psignal (int sig, const char *message) |
| | Print a signal description to stderr.
|
| |
| int | pthread_kill (pthread_t thread, int sig) |
| | Send a signal to a specific thread.
|
| |
| int | pthread_sigmask (int how, const sigset_t *ZRESTRICT set, sigset_t *ZRESTRICT oset) |
| | Examine and change blocked signals for the calling thread.
|
| |
|
| TOOLCHAIN_DISABLE_WARNING (TOOLCHAIN_WARNING_SHADOW) |
| |
| int | sigaction (int sig, const struct sigaction *ZRESTRICT act, struct sigaction *ZRESTRICT oact) |
| | Examine and change a signal action.
|
| |
|
| TOOLCHAIN_ENABLE_WARNING (TOOLCHAIN_WARNING_SHADOW) |
| |
| int | sigaddset (sigset_t *set, int sig) |
| | Add a signal to a signal set.
|
| |
| int | sigaltstack (const stack_t *ZRESTRICT ss, stack_t *ZRESTRICT oss) |
| | Set or get the alternate signal stack (XSI extension).
|
| |
| int | sigdelset (sigset_t *set, int sig) |
| | Delete a signal from a signal set.
|
| |
| int | sigemptyset (sigset_t *set) |
| | Initialise a signal set to the empty set.
|
| |
| int | sigfillset (sigset_t *set) |
| | Initialise a signal set to the full set (all signals).
|
| |
| int | sighold (int sig) |
| | Add a signal to the calling process's signal mask (XSI, obsolescent).
|
| |
| int | sigignore (int sig) |
| | Set a signal's disposition to SIG_IGN (XSI, obsolescent).
|
| |
| int | siginterrupt (int sig, int flag) |
| | Control whether a signal restarts or interrupts system calls (XSI, obsolescent).
|
| |
| int | sigismember (const sigset_t *set, int sig) |
| | Test whether a signal is a member of a signal set.
|
| |
| int | sigpause (int sig) |
| | Suspend execution until a signal is delivered (XSI, obsolescent).
|
| |
| int | sigpending (sigset_t *set) |
| | Retrieve the set of pending signals.
|
| |
| int | sigprocmask (int how, const sigset_t *ZRESTRICT set, sigset_t *ZRESTRICT oset) |
| | Examine and change the calling process's signal mask.
|
| |
| int | sigqueue (pid_t pid, int sig, union sigval value) |
| | Queue a signal and data to a process.
|
| |
| int | sigrelse (int sig) |
| | Remove a signal from the process signal mask (XSI, obsolescent).
|
| |
| sighandler_t | sigset (int sig, sighandler_t disp) |
| | Set the disposition of a signal, optionally blocking it first (XSI, obsolescent).
|
| |
| int | sigsuspend (const sigset_t *set) |
| | Wait for a signal, atomically replacing the process signal mask.
|
| |
| int | sigtimedwait (const sigset_t *ZRESTRICT set, siginfo_t *ZRESTRICT info, const struct timespec *ZRESTRICT timeout) |
| | Wait for a queued signal with a timeout.
|
| |
| int | sigwait (const sigset_t *ZRESTRICT set, int *ZRESTRICT sig) |
| | Wait for a signal from a set.
|
| |
| int | sigwaitinfo (const sigset_t *ZRESTRICT set, siginfo_t *ZRESTRICT info) |
| | Wait for a queued signal (no timeout).
|
| |
<signal.h>: POSIX signal types and functions
Provides signal numbers, signal sets, signal actions, real-time signal extensions, and the full set of POSIX signal-management functions.
- See also
- POSIX.1-2017 <signal.h>
Definition in file signal.h.