summaryrefslogtreecommitdiff
path: root/lib/libc/gen/sysconf.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/sysconf.3')
-rw-r--r--lib/libc/gen/sysconf.313
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