summaryrefslogtreecommitdiffstats
path: root/lib/libutil/libutil.h
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2011-04-12 22:48:03 +0000
committerdelphij <delphij@FreeBSD.org>2011-04-12 22:48:03 +0000
commitc14cd58282c1241f10c3b38c4ca228eff76f0249 (patch)
tree1d297847768a266148a22df81c1c1919c53aacf6 /lib/libutil/libutil.h
parent2092a06579f29873b4c1f7e4a294dfc71e455844 (diff)
downloadFreeBSD-src-c14cd58282c1241f10c3b38c4ca228eff76f0249.zip
FreeBSD-src-c14cd58282c1241f10c3b38c4ca228eff76f0249.tar.gz
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 MFC after: 2 weeks
Diffstat (limited to 'lib/libutil/libutil.h')
-rw-r--r--lib/libutil/libutil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index 66104e9..5dca37c 100644
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -220,7 +220,9 @@ __END_DECLS
#define HN_NOSPACE 0x02
#define HN_B 0x04
#define HN_DIVISOR_1000 0x08
+#define HN_IEC_PREFIXES 0x10
+/* maxscale = 0x07 */
#define HN_GETSCALE 0x10
#define HN_AUTOSCALE 0x20
OpenPOWER on IntegriCloud