diff options
| author | Patrick Mooney <pmooney@pfmooney.com> | 2017-10-10 12:37:29 +0200 |
|---|---|---|
| committer | Patrick Mooney <pmooney@pfmooney.com> | 2020-05-15 18:37:56 +0000 |
| commit | 4c87aefe8930bd07275b8dd2e96ea5f24d93a52e (patch) | |
| tree | 8763eb97971828355c999f954f5fd7b14218dfed /usr/src/compat/freebsd/libutil.h | |
| parent | a68aefedafdc78f1f25e9c888f61357d59c87311 (diff) | |
| download | illumos-joyent-4c87aefe8930bd07275b8dd2e96ea5f24d93a52e.tar.gz | |
12665 want modern bhyve
Portions contributed by: Hans Rosenfeld <hans.rosenfeld@joyent.com>
Portions contributed by: John Levon <john.levon@joyent.com>
Portions contributed by: Mike Gerdts <mike.gerdts@joyent.com>
Portions contributed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Portions contributed by: Dominik Hassler <hadfl@omniosce.org>
Portions contributed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Portions contributed by: Robert Mustacchi <rm@joyent.com>
Portions contributed by: Mike Zeller <mike.zeller@joyent.com>
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/compat/freebsd/libutil.h')
| -rw-r--r-- | usr/src/compat/freebsd/libutil.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/usr/src/compat/freebsd/libutil.h b/usr/src/compat/freebsd/libutil.h index e22ffc0551..f899d4425e 100644 --- a/usr/src/compat/freebsd/libutil.h +++ b/usr/src/compat/freebsd/libutil.h @@ -17,5 +17,19 @@ #define _COMPAT_FREEBSD_LIBUTIL_H_ int expand_number(const char *_buf, uint64_t *_num); +int humanize_number(char *_buf, size_t _len, int64_t _number, + const char *_suffix, int _scale, int _flags); + +/* Values for humanize_number(3)'s flags parameter. */ +#define HN_DECIMAL 0x01 +#define HN_NOSPACE 0x02 +#define HN_B 0x04 +#define HN_DIVISOR_1000 0x08 +#define HN_IEC_PREFIXES 0x10 + +/* Values for humanize_number(3)'s scale parameter. */ +#define HN_GETSCALE 0x10 +#define HN_AUTOSCALE 0x20 + #endif /* _COMPAT_FREEBSD_LIBUTIL_H_ */ |
