From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 25 10:27:34 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 4F8D01065670; Fri, 25 Mar 2011 10:27:33 +0000 (UTC) Date: Fri, 25 Mar 2011 10:27:33 +0000 From: Alexander Best To: Warner Losh Message-ID: <20110325102733.GB56260@freebsd.org> References: <20110325002115.GA323@freebsd.org> <20110325015508.GA14565@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-hackers@freebsd.org Subject: Re: Switching to [KMGTPE]i prefixes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2011 10:27:34 -0000 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 > > _______________________________________________ > > 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