02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

setjrnp(3C) setjrnp(3C)<br />

NAME<br />

set jrnp, longjrnp - non-local goto<br />

SYNOPSIS<br />

finclude <br />

int setjrnp (env)<br />

jrnp _ buf env;<br />

void longjrnp (env, val)<br />

jrnp buf env;<br />

int -val;<br />

DESCRIPTION<br />

These functions are useful for dealing with errors and interrupts<br />

encountered in a low-level subroutine of a program.<br />

set jrnp saves its stack environment in env for later use by<br />

longjrnp. The environment type jrnp buf is defined in the<br />

header file. -<br />

RETURN VALUE<br />

When set jrnp has been called by the calling process, returns O.<br />

longjrnp restores the environment saved by the last call of<br />

set jrnp with the corresponding env argument. After longjrnp<br />

is completed, program execution continues as if the corresponding<br />

call of set jrnp (which must not itself have returned in the interim)<br />

had just returned the value val. longjrnp cannot cause<br />

set jrnp to return the value O. If longjrnp is invoked with a<br />

second argument of 0, set jrnp will return 1. All accessible data<br />

have values as of the time longjrnp was called.<br />

SEE ALSO<br />

signal(3).<br />

WARNINGS<br />

longjrnp fails if it is called when env was never primed by a call<br />

to set jrnp or when the last such call is in a function which has<br />

since returned.<br />

1<br />

February, 1990<br />

RevisionC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!