home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume18 / vtree / customize.h next >
C/C++ Source or Header  |  1989-04-19  |  951b  |  47 lines

  1. /* 
  2.    This is the customizations file.  It changes our ideas of
  3.    how to read directories.
  4. */
  5.  
  6. #define NAMELEN    512        /* max size of a full pathname */
  7.  
  8. #ifdef BSD
  9. #    include        <sys/dir.h>
  10. #    define    OPEN    DIR
  11. #    define    READ    struct direct
  12. #    define    NAME(x)    ((x).d_name)
  13. #endif
  14.  
  15. #ifdef SCO_XENIX
  16. #    include <sys/ndir.h>
  17. #    define    OPEN    DIR
  18. #    define    READ    struct direct
  19. #    define    NAME(x)    ((x).d_name)
  20. #endif
  21.  
  22. #ifdef SYS_V
  23.  /* Customize this.  This is part of Doug Gwyn's package for */
  24.  /* reading directories.  If you've put this file somewhere */
  25.  /* else, edit the next line. */
  26.  
  27. #    include        <sys/dirent.h>
  28.  
  29. #    define    OPEN    struct direct
  30. #    define    READ    struct dirent
  31. #    define    NAME(x)    ((x).d_name)
  32. #endif
  33.  
  34. #ifdef SYS_III
  35. #    define    OPEN    FILE
  36. #    define    READ    struct direct
  37. #    define    NAME(x)    ((x).d_name)
  38. #    define    INO(x)    ((x).d_ino)
  39.  
  40. #    include        "direct.c"
  41.  
  42. #endif
  43.  
  44. #if !(defined(BSD) || !defined(SYS_V) || !defined(SYS_III) || !defined(SCO_XENIX))
  45. "This is an Error"
  46. #endif
  47.