Module Name:    src
Committed By:   martin
Date:           Mon Jun 21 16:04:57 UTC 2021

Modified Files:
        src/lib/libc/gen [netbsd-9]: setjmp.3

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #1298):

        lib/libc/gen/setjmp.3: revision 1.18

Clarify what happens when you longjmp(..., 0).

Derived from C99 7.13.2.1 `The longjmp function'.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.17.64.1 src/lib/libc/gen/setjmp.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/setjmp.3
diff -u src/lib/libc/gen/setjmp.3:1.17 src/lib/libc/gen/setjmp.3:1.17.64.1
--- src/lib/libc/gen/setjmp.3:1.17	Sat May 31 16:15:07 2008
+++ src/lib/libc/gen/setjmp.3	Mon Jun 21 16:04:57 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: setjmp.3,v 1.17 2008/05/31 16:15:07 enami Exp $
+.\"	$NetBSD: setjmp.3,v 1.17.64.1 2021/06/21 16:04:57 martin Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -85,6 +85,15 @@ invocation of the
 call had just returned the value specified by
 .Fa val ,
 instead of 0.
+The
+.Fn longjmp
+functions cannot cause
+.Fn setjmp
+to return 0; if
+.Fa val
+is 0,
+.Fn setjmp
+returns 1 instead.
 .Pp
 Pairs of calls may be intermixed, i.e., both
 .Fn sigsetjmp

Reply via email to