Switching to [KMGTPE]i prefixes?

Warner Losh imp at bsdimp.com
Fri Mar 25 05:41:15 UTC 2011


The new flag is '0x0f' but it should be '0x40' since that's a bit field...

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.

Warner


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 mailing list