Subject: Re: config, using 64bit values in host tools
To: Frank van der Linden <fvdl@netbsd.org>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-userlevel
Date: 11/18/2003 09:08:25
On Nov 18, 2003, at 8:54 AM, Frank van der Linden wrote:

> It was reported that using options in kernel config files with value
>> 2^31-1 doesn't work, and indeed, config stores the numerical values
> it reads in ints.
>
> That won't do if you need to specify larger values for 64bit platforms.
> So I want to make config(8) use 64bit integers. However, it's a host 
> tool,
> so:
>
> 	1) can it use int64_t (the answer seems to be yes)
> 	2) can it use %lld/%llx in an snprintf() format
>
> I'm not sure about 2), maybe that one can be cleared up.

I think the answer for that is also "yes".

However, I would like to see us use the PRI macros for this stuff, and 
provide suitable definitions for host systems that do not provide them.

         -- Jason R. Thorpe <thorpej@wasabisystems.com>