diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2002-03-23 13:30:25 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2002-03-23 13:30:25 +0000 |
commit | 6f28e589c4cd1bc8d86baf0ad9ac00c75e0e2489 (patch) | |
tree | 2dd3e3a453b121b2e09f56e366604ef488bb3aec /usr.sbin/config/ukc.h | |
parent | d5dbb93c5f932440dcab912174cdcaace0478710 (diff) |
small cleanups:
ansi prototypes,
help formating,
common code to handle integer parameters.
Let SystemV shm parameters be settable.
Diffstat (limited to 'usr.sbin/config/ukc.h')
-rw-r--r-- | usr.sbin/config/ukc.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.sbin/config/ukc.h b/usr.sbin/config/ukc.h index b8893d2f812..9c106cc636d 100644 --- a/usr.sbin/config/ukc.h +++ b/usr.sbin/config/ukc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ukc.h,v 1.8 2002/02/17 23:01:19 maja Exp $ */ +/* $OpenBSD: ukc.h,v 1.9 2002/03/23 13:30:24 espie Exp $ */ /* * Copyright (c) 1999-2001 Mats O Jansson. All rights reserved. @@ -53,7 +53,9 @@ #define I_NMBCLUSTERS 18 #define I_BUFCACHEPCT 19 #define I_NKMEMPG 20 -#define NLENTRIES 21 +#define I_SHMSEG 21 +#define I_SHMMAXPGS 22 +#define NLENTRIES 23 #ifdef UKC_MAIN struct nlist nl[] = { @@ -78,6 +80,8 @@ struct nlist nl[] = { { "_nmbclust" }, { "_bufcachepercent" }, { "_nkmempages" }, + { "_shmseg" }, + { "_shmmaxpgs" }, { NULL }, }; struct nlist knl[] = { @@ -102,6 +106,8 @@ struct nlist knl[] = { { "_nmbclust" }, { "_bufcachepercent" }, { "_nkmempages" }, + { "_shmseg" }, + { "_shmmaxpgs" }, { NULL }, }; int maxdev = 0; @@ -137,7 +143,7 @@ int more(); void pnum(int); void pdevnam(short); void pdev(short); -int number(char *, int *); +int number(const char *, int *); int device(char *, int *, short *, short *); int attr(char *, int *); void modify(char *, int *); |