Index | Thread | Search

From:
enh <enh@google.com>
Subject:
Re: PATCH: use sysconf(_SC_PAGESIZE) in bin/ps
To:
Theo de Raadt <deraadt@openbsd.org>
Cc:
Eric <eobsdbox@gmail.com>, tech@openbsd.org
Date:
Tue, 3 Feb 2026 22:09:34 -0800

Download raw body.

Thread
On Tue, Feb 3, 2026 at 10:05 PM Theo de Raadt <deraadt@openbsd.org> wrote:
>
> enh <enh@google.com> wrote:
>
> > (i was genuinely surprised to see that that advice is on the openbsd
> > man page ... i assumed the OP had read the man7.org man pages which
> > are often overly prescriptive about stuff like this, but oddly they
> > _don't_ mention sysconf().)
>
> my apologies. I was young, foolish, trusting.

Android likewise has several scars from me making the same mistake.

at least this is just a man page ... some of my changes were to header files :-(

> I doubt anyone else has text like this.
>
> revision 1.3
> date: 1998/06/02 05:28:59;  author: deraadt;  state: Exp;  lines: +9 -1;
> tell people to use sysconf(3) now; kleink
>
> +.Bf -symbolic
> +This interface is obsoleted by
> +.Xr sysconf 3 .
> +Use
> +.Fn sysconf _SC_PAGESIZE .
> +.Ef
> +.Pp
>
>
> Should probably be removed, and let people do what they want.
>