siglongjmp

Is a macro that restores a saved environment and signal mask.

Library:LibC
Classification:ANSI
Service:General C Services

Syntax

  #include <setjmp.h> 
   
  void siglongjmp (
     sigjmp_buf   env,
     int          val );
  

Parameters

env

(IN) Specifies the environment variable to be restored.

val

(IN) Specifies the value to return.

Remarks

The siglongjmp macro restores the environment and signal mask saved by the most recent call to sigsetjmp. After siglongjmp restores the environment, program execution continues as if the corresponding call to sigsetjmp has just returned the value specified by value.

The sigsetjmp macro must be called before siglongjmp. The routine that called sigsetjmp and set up env must still be active and cannot have returned before siglongjmp is called. If this happens, the results are unpredictable. If value is passed as 0, the value 1 is substituted on the actual return.

See Also

sigsetjmp