1267
|
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 |
|
3 filenames as needed. |
|
4 |
|
5 Copyright (C) 1992, 93 Free Software Foundation, Inc. |
|
6 |
|
7 This program is free software; you can redistribute it and/or modify |
|
8 it under the terms of the GNU General Public License as published by |
|
9 the Free Software Foundation; either version 2, or (at your option) |
|
10 any later version. |
|
11 |
|
12 This program is distributed in the hope that it will be useful, |
|
13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 GNU General Public License for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with this program; if not, write to the Free Software |
1315
|
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
1267
|
20 |
|
21 #ifndef KPATHSEA_C_PATH_MX_H |
|
22 #define KPATHSEA_C_PATH_MX_H |
|
23 |
|
24 #include <kpathsea/c-limits.h> |
|
25 |
|
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. */ |
|
28 |
|
29 #ifndef _POSIX_PATH_MAX |
|
30 #define _POSIX_PATH_MAX 255 |
|
31 #endif |
|
32 |
|
33 #ifndef PATH_MAX |
|
34 #ifdef MAXPATHLEN |
|
35 #define PATH_MAX MAXPATHLEN |
|
36 #else |
|
37 #define PATH_MAX _POSIX_PATH_MAX |
|
38 #endif |
|
39 #endif /* not PATH_MAX */ |
|
40 |
|
41 |
|
42 #endif /* not KPATHSEA_C_PATH_MAX_H */ |