sysconf,pathconf, and fpathconf
Answer
Rule | sysconf | pathconf | fpathconf |
---|---|---|---|
Definition | Use to get configuration information at run time | gets a value for configuration option name for the filename path. | gets a value for the configuration option name for the open file descriptor fd. |
Prototype | #include<unistd.h> long sysconf(int name); |
#include<unistd.h> long pathconf(char *path, int name); |
#include<unistd.h> long fpathconf(int fd, int name); |
The following test_config.C illustrates the use of sysconf, pathcong and fpathconf:
No comments:
For Query and doubts!