home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / ARCHIVERS / lhasrc.lzh / lhdir.h < prev    next >
Text File  |  1992-05-10  |  886b  |  37 lines

  1. /*----------------------------------------------------------------------*/
  2. /*        Directory access routine for LHarc UNIX            */
  3. /*        This is part of LHarc UNIX Archiver Driver        */
  4. /*        Copyright(C) MCMLXXXIX  Yooichi.Tagawa            */
  5. /*    Emulate opendir(),readdir(),closedir() function for LHarc    */
  6. /*                                    */
  7. /*  V0.00  Original                1988.05.31  Y.Tagawa    */
  8. /*  V0.03  Release #3 for LHarc UNIX        1988.07.02  Y.Tagawa    */
  9. /*  V1.00  Fixed                1989.09.22  Y.Tagawa    */
  10. /*----------------------------------------------------------------------*/
  11.  
  12.  
  13. /* DIRBLKSIZ must be sizeof (SYSTEM struct direct) * N   !!! */
  14.  
  15. #ifndef DIRBLKSIZ
  16. #define DIRBLKSIZ    512
  17. #endif
  18.  
  19. struct direct {
  20.   int    d_ino;
  21.   int    d_namlen;
  22.   char    d_name[256];
  23. };
  24.  
  25. typedef struct {
  26.   int    dd_fd;
  27.   int    dd_loc;
  28.   int    dd_size;
  29.   char    dd_buf[DIRBLKSIZ];
  30. } DIR;
  31.  
  32.  
  33. extern DIR *opendir ();
  34. extern struct direct *readdir ();
  35. extern closedir ();
  36.  
  37.