tags 440838 fixed-upstream thanks. Hi Paul, Paul Brook wrote: > Package: manpages-dev > Version: 2.62-1 > Severity: normal > Tags: patch > > > The longjmp(3) function may cause unexpected things to happen to local > varables modified after the call to setjmp(). I've encountered this > issue several times, so it seems worthy of a mention in the manpage. > > Attached patch adds this, using wording similar to the POSIX spec.
It's a very good idea to add this warning, but the wording really is a little too close to the (copyrighted) POSIX text. (We can't really do that!). I rewrote the text somewhat: The values of automatic variables are unspecified after a call to longjmp() if they meet all the fol- lowing criteria: o they are local to the function that made the corresponding setjmp() call; o their values are changed between the calls to setjmp() and longjmp(); and o they are not declared as volatile. Analogous remarks apply for siglongjmp(). This change is applied for 2.65. Cheers, Michael -- Michael Kerrisk maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 Want to help with man page maintenance? Grab the latest tarball at http://www.kernel.org/pub/linux/docs/manpages/ read the HOWTOHELP file and grep the source files for 'FIXME'. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]