Back to index

glibc  2.9
Functions
sysv_signal.c File Reference
#include <errno.h>
#include <signal.h>
#include <stub-tag.h>

Go to the source code of this file.

Functions

__sighandler_t __sysv_signal (int sig, __sighandler_t handler)

Function Documentation

Definition at line 25 of file sysv_signal.c.

{
  /* Check signal extents to protect __sigismember.  */
  if (handler == SIG_ERR || sig < 1 || sig >= NSIG)
    {
      __set_errno (EINVAL);
      return SIG_ERR;
    }

  __set_errno (ENOSYS);

  return SIG_ERR;
}