1 /* @(#)dirent.h 1.7 89/06/25 SMI */
4 * Filesystem-independent directory information.
14 /* Make sure we don't get the V7 RTL dirent functions. These are broken. */
17 # define __CRTL_VER __VMS_VER
19 #if __CRTL_VER >= 70000000
25 #define opendir goo_opendir
26 #define readdir goo_readdir
27 #define closedir goo_closedir
28 #define seekdir goo_seekdir
29 #define telldir goo_telldir
30 #define rewinddir goo_rewindir
34 #define d_ino d_fileno /* compatability */
38 #endif /* !_POSIX_SOURCE */
41 * Definitions for library routines operating on directories.
43 typedef struct __dirdesc {
44 unsigned long dd_fd; /* file descriptor */
45 long dd_loc; /* buf offset of entry from last readddir() */
46 long dd_size; /* amount of valid data in buffer */
47 long dd_bsize; /* amount of entries read at a time */
48 long dd_off; /* Current offset in dir (for telldir) */
49 char *dd_buf; /* directory data buffer */
52 #include "vms_sys_dirent.h"
54 extern DIR *opendir(char *dirname);
55 extern struct dirent *readdir(DIR *dirp);
56 extern void closedir(DIR *dirp);
58 extern void seekdir(DIR *dirp, int loc);
59 extern long telldir(DIR *dirp);
60 #endif /* POSIX_SOURCE */
61 extern void rewinddir(DIR *dirp);
67 #endif /* !__dirent_h */