mirror of
https://github.com/openbsd/src.git
synced 2025-01-04 23:35:36 -08:00
Add sysconf() extensions PHYS_PAGES, AVPHYS_PAGES, NPROCESSORS_CONF
and NPROCESSORS_ONLN. OK guenther@
This commit is contained in:
parent
0791ac16ed
commit
2a63b04941
@ -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 }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user