Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2011 23:38:58 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Alexander Best <arundel@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Switching to [KMGTPE]i prefixes?
Message-ID:  <B16D6A44-97C4-4F31-8B3C-F2C4B71EB5BC@bsdimp.com>
In-Reply-To: <20110325015508.GA14565@freebsd.org>
References:  <20110325002115.GA323@freebsd.org> <20110325015508.GA14565@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.
>=20
> 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.
>=20
> cheers.
> alex
>=20
> --=20
> a13x
> <IEC_80000_13.diff>_______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to =
"freebsd-hackers-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B16D6A44-97C4-4F31-8B3C-F2C4B71EB5BC>