SYSCONF(3-POSIX) RISC/os Reference Manual SYSCONF(3-POSIX)
NAME
sysconf - get configurable system variables
SYNOPSIS
#include <unistd.h>
long sysconf(name)
int name;
DESCRIPTION
sysconf allows a program to determine the current value of a
system configurable limit or variable.
The name argument represents the system variable to be
queried and can be one of the following:
name Value System Variable
{SCARGMAX} {ARGMAX}
{SCCHILDMAX} {CHILDMAX}
{SCCLKTCK} {CLKTCK}
{SCNGROUPSMAX} {NGROUPSMAX}
{SCOPENMAX} {OPENMAX}
{SCSTREAMMAX} {STREAMMAX}
{SCTZNAMEMAX} {TZNAMEMAX}
{SCJOBCONTROL} {POSIXJOBCONTROL}
{SCSAVEDIDS} {POSIXSAVEDIDS}
{SCVERSION} {POSIXVERSION}
The system variables are defined in <limits.h> or
<unistd.h>. The symbolic constants that can be used as the
name value are defined in <unistd.h>.
RETURN VALUES
If name is an invalid value, sysconf returns -1 and errno is
set to indicate the error. If the variable corresponding to
name is not defined on the system, sysconf returns -1
without changing errno.
Otherwise, sysconf returns the current value of the variable
indicated by name. The value returned will not be more res-
trictive than the corresponding value when the program was
compiled and will not change during the lifetime of the cal-
ling process.
ERRORS
If the following condition occurs, sysconf returns -1 and
sets errno to the corresponding value:
[EINVAL] name is invalid.
Printed 1/15/91 Page 1