Thu Jul 25 19:53:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[make.git] / vmsdir.h
blob50b50e8a26fd81c90eccd07dca7b6157deffb945
1 /* dirent.h for vms */
3 #include <rms.h>
5 #define MAXNAMLEN 255
7 typedef unsigned long u_long;
8 typedef unsigned short u_short;
10 struct direct {
11 off_t d_off;
12 u_long d_fileno;
13 u_short d_reclen;
14 u_short d_namlen;
15 char d_name[MAXNAMLEN + 1];
18 #undef DIRSIZ
19 #define DIRSIZ(dp) \
20 (((sizeof (struct direct) - (MAXNAMLEN+1) + ((dp)->d_namlen+1)) + 3) & ~3)
22 #define d_ino d_fileno /* compatability */
26 * Definitions for library routines operating on directories.
29 typedef struct FAB DIR;
31 #ifndef NULL
32 #define NULL 0
33 #endif
34 extern DIR *opendir PARAMS (());
35 extern struct direct *readdir PARAMS ((DIR *dfd));
36 #define rewinddir(dirp) seekdir((dirp), (long)0)
37 extern int closedir PARAMS ((DIR *dfd));
38 extern char *vmsify PARAMS ((char *name, int type));
40 /* EOF */