sysconf(3C) (C Programming Language Utilities) sysconf(3C)
NAME
sysconf - get configurable system variables
SYNOPSIS
#include <unistd.h>
long sysconf(int name);
DESCRIPTION
The sysconf function provides a method for the application to
determine the current value of a configurable system limit or option
(variable).
The name argument represents the system variable to be queried. The
following table lists the minimal set of system variables from
<limits.h> and <unistd.h> that can be returned by sysconf, and the
symbolic constants, defined in <unistd.h> that are the corresponding
values used for name.
________________________________________
| NAME RETURN VALUE |
|_______________________________________|
| SCARGMAX ARGMAX |
| SCCHILDMAX CHILDMAX |
| SCCLKTCK CLKTCK |
| SCNGROUPSMAX NGROUPSMAX |
| SCOPENMAX OPENMAX |
| SCPASSMAX PASSMAX |
| SCPAGESIZE PAGESIZE |
| SCJOBCONTROL POSIXJOBCONTROL|
| SCSAVEDIDS POSIXSAVEDIDS |
| SCVERSION POSIXVERSION |
| SCXOPENVERSION XOPENVERSION |
| SCLOGNAMEMAX LOGNAMEMAX |
|_______________________________________|
The value of CLKTCK may be variable and it should not be assumed
that CLKTCK is a compile-time constant. The value of CLKTCK is the
same as the value of sysconf(SCCLKTCK).
SEE ALSO
fpathconf(3C).
DIAGNOSTICS
If name is an invalid value, sysconf will return -1 and set errno to
indicate the error. If sysconf fails due to a value of name that is
not defined on the system, the function will return a value of -1
without changing the value of errno.
NOTES
A call to setrlimit may cause the value of OPENMAX to change.
8/91 Page 1