| 1 |
/* c-namemx.h: define NAME_MAX, the maximum length of a single |
| 2 |
component in a filename. No such limit may exist, or may vary |
| 3 |
depending on the filesystem. |
| 4 |
|
| 5 |
Copyright 1992, 1993, 2008 Karl Berry. |
| 6 |
Copyright 2005 Olaf Weber. |
| 7 |
|
| 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. |
| 12 |
|
| 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. |
| 17 |
|
| 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/>. */ |
| 20 |
|
| 21 |
#ifndef KPATHSEA_C_NAME_MX_H |
| 22 |
#define KPATHSEA_C_NAME_MX_H |
| 23 |
|
| 24 |
#include <kpathsea/c-limits.h> |
| 25 |
|
| 26 |
/* Most likely the system will truncate filenames if it is not POSIX, |
| 27 |
and so we can use the BSD value here. */ |
| 28 |
#ifndef _POSIX_NAME_MAX |
| 29 |
#define _POSIX_NAME_MAX 255 |
| 30 |
#endif |
| 31 |
|
| 32 |
#ifndef NAME_MAX |
| 33 |
#define NAME_MAX _POSIX_NAME_MAX |
| 34 |
#endif |
| 35 |
|
| 36 |
#endif /* not KPATHSEA_C_NAME_MX_H */ |