home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / xv221src / unsupt / vms / dirent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-26  |  1.0 KB  |  39 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. /* 12-NOV-1990 added d_namlen field -GJC@MITECH.COM */
  10.  
  11.     /* Data structure returned by READDIR(). */
  12. struct dirent {
  13.     char    d_name[100];        /* File name        */
  14.     int         d_namlen;
  15.     int        vms_verscount;        /* Number of versions    */
  16.     int        vms_versions[20];    /* Version numbers    */
  17. };
  18.  
  19.     /* Handle returned by opendir(), used by the other routines.  You
  20.      * are not supposed to care what's inside this structure. */
  21. typedef struct _dirdesc {
  22.     long            context;
  23.     int                vms_wantversions;
  24.     char            *pattern;
  25.     struct dirent        entry;
  26.     struct dsc$descriptor_s    pat;
  27. } DIR;
  28.  
  29.  
  30. #define rewinddir(dirp)        seekdir((dirp), 0L)
  31.  
  32.  
  33. extern DIR        *opendir();
  34. extern struct dirent    *readdir();
  35. extern long        telldir();
  36. extern void        seekdir();
  37. extern void        closedir();
  38. extern void        vmsreaddirversions();
  39.