Back to index

glibc  2.9
sigpending.c File Reference
#include <errno.h>
#include <stddef.h>
#include <hurd.h>
#include <hurd/signal.h>

Go to the source code of this file.


int sigpending (sigset_t *set)

Function Documentation

int sigpending ( sigset_t set)

Definition at line 28 of file sigpending.c.

  struct hurd_sigstate *ss;
  sigset_t pending;

  if (set == NULL)
      errno = EINVAL;
      return -1;

  ss = _hurd_self_sigstate ();
  __spin_lock (&ss->lock);
  pending = ss->pending;
  __spin_unlock (&ss->lock);

  *set = pending;
  return 0;

Here is the call graph for this function: