Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/lib/libc/gen Pull up following revision(s) (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/b0f2dafb5bb2
branches:  netbsd-9
changeset: 984092:b0f2dafb5bb2
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jun 21 16:04:57 2021 +0000

description:
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'.

diffstat:

 lib/libc/gen/setjmp.3 |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 945b596148b6 -r b0f2dafb5bb2 lib/libc/gen/setjmp.3
--- a/lib/libc/gen/setjmp.3     Mon Jun 21 15:41:38 2021 +0000
+++ b/lib/libc/gen/setjmp.3     Mon Jun 21 16:04:57 2021 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index