GET_NPROCS(3C) Standard C Library Functions GET_NPROCS(3C)
get_nprocs, get_nprocs_conf - get number of processors
#include <unistd.h>
int
get_nprocs(void);
int
get_nprocs_conf(void);
The get_nprocs() and get_nprocs_conf() functions are provided for
compatibility with other systems and are equivalent to calling
sysconf(_SC_NPROCESSORS_ONLN) and sysconf(_SC_NPROCESSORS_CONF)
respectively.
The get_nprocs() function returns the number of processors that are
currently online. The get_nprocs_conf() function returns the number of
processors that the operating system has configured.
Committed.
MT-LEVEL
MT-Safe, Async-Signal-Safe
processor_info(2), sysconf(3C), attributes(7), standards(7), psrinfo(8)
illumos December 21, 2014 illumos
NAME
get_nprocs, get_nprocs_conf - get number of processors
SYNOPSIS
#include <unistd.h>
int
get_nprocs(void);
int
get_nprocs_conf(void);
DESCRIPTION
The get_nprocs() and get_nprocs_conf() functions are provided for
compatibility with other systems and are equivalent to calling
sysconf(_SC_NPROCESSORS_ONLN) and sysconf(_SC_NPROCESSORS_CONF)
respectively.
RETURN VALUES
The get_nprocs() function returns the number of processors that are
currently online. The get_nprocs_conf() function returns the number of
processors that the operating system has configured.
INTERFACE STABILITY
Committed.
MT-LEVEL
MT-Safe, Async-Signal-Safe
SEE ALSO
processor_info(2), sysconf(3C), attributes(7), standards(7), psrinfo(8)
illumos December 21, 2014 illumos