COHERENT manpages

This page displays the COHERENT manpage for sigemptyset() [Initialize a set of signals].

List of available manpages
Index


sigemptyset() -- Signal Function (libc)

Initialize a set of signals
#include <signal.h>
int sigemptyset (set)
sigset_t *set;

sigemptyset() is one of a  set of signalling functions that manipulate data
objects addressable  by the application, instead of a  set of signals known
to the system.  It initializes the set of signals to which set points, such
that all standard signals are excluded.

sigemptyset()  returns zero  if all  goes  well.  If  a problem  occurs, it
returns -1 and sets errno to an appropriate value.

An application must call either sigemptyset() or sigfillset() at least once
for each  object of type  sigset_t prior to  any other object.   If such an
object is  not initialized in this  way, but is supplied  as an argument to
any of the  functions sigaddset(), sigdelset(), sigismember(), sigaction(),
sigprocmask(), sigpending(), or sigsuspend(), the results are undefined.

See Also

libc,
sigaction(),
sigaddset(),
sigdelset(),
sigfillset(),
sigismember()

Notes

If  your program  is  compiled using  the  System V  Release 4  compilation
environment, this  is a  function that  is linked in  from libc. If  not, a
macro form is used.