home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1689 / dirent.h next >
C/C++ Source or Header  |  1990-12-28  |  915b  |  36 lines

  1. /*
  2. **  Header file for VMS readdir() routines.
  3. **  Written by Rich $alz, <rsalz@bbn.com> in August, 1990.
  4. **  This code has no copyright.
  5. **
  6. **  You must #include <descrip.h> before this file.
  7. */
  8.  
  9.     /* Data structure returned by READDIR(). */
  10. struct dirent {
  11.     char    d_name[100];        /* File name        */
  12.     int        vms_verscount;        /* Number of versions    */
  13.     int        vms_versions[20];    /* Version numbers    */
  14. };
  15.  
  16.     /* Handle returned by opendir(), used by the other routines.  You
  17.      * are not supposed to care what's inside this structure. */
  18. typedef struct _dirdesc {
  19.     long            context;
  20.     int                vms_wantversions;
  21.     char            *pattern;
  22.     struct dirent        entry;
  23.     struct dsc$descriptor_s    pat;
  24. } DIR;
  25.  
  26.  
  27. #define rewinddir(dirp)        seekdir((dirp), 0L)
  28.  
  29.  
  30. extern DIR        *opendir();
  31. extern struct dirent    *readdir();
  32. extern long        telldir();
  33. extern void        seekdir();
  34. extern void        closedir();
  35. extern void        vmsreaddirversions();
  36.