🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.netbsd.tech.userlevel
Article #64

Re: setjmp(3) clarification

#64
From: David Holland
Date: Sun, 01 Nov 2026 18:31
37 lines
3354 bytes
On Sun, Oct 25, 2026 at 11:54:00AM -0400, Greg Troxel wrote:
 > > I would leave the text as-is.
 > 
 > https://pubs.opengroup.org/onlinepubs/9799919799/functions/setjmp.html
 > 
 > POSIX says, with a note that really ISO C defines it:
 > 
 >   A call to setjmp() shall save the calling environment in its env
 >   argument for later use by longjmp().
 > 
 > I think the man page is fine as is, and that we should not wordsmith
 > text from ISO C and POSIX.   The explanatory text about setjmp/longjmp
 > seems reasonably clear, given that this is a fairly advanced programming
 > concept.   So I see nothing that needs fixing in NetBSD.
 > 
 > If someone thinks the ISO C text should change, <humor>I'm sure they
 > have a public bug-tracker someplace</>.

I don't agree; standards text is routinely confusing or misleading to
those not steeped in the assumptions and context of the standard
involved.

The man page already discusses almost all the things necessary to
explain in full, just not in the right order for someone who doesn't
already know exactly what the words mean. My inclination would be to
go rewrite the whole page rather than trying to patch it.

(although if someone really wanted to patch it, I think "execution
environment" might work better than the things already proposed)

-- 
David A. Holland
dholland@netbsd.org

--
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: <aueFZQtsObyNvS3y@netbsd.org>
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
References: <> <rmiqzhd7p47.fsf@s1.lexort.com>

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: David Holland <dholland-tech@netbsd.org>
Newsgroups: muc.lists.netbsd.tech.userlevel
Subject: Re: setjmp(3) clarification
Date: Sun, 1 Nov 2026 18:31:01 +0000
Organization: Newsgate at muc.de e.V.
Sender: tech-userlevel-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <aueFZQtsObyNvS3y@netbsd.org>
References: <> <rmiqzhd7p47.fsf@s1.lexort.com>
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="5909"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org;
	s=20240131; t=1793557864;
	bh=Bc58bPqSLRWCVL2tx9QakgehDHTSSXpBFcMAjNt1MM0=;
	h=Date:From:To:Subject:References:In-Reply-To:List-Id:
	 List-Unsubscribe;
	b=EF/b0pfM6GQ4NioilUamM/ej4dpVJO21k2tUCYc0nBZlyD/hcA03MZVCiF4Du+WJw
	 jXj7d8l2I0bkWI9tvhPxKS9f5iIQRVkDN2urkfvxmBhGYNc4t/WpfHkzh8ActKKfjA
	 krEgWTZ4gUAPdNMm8J+V4mt0wJQphDlZqdNGShs8=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org;
	s=20240131; t=1793557861;
	bh=Bc58bPqSLRWCVL2tx9QakgehDHTSSXpBFcMAjNt1MM0=;
	h=Date:From:To:Subject:References:In-Reply-To;
	b=2a24DcPs1vkKxHBI0DSa8A08KklXsJzC281tRxd1MK/GnklbSWjUkI1zNQaEZOsis
	 9+jVMw12nm4Y8DFMmcmXoCpMZ/L/hRR2UX05wecDw0K8niuBGP4RC9V74Q7V5A4mHY
	 NaQcTJL8xyqPTMDariUvHH6bEn3qxzjTs372I+Us=
Content-Disposition: inline
In-Reply-To: <rmiqzhd7p47.fsf@s1.lexort.com>
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes