summaryrefslogtreecommitdiff
path: root/static/v10/man3/reset.3
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
commit711594636704defae873be1a355a292505585afd (patch)
tree59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man3/reset.3
parent3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff)
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man3/reset.3')
-rw-r--r--static/v10/man3/reset.342
1 files changed, 42 insertions, 0 deletions
diff --git a/static/v10/man3/reset.3 b/static/v10/man3/reset.3
new file mode 100644
index 00000000..8bd1ac2f
--- /dev/null
+++ b/static/v10/man3/reset.3
@@ -0,0 +1,42 @@
+.th RESET III 5/10/73
+.sh NAME
+reset \*- execute non-local goto
+.sh SYNOPSIS
+.ft B
+setexit( )
+.s3
+reset( )
+.ft R
+.sh DESCRIPTION
+These routines are useful
+for dealing with errors
+discovered in a low-level subroutine
+of a program.
+.s3
+.it Setexit
+is typically called just at the start of
+the main loop of a processing program.
+It stores certain parameters such as the call point and the stack
+level.
+.s3
+.it Reset
+is typically called after diagnosing an error
+in some subprocedure called from the main loop.
+When
+.it reset
+is called,
+it pops the stack appropriately
+and generates a non-local return from
+the last call to
+.it setexit.
+.s3
+It is erroneous, and generally
+disastrous,
+to call
+.it reset
+unless
+.it setexit
+has been called in a routine which is
+an ancestor of
+.it reset.
+.sh BUGS