Subject: Re: bin/32785 [dM] du not terabyte-clean
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-userlevel
Date: 07/24/2006 16:45:53
>> I just added a fix to PR bin/32785, which is about du breaking in
>> the presence of terabyte levels of disk space.
> How about using uintmax_t?

I have no problem with it.  I didn't do it because I'm not used to the
suite of types available.

Actually, since prstat takes int64_t, there is no point in using
anything wider.  (Since negative numbers make no sense, I think it
really should use uint64_t, but the difference between 63 bits and
64 bits making a difference is at least a few years off.)

Where do I get a suitable printf format for these types?  I seem to
recall that there are macros from some include file, but can't recall
enough details - PRIsomething, isn't it?

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B