Article View: muc.lists.netbsd.tech.userlevel
Article #33Re: setjmp(3) clarification
From: Valery Ushakov
Date: Sun, 25 Oct 2026 00:34
Date: Sun, 25 Oct 2026 00:34
31 lines
2193 bytes
2193 bytes
On Sat, Oct 24, 2026 at 19:25:16 -0400, Jan Schaumann wrote:
> setjmp(3) notes that the functions "save their calling
> environment".
>
> For many people perusing library function manual
> pages, the term "environment" primarily brings to mind
> the _process_ environment (as in "environment
> variables").
>
> I think it might be useful to nudge people's thinking
> a bit more towards the actual meaning.
>
> Does that seem reasonable?
I see where you are coming from, but I don't really like this change.
It doesn't help too much someone who doens't know about jmp functions
and this is probably not the right place to give them a tutorial. And
the next paragraph says more or less the same thing when it says "as
if..."
Our current text ("calling environment") is aligned with posix, I
think. "Calling _stack_ environment" is also misleading as jmpbuf
saves register contents, so it's kinda true, and it kinda isn't and
that just rubs me the wrong way...
-uwe
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<at1OoKS_n8fHX6PM@snips.stderr.spb.ru>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<at0-XHG3MtDxIzJW@netmeister.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Valery Ushakov <uwe@stderr.spb.ru> Newsgroups: muc.lists.netbsd.tech.userlevel Subject: Re: setjmp(3) clarification Date: Sun, 25 Oct 2026 03:34:40 +0300 Organization: Newsgate at muc.de e.V. Sender: tech-userlevel-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <at1OoKS_n8fHX6PM@snips.stderr.spb.ru> References: <at0-XHG3MtDxIzJW@netmeister.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="17355"; mail-complaints-to="news-admin@muc.de" Content-Disposition: inline In-Reply-To: <at0-XHG3MtDxIzJW@netmeister.org> Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes