long sysconf( int name );
The value returned is the actual value of the system resource. If the requested configuration name is a feature flag, then 1 is returned if the available and 0 if it is not. On any other error condition, -1 is returned.
This service is the mechanism by which an application determines values for system limits or options at runtime.
Much of the information that may be obtained via sysconf
has equivalent macros in <unistd.h
. However, those
macros reflect conservative limits which may have been altered
by application configuration.
Copyright © 1988-2004 OAR Corporation