diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2010-01-15 08:35:48 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2010-01-15 08:35:48 +0000 |
commit | 5f77024f4850b48be48673b098d74f34d773f84e (patch) | |
tree | 7b29a21495f52012a3a36a4301a55364fd3dfa68 /lib/libc/gen/sysconf.3 | |
parent | 7ca00293fe269668390b0afce07991b5b225883e (diff) |
Add support to sysconf(3) for the variables _SC_NPROCESSORS_CONF and
_SC_NPROCESSORS_ONLN, implemented by AIX/Tru64/Solaris/Linux/SCO/FreeBSD/NetBSD.
Bump libc minor.
From Brad, ok deraadt@ guenther@
Diffstat (limited to 'lib/libc/gen/sysconf.3')
-rw-r--r-- | lib/libc/gen/sysconf.3 | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libc/gen/sysconf.3 b/lib/libc/gen/sysconf.3 index 38ed8d1d09e..e5f3caf10d1 100644 --- a/lib/libc/gen/sysconf.3 +++ b/lib/libc/gen/sysconf.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sysconf.3,v 1.25 2008/06/25 17:45:07 jmc Exp $ +.\" $OpenBSD: sysconf.3,v 1.26 2010/01/15 08:35:47 sthen Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -27,7 +27,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: June 25 2008 $ +.Dd $Mdocdate: January 15 2010 $ .Dt SYSCONF 3 .Os .Sh NAME @@ -168,6 +168,10 @@ functions. The maximum length of a login name. .It Li _SC_THREAD_SAFE_FUNCTIONS The level of support for thread-safe (re-entrant) functions. +.It Li _SC_NPROCESSORS_CONF +The number of processors configured. +.It Li _SC_NPROCESSORS_ONLN +The number of processors online (capable of running processes). .El .Sh RETURN VALUES If the call to @@ -202,6 +206,11 @@ The .Fn sysconf function conforms to .St -p1003.1-88 . +The constants +.Li _SC_NPROCESSORS_CONF +and +.Li _SC_NPROCESSORS_ONLN +are not part of the standard, but are provided by many systems. .Sh HISTORY The .Fn sysconf |