2 .\" Copyright (c) 2007 Michael Kerrisk <mtk.manpages@gmail.com>
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .TH sysv_signal 3 (date) "Linux man-pages (unreleased)"
8 sysv_signal \- signal handling with System V semantics
11 .RI ( libc ", " \-lc )
14 .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
15 .B #include <signal.h>
17 .B typedef void (*sighandler_t)(int);
19 .BI "sighandler_t sysv_signal(int " signum ", sighandler_t " handler );
24 function takes the same arguments, and performs the same task, as
29 provides the System V unreliable signal semantics, that is:
30 a) the disposition of the signal is reset to the default
31 when the handler is invoked;
32 b) delivery of further instances of the signal is not blocked while
33 the signal handler is executing; and
34 c) if the handler interrupts (certain) blocking system calls,
35 then the system call is not automatically restarted.
39 function returns the previous value of the signal handler, or
46 For an explanation of the terms used in this section, see
52 Interface Attribute Value
57 T} Thread safety MT-Safe
62 should be avoided; use
66 On older Linux systems,
73 provides reliable signal semantics; see
80 this type is defined only if
83 feature test macro is defined.