1 .\" Copyright (c) 2007 Michael Kerrisk <mtk.manpages@gmail.com>
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .TH SYSV_SIGNAL 3 2021-03-22 "Linux man-pages (unreleased)"
7 sysv_signal \- signal handling with System V semantics
10 .RI ( libc ", " \-lc )
13 .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
14 .B #include <signal.h>
16 .B typedef void (*sighandler_t)(int);
18 .BI "sighandler_t sysv_signal(int " signum ", sighandler_t " handler );
23 function takes the same arguments, and performs the same task, as
28 provides the System V unreliable signal semantics, that is:
29 a) the disposition of the signal is reset to the default
30 when the handler is invoked;
31 b) delivery of further instances of the signal is not blocked while
32 the signal handler is executing; and
33 c) if the handler interrupts (certain) blocking system calls,
34 then the system call is not automatically restarted.
38 function returns the previous value of the signal handler, or
45 For an explanation of the terms used in this section, see
53 Interface Attribute Value
56 T} Thread safety MT-Safe
62 This function is nonstandard.
66 should be avoided; use
70 On older Linux systems,
77 provides reliable signal semantics; see
84 this type is defined only if
87 feature test macro is defined.