Switching to [KMGTPE]i prefixes?
arundel at freebsd.org
Fri Mar 25 10:27:34 UTC 2011
On Thu Mar 24 11, Warner Losh wrote:
> The new flag is '0x0f' but it should be '0x40' since that's a bit field...
thanks for the hint. i've updated that particular line in libutil.h.
> I did some doodling with this as well in my tree, and came up with something similar. I had an ifdef that forced the new mode, but I was never happy with the results.
> On Mar 24, 2011, at 7:55 PM, Alexander Best wrote:
> > here's a rough draft. it introduces a new flag called HN_IEC_PREFIXES so
> > nothing should get broken and each utility can decide for itself whether to use
> > the SI binary, SI decimal or the IEC certified prefixes.
> > another possibility would be to #ifdef the extra code. this would offer the
> > possibility to turn the new code on or off without having to adjust any
> > utilities. of course this behaviour should be disabled by default in order to
> > maintain compatibility.
> > cheers.
> > alex
> > --
> > a13x
> > <IEC_80000_13.diff>_______________________________________________
> > freebsd-hackers at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"
More information about the freebsd-hackers