From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 25 05:41:15 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12B5C106564A; Fri, 25 Mar 2011 05:41:15 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id CAB688FC12; Fri, 25 Mar 2011 05:41:14 +0000 (UTC) Received: from 63.imp.bsdimp.com (63.imp.bsdimp.com [10.0.0.63] (may be forged)) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id p2P5cxtK039240; Thu, 24 Mar 2011 23:38:59 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <20110325015508.GA14565@freebsd.org> Date: Thu, 24 Mar 2011 23:38:58 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20110325002115.GA323@freebsd.org> <20110325015508.GA14565@freebsd.org> To: Alexander Best X-Mailer: Apple Mail (2.1082) 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 05:41:15 -0000 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 > _______________________________________________ > 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"