Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys * add humanize_number() (a more generic version of f...



details:   https://anonhg.NetBSD.org/src/rev/30addf0f4f5f
branches:  trunk
changeset: 473095:30addf0f4f5f
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu May 20 05:53:34 1999 +0000

description:
* add humanize_number() (a more generic version of format_bytes(),
  which the latter uses)
* add allocsys() - MI version of the MD function of the same name,
  and ALLOCSYS() - a vamped up VALLOC().

diffstat:

 sys/sys/systm.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r 18a033036bc6 -r 30addf0f4f5f sys/sys/systm.h
--- a/sys/sys/systm.h   Thu May 20 05:35:28 1999 +0000
+++ b/sys/sys/systm.h   Thu May 20 05:53:34 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systm.h,v 1.90 1999/05/09 13:57:44 lukem Exp $ */
+/*     $NetBSD: systm.h,v 1.91 1999/05/20 05:53:34 lukem Exp $ */
 
 /*-
  * Copyright (c) 1982, 1988, 1991, 1993
@@ -187,6 +187,7 @@
 
 char   *bitmask_snprintf __P((u_quad_t, const char *, char *, size_t));
 
+int    humanize_number __P((char *, size_t, u_int64_t, const char *));
 int    format_bytes __P((char *, size_t, u_int64_t));
 
 void   tablefull __P((const char *));
@@ -279,6 +280,12 @@
 int    uiomove __P((void *, int, struct uio *));
 
 #ifdef _KERNEL
+caddr_t        allocsys __P((caddr_t, caddr_t (*)(caddr_t)));
+#define        ALLOCSYS(base, name, type, num) \
+           (name) = (type *)(base); (base) = (caddr_t)ALIGN((name)+(num))
+#endif
+
+#ifdef _KERNEL
 int    setjmp  __P((label_t *));
 void   longjmp __P((label_t *));
 #endif



Home | Main Index | Thread Index | Old Index