{"id":6091,"date":"2022-12-20T18:57:54","date_gmt":"2022-12-20T21:57:54","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/signal-h-man0p\/"},"modified":"2022-12-20T18:57:54","modified_gmt":"2022-12-20T21:57:54","slug":"signal-h-man0p","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/signal-h-man0p\/","title":{"rendered":"signal.h (man0p)"},"content":{"rendered":"<h1 align=\"center\">signal.h<\/h1>\n<p> <a href=\"#PROLOG\">PROLOG<\/a><br \/> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#APPLICATION USAGE\">APPLICATION USAGE<\/a><br \/> <a href=\"#RATIONALE\">RATIONALE<\/a><br \/> <a href=\"#FUTURE DIRECTIONS\">FUTURE DIRECTIONS<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>PROLOG <a name=\"PROLOG\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This manual page is part of the POSIX Programmer\u2019s Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">signal.h \u2014 signals<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">#include <signal.h><\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Some of the functionality described on this reference page extends the ISO\u00a0C standard. Applications shall define the appropriate feature test macro (see the System Interfaces volume of POSIX.1-2017, <i>Section 2.2<\/i>, <i>The Compilation Environment<\/i>) to enable the visibility of these symbols in this header.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the following macros, which shall expand to constant expressions with distinct values that have a type compatible with the second argument to, and the return value of, the <i>signal<\/i>() function, and whose values shall compare unequal to the address of any declarable function.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p>SIG_DFL<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>Request for default signal handling.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p>SIG_ERR<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>Return value from <i>signal<\/i>() in case of error.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p>SIG_HOLD<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>Request that signal be held.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"12%\">\n<p>SIG_IGN<\/p>\n<\/td>\n<td width=\"9%\"><\/td>\n<td width=\"68%\">\n<p>Request that signal be ignored.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the <b>pthread_t<\/b>, <b>size_t<\/b>, and <b>uid_t<\/b> types as described in <i><sys\/types.h><\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the <b>timespec<\/b> structure as described in <i><time.h><\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the following data types:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\"><b>sig_atomic_t<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p style=\"margin-top: 1em\">Possibly volatile-qualified integer type of an object that can be accessed as an atomic entity, even in the presence of asynchronous interrupts.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p><b>sigset_t<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Integer or structure type of an object used to represent sets of signals.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p><b>pid_t<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>As described in <i><sys\/types.h><\/i>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the <b>pthread_attr_t<\/b> type as described in <i><sys\/types.h><\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the <b>sigevent<\/b> structure, which shall include at least the following members:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">int sigev_notify Notification type. <br \/> int sigev_signo Signal number. <br \/> union sigval sigev_value Signal value. <br \/> void (*sigev_notify_function)(union sigval) <br \/> Notification function. <br \/> pthread_attr_t *sigev_notify_attributes Notification attributes.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the following symbolic constants for the values of <i>sigev_notify<\/i>:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">SIGEV_NONE<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p style=\"margin-top: 1em\">No asynchronous notification is delivered when the event of interest occurs.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p>SIGEV_SIGNAL<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>A queued signal, with an application-defined value, is generated when the event of interest occurs.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p>SIGEV_THREAD<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>A notification function is called to perform notification.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>sigval<\/b> union shall be defined as:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">int sival_int Integer signal value. <br \/> void *sival_ptr Pointer signal value.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall declare the SIGRTMIN and SIGRTMAX macros, which shall expand to positive integer expressions with type <b>int<\/b>, but which need not be constant expressions. These macros specify a range of signal numbers that are reserved for application use and for which the realtime signal behavior specified in this volume of POSIX.1-2017 is supported. The signal numbers in this range do not overlap any of the signals specified in the following table.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The range SIGRTMIN through SIGRTMAX inclusive shall include at least {RTSIG_MAX} signal numbers.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">It is implementation-defined whether realtime signal behavior is supported for other signals.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the following macros that are used to refer to the signals that occur in the system. Signals defined here begin with the letters SIG followed by an uppercase letter. The macros shall expand to positive integer constant expressions with type <b>int<\/b> and distinct values. The value 0 is reserved for use as the null signal (see <i>kill<\/i>()). Additional implementation-defined signals may occur in the system.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The ISO\u00a0C standard only requires the signal names SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, and SIGTERM to be defined. An implementation need not generate any of these six signals, except as a result of explicit use of interfaces that generate signals, such as <i>raise<\/i>(), <i>kill<\/i>(), the General Terminal Interface (see <i>Section 11.1.9<\/i>, <i>Special Characters<\/i>), and the <i>kill<\/i> utility, unless otherwise stated (see, for example, the System Interfaces volume of POSIX.1-2017, <i>Section 2.8.3.3<\/i>, <i>Memory Protection<\/i>).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The following signals shall be supported on all implementations (default actions are explained below the table):<\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-737161.png\" alt=\"Image grohtml-737161.png\"><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The default actions are as follows:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p style=\"margin-top: 1em\">T<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"80%\">\n<p style=\"margin-top: 1em\">Abnormal termination of the process.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>A<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"80%\">\n<p>Abnormal termination of the process with additional actions.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>I<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"80%\">\n<p>Ignore the signal.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>S<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"80%\">\n<p>Stop the process.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"1%\">\n<p>C<\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"80%\">\n<p>Continue the process, if it is stopped; otherwise, ignore the signal.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The effects on the process in each case are described in the System Interfaces volume of POSIX.1-2017, <i>Section 2.4.3<\/i>, <i>Signal Actions<\/i>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall declare the <b>sigaction<\/b> structure, which shall include at least the following members:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">void (*sa_handler)(int) Pointer to a signal-catching function <br \/> or one of the SIG_IGN or SIG_DFL. <br \/> sigset_t sa_mask Set of signals to be blocked during execution <br \/> of the signal handling function. <br \/> int sa_flags Special flags. <br \/> void (*sa_sigaction)(int, siginfo_t *, void *) <br \/> Pointer to a signal-catching function.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The storage occupied by <i>sa_handler<\/i> and <i>sa_sigaction<\/i> may overlap, and a conforming application shall not use both simultaneously.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the following macros which shall expand to integer constant expressions that need not be usable in <b>#if<\/b> preprocessing directives:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"17%\">\n<p style=\"margin-top: 1em\">SIG_BLOCK<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"68%\">\n<p style=\"margin-top: 1em\">The resulting set is the union of the current set and the signal set pointed to by the argument <i>set<\/i>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"17%\">\n<p>SIG_UNBLOCK<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"68%\">\n<p>The resulting set is the intersection of the current set and the complement of the signal set pointed to by the argument <i>set<\/i>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"17%\">\n<p>SIG_SETMASK<\/p>\n<\/td>\n<td width=\"4%\"><\/td>\n<td width=\"68%\">\n<p>The resulting set is the signal set pointed to by the argument <i>set<\/i>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall also define the following symbolic constants:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">SA_NOCLDSTOP<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"65%\">\n<p style=\"margin-top: 1em\">Do not generate SIGCHLD when children stop<\/p>\n<\/td>\n<td width=\"3%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:32%;\">or stopped children continue.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p style=\"margin-top: 1em\">SA_ONSTACK<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p style=\"margin-top: 1em\">Causes signal delivery to occur on an alternate stack.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p>SA_RESETHAND<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Causes signal dispositions to be set to SIG_DFL on entry to signal handlers.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p>SA_RESTART<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Causes certain functions to become restartable.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p>SA_SIGINFO<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Causes extra information to be passed to signal handlers at the time of receipt of a signal.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p>SA_NOCLDWAIT<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Causes implementations not to create zombie processes or status information on child termination. See <i>sigaction<\/i>().<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p>SA_NODEFER<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Causes signal not to be automatically blocked on entry to signal handler.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p>SS_ONSTACK<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Process is executing on an alternate signal stack.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p>SS_DISABLE<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Alternate signal stack is disabled.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p>MINSIGSTKSZ<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Minimum stack size for a signal handler.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"18%\">\n<p>SIGSTKSZ<\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"68%\">\n<p>Default size in bytes for the alternate signal stack.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the <b>mcontext_t<\/b> type through <b>typedef<\/b>.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the <b>ucontext_t<\/b> type as a structure that shall include at least the following members:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">ucontext_t *uc_link Pointer to the context that is resumed <br \/> when this context returns. <br \/> sigset_t uc_sigmask The set of signals that are blocked when this <br \/> context is active. <br \/> stack_t uc_stack The stack used by this context. <br \/> mcontext_t uc_mcontext A machine-specific representation of the saved <br \/> context.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the <b>stack_t<\/b> type as a structure, which shall include at least the following members:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">void *ss_sp Stack base or pointer. <br \/> size_t ss_size Stack size. <br \/> int ss_flags Flags.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the <b>siginfo_t<\/b> type as a structure, which shall include at least the following members:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">int si_signo Signal number. <br \/> int si_code Signal code. <br \/> int si_errno If non-zero, an <i>errno<\/i> value associated with <br \/> this signal, as described in <b><errno.h><\/b>. <br \/> pid_t si_pid Sending process ID. <br \/> uid_t si_uid Real user ID of sending process. <br \/> void *si_addr Address of faulting instruction. <br \/> int si_status Exit value or signal. <br \/> long si_band Band event for SIGPOLL. <br \/> union sigval si_value Signal value.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The <i><signal.h><\/i> header shall define the symbolic constants in the <b>Code<\/b> column of the following table for use as values of <i>si_code<\/i> that are signal-specific or non-signal-specific reasons why the signal was generated.<\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-737162.png\" alt=\"Image grohtml-737162.png\"><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Implementations may support additional <i>si_code<\/i> values not included in this list, may generate values included in this list under circumstances other than those described in this list, and may contain extensions or limitations that prevent some values from being generated. Implementations do not generate a different value from the ones described in this list for circumstances described in this list.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">In addition, the following signal-specific information shall be available:<\/p>\n<p align=\"center\" style=\"margin-top: 1em\"><img decoding=\"async\" src=\"grohtml-737163.png\" alt=\"Image grohtml-737163.png\"><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">For some implementations, the value of <i>si_addr<\/i> may be inaccurate.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">int kill(pid_t, int); <br \/> int killpg(pid_t, int); <br \/> void psiginfo(const siginfo_t *, const char *); <br \/> void psignal(int, const char *); <br \/> int pthread_kill(pthread_t, int); <br \/> int pthread_sigmask(int, const sigset_t *restrict, <br \/> sigset_t *restrict); <br \/> int raise(int); <br \/> int sigaction(int, const struct sigaction *restrict, <br \/> struct sigaction *restrict); <br \/> int sigaddset(sigset_t *, int); <br \/> int sigaltstack(const stack_t *restrict, stack_t *restrict); <br \/> int sigdelset(sigset_t *, int); <br \/> int sigemptyset(sigset_t *); <br \/> int sigfillset(sigset_t *); <br \/> int sighold(int); <br \/> int sigignore(int); <br \/> int siginterrupt(int, int); <br \/> int sigismember(const sigset_t *, int); <br \/> void (*signal(int, void (*)(int)))(int); <br \/> int sigpause(int); <br \/> int sigpending(sigset_t *); <br \/> int sigprocmask(int, const sigset_t *restrict, sigset_t *restrict); <br \/> int sigqueue(pid_t, int, union sigval); <br \/> int sigrelse(int); <br \/> void (*sigset(int, void (*)(int)))(int); <br \/> int sigsuspend(const sigset_t *); <br \/> int sigtimedwait(const sigset_t *restrict, siginfo_t *restrict, <br \/> const struct timespec *restrict); <br \/> int sigwait(const sigset_t *restrict, int *restrict); <br \/> int sigwaitinfo(const sigset_t *restrict, siginfo_t *restrict);<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Inclusion of the <i><signal.h><\/i> header may make visible all symbols from the <i><time.h><\/i> header.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>The following sections are informative.<\/i><\/p>\n<h2>APPLICATION USAGE <a name=\"APPLICATION USAGE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">On systems not supporting the XSI option, the <i>si_pid<\/i> and <i>si_uid<\/i> members of <b>siginfo_t<\/b> are only required to be valid when <i>si_code<\/i> is SI_USER or SI_QUEUE. On XSI-conforming systems, they are also valid for all <i>si_code<\/i> values less than or equal to 0; however, it is unspecified whether SI_USER and SI_QUEUE have values less than or equal to zero, and therefore XSI applications should check whether <i>si_code<\/i> has the value SI_USER or SI_QUEUE or is less than or equal to 0 to tell whether <i>si_pid<\/i> and <i>si_uid<\/i> are valid.<\/p>\n<h2>RATIONALE <a name=\"RATIONALE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">None.<\/p>\n<h2>FUTURE DIRECTIONS <a name=\"FUTURE DIRECTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The SIGPOLL and SIGPROF signals may be removed in a future version.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b><errno.h><\/b>, <b><stropts.h><\/b>, <b><sys_types.h><\/b>, <b><time.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The System Interfaces volume of POSIX.1-2017, <i>Section 2.2<\/i>, <i>The Compilation Environment<\/i>, <i>alarm<\/i>(), <i>ioctl<\/i>(), <i>kill<\/i>(), <i>killpg<\/i>(), <i>psiginfo<\/i>(), <i>pthread_kill<\/i>(), <i>pthread_sigmask<\/i>(), <i>raise<\/i>(), <i>sigaction<\/i>(), <i>sigaddset<\/i>(), <i>sigaltstack<\/i>(), <i>sigdelset<\/i>(), <i>sigemptyset<\/i>(), <i>sigfillset<\/i>(), <i>sighold<\/i>(), <i>siginterrupt<\/i>(), <i>sigismember<\/i>(), <i>signal<\/i>(), <i>sigpending<\/i>(), <i>sigqueue<\/i>(), <i>sigsuspend<\/i>(), <i>sigtimedwait<\/i>(), <i>sigwait<\/i>(), <i>timer_create<\/i>(), <i>wait<\/i>(), <i>waitid<\/i>()<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The Shell and Utilities volume of POSIX.1-2017, <i>kill<\/i><\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology &#8212; Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http:\/\/www.opengroup.org\/unix\/online.html .<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https:\/\/www.kernel.org\/doc\/man-pages\/reporting_bugs.html .<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  signal.h \u2014 signals <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3781,1],"tags":[2588,1023],"class_list":["post-6091","post","type-post","status-publish","format-standard","hentry","category-0p-posix-cabeceras-de-bibliotecas-de-c","category-sin-categoria","tag-man0p","tag-signal"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6091"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6091\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}