summaryrefslogtreecommitdiff
path: root/include/bsd
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2009-10-24 00:17:57 +0200
committerGuillem Jover <guillem@hadrons.org>2009-12-10 20:54:00 +0100
commit538bc87998624377ba72589a0ee68e4527f82489 (patch)
tree0553be808f6f1d6a81879f4be4c845aa6a11e110 /include/bsd
parent04250f6a7c3e2d22a9861b82615329e1dc328c93 (diff)
downloadlibbsd-538bc87998624377ba72589a0ee68e4527f82489.tar.gz
Add dehumanize_number function
Taken from NetBSD.
Diffstat (limited to 'include/bsd')
-rw-r--r--include/bsd/stdlib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h
index 3e1fe83..453c33d 100644
--- a/include/bsd/stdlib.h
+++ b/include/bsd/stdlib.h
@@ -31,9 +31,15 @@
#include <sys/cdefs.h>
#include <sys/stat.h>
+#include <stdint.h>
#include <stdlib.h>
+/* For compatibility with NetBSD, which defines humanize_number here. */
+#include <libutil.h>
+
__BEGIN_DECLS
+int dehumanize_number(const char *str, int64_t *size);
+
const char *fmtcheck (const char *, const char *);
char *getprogname ();