From 56454668b619b353e3cf18abd110fc3b805b32a9 Mon Sep 17 00:00:00 2001 From: "Angelos D. Keromytis" Date: Wed, 3 Jan 2001 19:21:00 +0000 Subject: Add sysctl_quad/sysctl_rdquad routines. --- sys/sys/sysctl.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 64f6b356b6e..4269863c3b2 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.h,v 1.32 2000/09/17 22:00:01 pjanzen Exp $ */ +/* $OpenBSD: sysctl.h,v 1.33 2001/01/03 19:20:59 angelos Exp $ */ /* $NetBSD: sysctl.h,v 1.16 1996/04/09 20:55:36 cgd Exp $ */ /* @@ -152,7 +152,8 @@ struct ctlname { #define KERN_SYSVSHM 36 /* int: SysV shared memory support */ #define KERN_ARND 37 /* int: random integer from arc4rnd */ #define KERN_MSGBUFSIZE 38 /* int: size of message buffer */ -#define KERN_MAXID 39 /* number of valid kern ids */ +#define KERN_MALLOCSTATS 39 /* node: malloc statistics */ +#define KERN_MAXID 40 /* number of valid kern ids */ #define CTL_KERN_NAMES { \ { 0, 0 }, \ @@ -194,6 +195,7 @@ struct ctlname { { "sysvshm", CTLTYPE_INT }, \ { "arandom", CTLTYPE_INT }, \ { "msgbufsize", CTLTYPE_INT }, \ + { "malloc", CTLTYPE_NODE }, \ } /* @@ -387,6 +389,8 @@ typedef int (sysctlfn) int sysctl_int __P((void *, size_t *, void *, size_t, int *)); int sysctl_rdint __P((void *, size_t *, void *, int)); +int sysctl_quad __P((void *, size_t *, void *, size_t, int64_t *)); +int sysctl_rdquad __P((void *, size_t *, void *, int64_t)); int sysctl_string __P((void *, size_t *, void *, size_t, char *, int)); int sysctl_tstring __P((void *, size_t *, void *, size_t, char *, int)); int sysctl__string __P((void *, size_t *, void *, size_t, char *, int, int)); -- cgit v1.2.3