SYSV_SIGNAL



SYSV_SIGNAL

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
ATTRIBUTES
CONFORMING TO
NOTES
SEE ALSO
COLOPHON

NAME

sysv_signal − signal handling with System V semantics

SYNOPSIS

#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <signal.h>

typedef void (*sighandler_t)(int);

sighandler_t sysv_signal(int signum, sighandler_t handler);

DESCRIPTION

The sysv_signal() function takes the same arguments, and performs the same task, as signal(2).

However sysv_signal() provides the System V unreliable signal semantics, that is: a) the disposition of the signal is reset to the default when the handler is invoked; b) delivery of further instances of the signal is not blocked while the signal handler is executing; and c) if the handler interrupts (certain) blocking system calls, then the system call is not automatically restarted.

RETURN VALUE

The sysv_signal() function returns the previous value of the signal handler, or SIG_ERR on error.

ERRORS

As for signal(2).

ATTRIBUTES

Multithreading (see pthreads(7))
The sysv_signal() function is thread-safe.

CONFORMING TO

This function is nonstandard.

NOTES

Use of sysv_signal() should be avoided; use sigaction(2) instead.

On older Linux systems, sysv_signal() and signal(2) were equivalent. But on newer systems, signal(2) provides reliable signal semantics; see signal(2) for details.

The use of sighandler_t is a GNU extension; this type is defined only if the _GNU_SOURCE feature test macro is defined.

SEE ALSO

sigaction(2), signal(2), bsd_signal(3), signal(7)

COLOPHON

This page is part of release 3.69 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at http://www.kernel.org/doc/man−pages/.




More Linux Commands

manpages/intel_upload_blit_large_map.1.html
intel_upload_blit_large_map(1) - microbenchmark of Intel GPU
intel_upload_blit_large_map is a microbenchmark tool for DRM performance. It should be run with kernel modesetting enabled, and may require root privilege for c

manpages/trivial-rewrite.8.html
trivial-rewrite(8) - Postfix address rewriting and resolving
The trivial-rewrite(8) daemon processes three types of client service requests: rewrite context address Rewrite an address to standard form, according to the ad

manpages/glColor4dv.3gl.html
glColor4dv(3gl) - set the current color - Linux manual page
The GL stores both a current single-valued color index and a current four-valued RGBA color. glColor sets a new four-valued RGBA color. glColor has two major va

manpages/aio_write.3.html
aio_write(3) - asynchronous write - Linux manual page.......
The aio_write() function queues the I/O request described by the buffer pointed to by aiocbp. This function is the asynchronous analog of write(2). The argument

manpages/ber_alloc_t.3.html
ber_alloc_t(3) - OpenLDAP LBER simplified Basic Encoding Rul
ber_alloc_t.3 - These routines provide a subroutine interface to a simplified implementation of the Basic Encoding Rules of ASN.1. The version of BER these rout

manpages/flushinp.3ncurses.html
flushinp(3ncurses) - miscellaneous curses utility routines
The unctrl routine returns a character string which is a printable representation of the character c, ignoring attributes. Control characters are displayed in t

manpages/getchar_unlocked.3.html
getchar_unlocked(3) - nonlocking stdio functions (Man Page)
Each of these functions has the same behavior as its counterpart without the _unlocked suffix, except that they do not use locking (they do not set locks themse

manpages/FcConfigUptoDate.3.html
FcConfigUptoDate(3) - Check timestamps on config files......
Checks all of the files related to config and returns whether any of them has been modified since the configuration was created. If config is NULL, the current

manpages/tiff2ps.1.html
tiff2ps(1) convert a TIFF image to PostScripttrade..........
tiff2ps reads TIFF images and writes PostScript or Encapsulated PostScript (EPS) on the standard output. By default, tiff2ps writes Encapsulated PostScript for

manpages/attr_setf.3.html
attr_setf(3) - set the value of a user attribute of a filesy
The attr_set and attr_setf functions provide a way to create attributes and set/change their values. Path points to a path name for a filesystem object, and fd

manpages/ber_get_null.3.html
ber_get_null(3) - OpenLDAP LBER simplified Basic Encoding Ru
These routines provide a subroutine interface to a simplified implementation of the Basic Encoding Rules of ASN.1. The version of BER these routines support is

manpages/vimdiff.1.html
vimdiff(1) - edit two, three or four versions of a file with
vimdiff.1 - Vimdiff starts Vim on two (or three or four) files. Each file gets its own window. The differences between the files are highlighted. This is a nice





We can't live, work or learn in freedom unless the software we use is free.