tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: getconf(1) / sysconf(3) - add additional variables?
On Fri, Jul 02, 2021 at 02:21:39PM +0100, Michael-John Turner wrote:
> Hi,
>
> While attempting to package Starship for pkgsrc, I noticed that getconf(1)
> is missing several variables that are available on both OpenBSD and
> FreeBSD (I'm assuming because they're not returned by sysconf(3)). For
> example, both OpenBSD and FreeBSD (and Linux and Darwin) support the
> LONG_BIT variable, but NetBSD doesn't.
Do you really mean sysconf(3)? I don't see how that makes sense.
But we could add
#define LONG_BIT __LONG_WIDTH
to <limits.h> inside proper #if guards.
Martin
Home |
Main Index |
Thread Index |
Old Index