sigsetjmp

Sets jump point for a nonlocal goto.

Format

#include  <setjmp.h>

init sigsetjmp  (sigjmp_buf env, int savemask);

Arguments

env
An address for a sigjmp_buf structure.
savemask
An integer value that specifies whether you need to save the current signal mask.

Description

This function saves its calling environment in its env argument for later use by the siglongjmp function.

If the value of savemask is not 0 (zero), sigsetjmp also saves the process' current signal mask as part of the calling environment.

See also siglongjmp in this section.

Restrictions

You cannot invoke the longjmp function from an OpenVMS condition handler. However, you may invoke longjmp from a signal handler that has been established for any signal supported by the DEC C RTL, subject to the following nesting restrictions:

Return Values
Indicates success. 
nonzero  The return is a call to the siglongjmp function. 


Previous Page | Next Page | Table of Contents | Index