Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sigjmp(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sigaction(S)

sigprocmask(S)

sigsuspend(S)

setjmp(S)


 sigsetjmp(S)                   6 January 1993                   sigsetjmp(S)


 Name

    sigsetjmp, siglongjmp - non-local jumps

 Syntax


    #include  <setjmp.h>

    int sigsetjmp (env, savemask)
    sigjmp_buf env;
    int savemask;

    void siglongjmp (env,val)
    sigjmp_buf env;
    int val;


 Description

    The sigsetjmp macro complies with the definition of the setjmp function.
    The sigsetjmp macro deals more proficiently with errors and interrupts
    encountered in a low-level subroutine of a program.

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

    The siglongjmp macro complies with the definition of the longjmp func-
    tion.  If and only if the env argument was initialized by a call to the
    sigsetjmp function with a non-zero savemask argument, the siglongjmp
    function restores the saved signal mask.

    If the call to siglongjmp is in a different function from the corre-
    sponding call to setjmp, variables with register storage class may have
    unpredictable values.

 See also

    sigaction(S), sigprocmask(S), sigsuspend(S), setjmp(S)

 Standards conformance

    siglongjmp and sigsetjmp are conformant with:
    IEEE POSIX Std 1003.1-1990 System Application Program Interface (API) [C
    Language] (ISO/IEC 9945-1);
    and NIST FIPS 151-1.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026