Back to index

glibc  2.9
Functions
sigstack.c File Reference
#include <errno.h>
#include <signal.h>
#include <hurd.h>

Go to the source code of this file.

Functions

int sigstack (struct sigstack *ss, struct sigstack *oss)

Function Documentation

int sigstack ( struct sigstack ss,
struct sigstack oss 
)

Definition at line 26 of file sigstack.c.

{
  struct sigaltstack as, oas;

  as.ss_sp = ss->ss_sp;
  as.ss_size = 0;
  as.ss_flags = 0;

  if (__sigaltstack (&as, &oas) < 0)
    return -1;

  if (oss != NULL)
    {
      oss->ss_sp = oas.ss_sp;
      oss->ss_onstack = oas.ss_flags & SS_ONSTACK;
    }

  return 0;
}

Here is the call graph for this function: