* Added the test suite to the main distribution.
[make.git] / vmsdir.h
blob4cf1583a1f2c88102f2afa4489626e4c7f846be3
1 /* dirent.h for vms */
3 #include <rms.h>
5 #define MAXNAMLEN 255
7 #ifndef __DECC
8 typedef unsigned long u_long;
9 typedef unsigned short u_short;
10 #endif
12 struct direct {
13 off_t d_off;
14 u_long d_fileno;
15 u_short d_reclen;
16 u_short d_namlen;
17 char d_name[MAXNAMLEN + 1];
20 #undef DIRSIZ
21 #define DIRSIZ(dp) \
22 (((sizeof (struct direct) - (MAXNAMLEN+1) + ((dp)->d_namlen+1)) + 3) & ~3)
24 #define d_ino d_fileno /* compatability */
28 * Definitions for library routines operating on directories.
31 typedef struct FAB DIR;
33 #ifndef NULL
34 #define NULL 0
35 #endif
36 extern DIR *opendir PARAMS (());
37 extern struct direct *readdir PARAMS ((DIR *dfd));
38 #define rewinddir(dirp) seekdir((dirp), (long)0)
39 extern int closedir PARAMS ((DIR *dfd));
40 extern char *vmsify PARAMS ((char *name, int type));
42 /* EOF */