Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2011 10:27:33 +0000
From:      Alexander Best <arundel@freebsd.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Switching to [KMGTPE]i prefixes?
Message-ID:  <20110325102733.GB56260@freebsd.org>
In-Reply-To: <B16D6A44-97C4-4F31-8B3C-F2C4B71EB5BC@bsdimp.com>
References:  <20110325002115.GA323@freebsd.org> <20110325015508.GA14565@freebsd.org> <B16D6A44-97C4-4F31-8B3C-F2C4B71EB5BC@bsdimp.com>

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

-- 
a13x



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110325102733.GB56260>