system-limits-and-options

Table of Contents

System Limits and Options

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.

System Limits

Retrieving System Limits (and Options) at Run Time

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

Indeterminate Limits

System Options

Prev: times-and-dates Next: retrieving-system-and-process-information