/*1* Copyright (c) 1996 Peter Wemm <[email protected]>.2* All rights reserved.3* Copyright (c) 2002 Networks Associates Technology, Inc.4* All rights reserved.5*6* Portions of this software were developed for the FreeBSD Project by7* ThinkSec AS and NAI Labs, the Security Research Division of Network8* Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-80359* ("CBOSS"), as part of the DARPA CHATS research program.10*11* Redistribution and use in source and binary forms, with or without12* modification, is permitted provided that the following conditions13* are met:14* 1. Redistributions of source code must retain the above copyright15* notice, this list of conditions and the following disclaimer.16* 2. Redistributions in binary form must reproduce the above copyright17* notice, this list of conditions and the following disclaimer in the18* documentation and/or other materials provided with the distribution.19* 3. The name of the author may not be used to endorse or promote20* products derived from this software without specific prior written21* permission.22*23* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND24* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE25* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE26* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE27* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL28* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS29* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)30* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT31* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY32* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF33* SUCH DAMAGE.34*35* $FreeBSD: releng/10.1/lib/libutil/libutil.h 247919 2013-03-07 19:00:00Z db $36*/3738#ifndef _HUMANIZENUMBER_H_39#define _HUMANIZENUMBER_H_4041#include <sys/types.h>4243int44humanize_number(char *buf, size_t len, int64_t quotient,45const char *suffix, int scale, int flags);4647/* Values for humanize_number(3)'s flags parameter. */48#define HN_DECIMAL 0x0149#define HN_NOSPACE 0x0250#define HN_B 0x0451#define HN_DIVISOR_1000 0x0852#define HN_IEC_PREFIXES 0x105354/* Values for humanize_number(3)'s scale parameter. */55#define HN_GETSCALE 0x1056#define HN_AUTOSCALE 0x205758#endif /* !_HUMANIZENUMBER_H_ */596061