Article View: muc.lists.netbsd.tech.userlevel
Article #4Re: intptr_t, kqueue: history/rationale of type change
From: Mouse
Date: Thu, 08 Oct 2026 13:14
Date: Thu, 08 Oct 2026 13:14
35 lines
2600 bytes
2600 bytes
> I now think that intptr_t is "pointer stored in an int", not a
> pointer to an int.
Yes. As C99 puts it:
7.18.1.4 Integer types capable of holding object pointers
[#1] The following type designates a signed integer type
with the property that any valid pointer to void can be
converted to this type, then converted back to pointer to
void, and the result will compare equal to the original
pointer:
intptr_t
The following type designates an unsigned integer type with
the property that any valid pointer to void can be converted
to this type, then converted back to pointer to void, and
the result will compare equal to the original pointer:
uintptr_t
These types are optional.
As for the rust of it, I am not competent to hold an opinion; my
interactions with rust have been mutually antagonistic.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents-montreal.org
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
--
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:
<202610081314.JAA27176@Stone.Rodents-Montreal.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-mailReferences:
<rmijynsuzdb.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: Mouse <mouse@Rodents-Montreal.ORG> Newsgroups: muc.lists.netbsd.tech.userlevel Subject: Re: intptr_t, kqueue: history/rationale of type change Date: Thu, 8 Oct 2026 09:14:00 -0400 (EDT) Organization: Newsgate at muc.de e.V. Sender: tech-userlevel-owner@NetBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <202610081314.JAA27176@Stone.Rodents-Montreal.ORG> References: <rmijynsuzdb.fsf@s1.lexort.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="49781"; mail-complaints-to="news-admin@muc.de" X-Erik-Conspiracy: There is no Conspiracy - and if there were I wouldn't be part of it anyway. X-Message-Flag: Microsoft: the company who gave us the botnet zombies. X-Composition-Start-Date: Thu, 8 Oct 2026 09:09:57 -0400 (EDT) In-Reply-To: <rmijynsuzdb.fsf@s1.lexort.com> Precedence: bulk X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes