toaruos/libc/unistd/pathconf.c
2021-05-31 10:54:11 +09:00

15 lines
231 B
C

#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <unistd.h>
long pathconf(const char *path, int name) {
switch (name) {
case _PC_PATH_MAX:
return PATH_MAX;
default:
errno = EINVAL;
return -1;
}
}