about summary refs log tree commit diff stats
path: root/freebsd
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd')
-rw-r--r--freebsd/util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/freebsd/util.h b/freebsd/util.h
new file mode 100644
index 0000000..5bab09f
--- /dev/null
+++ b/freebsd/util.h
@@ -0,0 +1,11 @@
+/*
+ * This file tries to make up for the difference between OpenBSD's
+ * <util.h> and FreeBSD's <libutil.h>.
+ */
+
+/*
+ * fmt_scaled(3) specific flags. (from OpenBSD util.h)
+ */
+#define FMT_SCALED_STRSIZE	7	/* minus sign, 4 digits, suffix, null byte */
+
+int	fmt_scaled(long long number, char *result);