Use intern GENMF function.
[AROS.git] / compiler / posixc / pathconf.c
blobc788ae1638c4db1c4b44e50cd8cd832ac4e4bc1c
1 #include <limits.h> /* _POSIX_*_MAX */
2 #include <stdio.h> /* FILENAME_MAX */
3 #include <unistd.h> /* _PC_* */
5 /* FIXME: add autodoc */
6 long pathconf(const char *path, int name)
8 /* TODO: Implement pathconf() properly */
9 switch (name) {
10 case _POSIX_NAME_MAX:
11 return FILENAME_MAX;
12 case _PC_PATH_MAX:
13 return PATH_MAX;
14 default:
15 return -1;