]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r220582:
authordelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 29 Apr 2011 00:40:00 +0000 (00:40 +0000)
committerdelphij <delphij@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 29 Apr 2011 00:40:00 +0000 (00:40 +0000)
commit28568c15a73caab756a9cc0ccbbcd0456946a4bd
treedee23f95956649e4667c14c73b8493631c28ef78
parentade67b15d372d947b3e78b98a5cef483c7f8620f
MFC r220582:

Add support for IEE/IEC (and now also SI) power of two notions of
prefixes (Ki, Mi, Gi...) for humanize_number(3).

Note that applications has to pass HN_IEC_PREFIXES to use this
feature for backward compatibility reasons.

Reviewed by: arundel

git-svn-id: svn://svn.freebsd.org/base/stable/8@221193 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libutil/humanize_number.3
lib/libutil/humanize_number.c
lib/libutil/libutil.h