summaryrefslogtreecommitdiffstats
path: root/lib/libutil/humanize_number.3
Commit message (Collapse)AuthorAgeFilesLines
* don't assert on bad args, instead return an error..jmg2013-10-071-6/+11
| | | | | | | | | | | | | | | Since so many programs don't check return value, always NUL terminate the buf... fix rounding when using base 1024 (the bug that started it all)... add a set of test cases so we can make sure that things don't break in the future... Thanks to Clifton Royston for testing and the test program... Approved by: re (hrs, glebius) MFC after: 1 week
* Add support for IEE/IEC (and now also SI) power of two notions ofdelphij2011-04-121-8/+55
| | | | | | | | | | 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 MFC after: 2 weeks
* s/buffer/buf as is used in the code.gjb2011-03-211-5/+5
| | | | | Submitted by: arundel (via doc@) MFC after: 3 days
* The NetBSD Foundation has granted permission to remove clause 3 and 4 fromjoel2010-03-021-7/+0
| | | | | | their software. Obtained from: NetBSD
* Adjust history.obrien2007-09-281-2/+4
| | | | Approved by: re(ken)
* Point expand_number(3) at humanize_number(3) and nive versa.pjd2007-09-051-0/+2
| | | | | Suggested by: trhodes Approved by: re (kensmith)
* Markup fixes.ru2006-09-171-1/+3
|
* Note the convention that humanize_number follows.imp2006-07-151-8/+11
| | | | Add 'engineering' numbers to table.
* Remove duplicated "bytes".delphij2005-04-101-1/+1
| | | | | Submitted by: Wojciech A. Koszek [dunstan freebsd czest pl] PR: 79747
* Backout manual page updates.pjd2004-09-261-19/+27
| | | | Requested by: ru
* Take the lastest fixes from NetBSD.pjd2004-09-251-27/+19
| | | | Obtained from: NetBSD
* There is no such manual page in FreeBSD.pjd2004-09-161-2/+0
|
* Markup fixes.ru2004-07-071-16/+24
|
* Humanize_number(3) is a part of libutil.pjd2004-05-251-0/+2
|
* You want to include libutil.h, not util.h.trhodes2004-05-251-4/+7
| | | | Some minor sentence tweaking.
* Add humanize_number(3) to libutil for formating numbers into a humanpjd2004-05-241-0/+137
readable form. Obtained from: NetBSD
OpenPOWER on IntegriCloud