More Linux POSIX Testing
The machine a program may run on will have different capabilities depending to its setup and how the kernel was compiled. To test the POSIX capability of the machine at runtime to support POSIX use the following procedures:
- long sysconf(int name);
- long pathconf(const char *pathname, int name);
- long fpathconf(int fd, int name);
See the sysconf(3), pathconf(3), and fpathconf(3) man pages for information on the values supported by the function.
System POSIX Options
POSIX.1 Option values
- _SC_JOB_CONTROL
- _SC_SAVED_JOBS
- _SC_VERSION
- _SC_ARG_MAX
- _SC_CHILD_MAX
- _SC_CLK_TCK
- _SC_NGROUPS_MAX
- _SC_OPEN_MAX
- _SC_STREAM_MAX
- _SC_TZNAME_MAX
|
|