NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

getconf LONG_BIT in NetBSD



Hello,

I have been playing with an autoconf ./configure script that I want get running in several OSes. The script uses "getconf LONG_BIT" to get the bits of the system.


I see that "getconfg LONG_BIT" works in other systems such as Linux and FreeBSD but in NetBSD I have tried it and it does not work:

netbsd-nuc$ getconf LONG_BIT
getconf: LONG_BIT: unknown variable


I read this on limits (3) man page about LONG_BIT:


   XSI Limits
Also the X/Open System Interface Extension (XSI) specifies few limits. In NetBSD these are limited to LONG_BIT (the number of bits in long), WORD_BIT (the number of bits in a “word”), and few limits related to float and double.

How can I get the value of the LONG_BIT variable?

Thanks you very much.
Regards.



Home | Main Index | Thread Index | Old Index