Renamed include file aros/_timeval.h to aros/types/timeval_s.h.
[AROS.git] / compiler / clib / pathconf.c
blob3f2f1e9b989773e564269e3b131fdf7669abe21a
1 #include <limits.h> /* _POSIX_*_MAX */
2 #include <stdio.h> /* FILENAME_MAX */
3 #include <unistd.h> /* _PC_* */
5 /* just a hack for grub2 */
6 long pathconf(const char *path, int name)
8 switch (name) {
9 case _POSIX_NAME_MAX:
10 return FILENAME_MAX;
11 case _PC_PATH_MAX:
12 return PATH_MAX;
13 default:
14 return -1;