diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-03-22 01:14:35 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-03-22 01:14:35 +0000 |
commit | cd3ede05f5770e42947fe97dfcf45756c184f3d5 (patch) | |
tree | 7a28ac4dcef61c506087a335684355dacda6259b /usr.bin/getconf/getconf.c | |
parent | aee4d34a069aedd1772e89bf2e2a8b4b1f6112a3 (diff) |
Add sysconf() extensions PHYS_PAGES, AVPHYS_PAGES, NPROCESSORS_CONF
and NPROCESSORS_ONLN. OK guenther@
Diffstat (limited to 'usr.bin/getconf/getconf.c')
-rw-r--r-- | usr.bin/getconf/getconf.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/getconf/getconf.c b/usr.bin/getconf/getconf.c index b4593c705e2..e18779c8c7d 100644 --- a/usr.bin/getconf/getconf.c +++ b/usr.bin/getconf/getconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getconf.c,v 1.16 2013/03/28 03:29:45 guenther Exp $ */ +/* $OpenBSD: getconf.c,v 1.17 2015/03/22 01:14:34 millert Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -165,6 +165,12 @@ const struct conf_variable conf_table[] = constant_row(_XOPEN_NAME_MAX) constant_row(_XOPEN_PATH_MAX) + /* Extensions */ + sysconf_row(PHYS_PAGES) + sysconf_row(AVPHYS_PAGES) + sysconf_row(NPROCESSORS_CONF) + sysconf_row(NPROCESSORS_ONLN) + { NULL } }; |