Back to index

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

Go to the source code of this file.


#define __need_NULL


int sigignore (int sig)

Define Documentation

#define __need_NULL

Definition at line 22 of file sigignore.c.

Function Documentation

int sigignore ( int  sig)

Definition at line 29 of file sigignore.c.

  struct sigaction act;

  act.sa_handler = SIG_IGN;
  if (__sigemptyset (&act.sa_mask) < 0)
    return -1;
  act.sa_flags = 0;

  return __sigaction (sig, &act, NULL);