sysconf, pathconf, fpathconf

Header Files

#include <unistd.h>

Function Prototype

long sysconf(int name);
long pathconf(const char *pathname, int name);
long fpathconf(int *filedes, int name);
  • name specifies what configuration you want to get
  • return -1 if error occurs

Function

  • Use for getting run-time limit
  • sysconf gets system-wide limit
  • pathconf and fpathconf get limit for specific file