home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / linux / backup / star-1.3.1.tar.gz / star-1.3.1.tar / star-1.3.1 / include / maxpath.h < prev    next >
C/C++ Source or Header  |  1998-09-13  |  2KB  |  56 lines

  1. /* @(#)maxpath.h    1.3 98/09/13 Copyright 1985, 1995, 1998 J. Schilling */
  2. /*
  3.  *    Definitions for dealing with statically limitations on pathnames
  4.  *
  5.  *    Copyright (c) 1985, 1995, 1998 J. Schilling
  6.  */
  7. /*
  8.  * This program is free software; you can redistribute it and/or modify
  9.  * it under the terms of the GNU General Public License as published by
  10.  * the Free Software Foundation; either version 2, or (at your option)
  11.  * any later version.
  12.  *
  13.  * This program 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
  16.  * GNU General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU General Public License
  19.  * along with this program; see the file COPYING.  If not, write to
  20.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. #ifndef    _MAXPATH_H
  24. #define    _MAXPATH_H
  25.  
  26. #ifndef    _DIRDEFS_H
  27. #include <dirdefs.h>            /* Includes mconfig.h if needed         */
  28. #endif
  29.  
  30. #ifdef    JOS
  31. #    define    MAXPATHNAME    128
  32. #    define    MAXFILENAME    30
  33. #else
  34.  
  35. #    ifdef    MAXPATHLEN
  36. #        define    MAXPATHNAME    MAXPATHLEN
  37. #    else
  38. #        define    MAXPATHNAME    256        /* Is there a limit? */
  39. #    endif
  40.  
  41. /*
  42.  * Don't use defaults here to allow recognition of problems.
  43.  */
  44. #    ifdef    MAXNAMELEN
  45. #        define    MAXFILENAME    MAXNAMELEN    /* From sys/param.h  */
  46. #    else
  47. #    ifdef    MAXNAMLEN
  48. #        define    MAXFILENAME    MAXNAMLEN    /* From dirent.h     */
  49. #    else
  50. #        define    MAXFILENAME    DIRSIZ        /* From sys/dir.h    */
  51. #    endif
  52. #    endif
  53. #endif    /* JOS */
  54.  
  55. #endif    /* _MAXPATH_H */
  56.