diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-03-02 15:56:25 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-03-02 15:56:25 +0000 |
commit | fdce9dac8aeb87605ee94f54a277c181437f2107 (patch) | |
tree | b0236084c09092d84ce098b31c8059ea5fd7839f /lib | |
parent | b2ab8e5ac9af87534fa0c9ba2f645cb211aa6d68 (diff) |
Better wording for the longjmp(X, 0) case. OK otto@, deraadt@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/setjmp.3 | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/libc/gen/setjmp.3 b/lib/libc/gen/setjmp.3 index 5fa4c78e2cd..7b8ba2ed6ab 100644 --- a/lib/libc/gen/setjmp.3 +++ b/lib/libc/gen/setjmp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setjmp.3,v 1.18 2004/03/01 19:55:59 otto Exp $ +.\" $OpenBSD: setjmp.3,v 1.19 2004/03/02 15:56:24 millert Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -81,15 +81,13 @@ invocation of the call had just returned the value specified by .Fa val , instead of 0. -In this case -.Fn setjmp -never returns 0; if the value of the +The value specified by .Fa val -argument to -.Fn longjmp -is 0, +must be non-zero; a 0 value is treated as 1 to allow the programmer +to differentiate between a direct invovation of .Fn setjmp -returns 1. +and a return via +.Fn longjmp . .Pp Pairs of calls may be intermixed; i.e., both .Fn sigsetjmp |