Back to index

tetex-bin  3.0
c-namemx.h
Go to the documentation of this file.
00001 /* c-namemx.h: define NAME_MAX, the maximum length of a single
00002    component in a filename.  No such limit may exist, or may vary
00003    depending on the filesystem.
00004 
00005 Copyright (C) 1992, 93 Free Software Foundation, Inc.
00006 
00007 This library is free software; you can redistribute it and/or
00008 modify it under the terms of the GNU Library General Public
00009 License as published by the Free Software Foundation; either
00010 version 2 of the License, or (at your option) any later version.
00011 
00012 This library is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015 Library General Public License for more details.
00016 
00017 You should have received a copy of the GNU Library General Public
00018 License along with this library; if not, write to the Free Software
00019 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00020 
00021 #ifndef KPATHSEA_C_NAME_MX_H
00022 #define KPATHSEA_C_NAME_MX_H
00023 
00024 #include <kpathsea/c-limits.h>
00025 
00026 /* Most likely the system will truncate filenames if it is not POSIX,
00027    and so we can use the BSD value here.  */
00028 #ifndef _POSIX_NAME_MAX
00029 #define _POSIX_NAME_MAX 255
00030 #endif
00031 
00032 #ifndef NAME_MAX
00033 #define NAME_MAX _POSIX_NAME_MAX
00034 #endif
00035 
00036 #endif /* not KPATHSEA_C_NAME_MX_H */