Copyright clean-up (part 1):
[AROS.git] / compiler / posixc / pathconf.c
blob6656559031b1dce8b409c7bb8dac7f22c03da292
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <limits.h> /* _POSIX_*_MAX */
7 #include <stdio.h> /* FILENAME_MAX */
8 #include <unistd.h> /* _PC_* */
10 /* FIXME: add autodoc */
11 long pathconf(const char *path, int name)
13 /* TODO: Implement pathconf() properly */
14 switch (name) {
15 case _POSIX_NAME_MAX:
16 return FILENAME_MAX;
17 case _PC_PATH_MAX:
18 return PATH_MAX;
19 default:
20 return -1;