Back to index

tetex-bin  3.0
c-pathmx.h
Go to the documentation of this file.
00001 /* c-pathmx.h: define PATH_MAX, the maximum length of a filename.
00002    Since no such limit may exist, it's preferable to dynamically grow
00003    filenames as needed.
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_PATH_MX_H
00022 #define KPATHSEA_C_PATH_MX_H
00023 
00024 #include <kpathsea/c-limits.h>
00025 
00026 /* Cheat and define this as a manifest constant no matter what, instead
00027    of using pathconf.  I forget why we want to do this.  */
00028 
00029 #ifndef _POSIX_PATH_MAX
00030 #define _POSIX_PATH_MAX 255
00031 #endif
00032 
00033 #ifndef PATH_MAX
00034 #ifdef MAXPATHLEN
00035 #define PATH_MAX MAXPATHLEN
00036 #else
00037 #define PATH_MAX _POSIX_PATH_MAX
00038 #endif
00039 #endif /* not PATH_MAX */
00040 
00041 
00042 #endif /* not KPATHSEA_C_PATH_MAX_H */