1 /* c-pathmx.h: define PATH_MAX, the maximum length of a filename.
2 Since no such limit may exist, it's preferable to dynamically grow
5 Copyright 1992, 1993, 2008 Karl Berry.
6 Copyright 2005 Olaf Weber.
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public License
19 along with this library; if not, see <http://www.gnu.org/licenses/>. */
21 #ifndef KPATHSEA_C_PATH_MX_H
22 #define KPATHSEA_C_PATH_MX_H
24 #include <kpathsea/c-limits.h>
26 /* Cheat and define this as a manifest constant no matter what, instead
27 of using pathconf. I forget why we want to do this. */
29 #ifndef _POSIX_PATH_MAX
30 #define _POSIX_PATH_MAX 255
35 #define PATH_MAX MAXPATHLEN
37 #define PATH_MAX _POSIX_PATH_MAX
39 #endif /* not PATH_MAX */
42 #endif /* not KPATHSEA_C_PATH_MAX_H */