diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-03-01 19:56:00 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2004-03-01 19:56:00 +0000 |
commit | 2cf9cf67a2fa2095b28dacd71913fadcd41dc773 (patch) | |
tree | e7c06ebb069ad81705f0c70fef166bc6d810f756 /lib/libc | |
parent | ad087cd6956ebe0f32dc8a31845fda2bfc6ee607 (diff) |
Be explicit about the return value of setjmp() when longjmp(..., 0) is called.
ok tedu@ deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/setjmp.3 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/gen/setjmp.3 b/lib/libc/gen/setjmp.3 index 6807b2323a9..5fa4c78e2cd 100644 --- a/lib/libc/gen/setjmp.3 +++ b/lib/libc/gen/setjmp.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: setjmp.3,v 1.17 2003/06/02 20:18:34 millert Exp $ +.\" $OpenBSD: setjmp.3,v 1.18 2004/03/01 19:55:59 otto Exp $ .\" .\" Copyright (c) 1990, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -81,6 +81,15 @@ 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 +.Fa val +argument to +.Fn longjmp +is 0, +.Fn setjmp +returns 1. .Pp Pairs of calls may be intermixed; i.e., both .Fn sigsetjmp |