ukey_setjmp Subroutine

Purpose

Saves the current execution context and active user-key-set.

Library

Standard C library (libc.a)

Syntax

#include <setjmp.h>
#include <sys/ukeys.h>

int ukey_setjmp (ukey_context)
ukey_jmp_buf ukey_context;

Description

The ukey_setjmp subroutine saves the current stack context and signal mask and additionally saves the current active user-key-set in the ukey_context special jump buffer.

The ukey_context can be passed as a parameter to the longjmp subroutine, which restores not only the execution context but also the saved user-key-set.

Parameters

Item Description
ukey_context Specifies the address for a ukey_jmp_buf structure.

Return Values

The ukey_setjmp subroutine returns a value of 0, unless the return is from a call to the longjmp function, in which case the ukey_setjmp subroutine returns a nonzero value.