sysconf

Returns system variables.

Library:LibC
Classification:POSIX
Service:File and Directory I/O

Syntax

  #include <unistd.h> 
   
  long sysconf (
     int   name);
  

Parameters

name

(IN) Specifies a system variable. For a list of supported flags, see System Configuration Values.

Return Values

If successful, returns the value of the variable specified by the name parameter. Otherwise, returns -1 and sets errno to the following:

Decimal

Constant

Description

9

EINVAL

The name parameter is invalid.

Remarks

The sysconf function provides a way for applications to determine the current value of configurable system variables.

See Also