Back to index

glibc  2.9
unwind_longjmp.c File Reference
#include <stddef.h>
#include <setjmp.h>
#include <signal.h>
#include <pthreadP.h>
#include <jmpbuf-unwind.h>

Go to the source code of this file.


void __sigstack_longjmp (__jmp_buf, int)

Function Documentation

void __sigstack_longjmp ( __jmp_buf  ,

Definition at line 25 of file unwind_longjmp.c.

  /* Perform any cleanups needed by the frames being unwound.  */
  __pthread_cleanup_upto (env->__jmpbuf, CURRENT_STACK_FRAME);

  if (env[0].__mask_was_saved)
    /* Restore the saved signal mask.  */
    (void) __sigprocmask (SIG_SETMASK, &env[0].__saved_mask,
                       (sigset_t *) NULL);

  /* Call the machine-dependent function to restore machine state.  */
  __sigstack_longjmp (env[0].__jmpbuf, val ?: 1);

Here is the call graph for this function: