summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/get_nprocs.3c
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2014-12-21 23:44:00 +0000
committerRobert Mustacchi <rm@joyent.com>2014-12-27 08:30:24 -0800
commitd2b9ba291ef0d1dc8807b6d46996674c723924d0 (patch)
treedc61144ee235d910456e1fdb12bf76806337e7be /usr/src/man/man3c/get_nprocs.3c
parentbad51a906c423d0d7ab33fcc1a4e317d789e3c49 (diff)
downloadillumos-joyent-d2b9ba291ef0d1dc8807b6d46996674c723924d0.tar.gz
5475 Need manuals for get_nprocs() and get_nprocs_conf()
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/man/man3c/get_nprocs.3c')
-rw-r--r--usr/src/man/man3c/get_nprocs.3c59
1 files changed, 59 insertions, 0 deletions
diff --git a/usr/src/man/man3c/get_nprocs.3c b/usr/src/man/man3c/get_nprocs.3c
new file mode 100644
index 0000000000..4d73833b56
--- /dev/null
+++ b/usr/src/man/man3c/get_nprocs.3c
@@ -0,0 +1,59 @@
+.\"
+.\" This file and its contents are supplied under the terms of the
+.\" Common Development and Distribution License ("CDDL"), version 1.0.
+.\" You may only use this file in accordance with the terms of version
+.\" 1.0 of the CDDL.
+.\"
+.\" A full copy of the text of the CDDL should have accompanied this
+.\" source. A copy of the CDDL is also available via the Internet at
+.\" http://www.illumos.org/license/CDDL.
+.\"
+.\"
+.\" Copyright (c) 2014 Joyent, Inc.
+.\"
+.Dd "Dec 21, 2014"
+.Dt GET_NPROCS 3C
+.Os
+.Sh NAME
+.Nm get_nprocs ,
+.Nm get_nprocs_conf
+.Nd get number of processors
+.Sh SYNOPSIS
+.In unistd.h
+.Ft int
+.Fo get_nprocs
+.Fa void
+.Fc
+.Ft int
+.Fo get_nprocs_conf
+.Fa void
+.Fc
+.Sh DESCRIPTION
+The
+.Fn get_nprocs
+and
+.Fn get_nprocs_conf
+functions are provided for compatibility with other systems and are
+equivalent to calling
+.Fn sysconf _SC_NPROCESSORS_ONLN
+and
+.Fn sysconf _SC_NPROCESSORS_CONF
+respectively.
+.Sh RETURN VALUES
+The
+.Fn get_nprocs
+function returns the number of processors that are currently online. The
+.Fn get_nprocs_conf
+function returns the number of processors that the operating system has
+configured.
+.Sh INTERFACE STABILITY
+.Sy Committed .
+.Sh MT-LEVEL
+.Sy MT-Safe ,
+.Sy Async-Signal-Safe
+.Sh SEE ALSO
+.Xr psrinfo 1M ,
+.Xr processor_info 2 ,
+.Xr sysconf 3C ,
+.Xr attributes 5 ,
+.Xr standards 5