diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-01-03 19:21:00 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-01-03 19:21:00 +0000 |
commit | 56454668b619b353e3cf18abd110fc3b805b32a9 (patch) | |
tree | ce9d1d33534964aafedc8c48817df55f81cd1780 /sys | |
parent | c271b898f172e8564d543d251f1b7d658dcb72f2 (diff) |
Add sysctl_quad/sysctl_rdquad routines.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/sysctl.h | 8 |
1 files changed, 6 insertions, 2 deletions
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)); |