Back to index

glibc  2.9
Defines | Functions
sigrelse.c File Reference
#include <stddef.h>
#include <signal.h>

Go to the source code of this file.

Defines

#define __need_NULL

Functions

int sigrelse (int sig)

Define Documentation

#define __need_NULL

Definition at line 21 of file sigrelse.c.


Function Documentation

int sigrelse ( int  sig)

Definition at line 26 of file sigrelse.c.

{
  sigset_t set;

  /* Retrieve current signal set.  */
  if (__sigprocmask (SIG_SETMASK, NULL, &set) < 0)
    return -1;

  /* Remove the specified signal.  */
  if (sigdelset (&set, sig) < 0)
    return -1;

  /* Set the new mask.  */
  return __sigprocmask (SIG_SETMASK, &set, NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function: