Prev: times-and-dates Next: retrieving-system-and-process-information
Unix implementations must provide limits on system features and resources, like:
Some values should be determined at compile time and some at runtime.
For the runtime cases, sysconf
, pathconf
, and
fpathconf
can be used to check for implementation limits
and options.
To retrieve limits, use sysconf
.
#include <unistd.h>
long sysconf(int name); // Returns value of limit specified by name, or –1 if limit is indeterminate or an error occurred
Prev: times-and-dates Next: retrieving-system-and-process-information