Don't put .cvsignore files in the distributed tar file.
[make/kirr.git] / vmsdir.h
blob59034759062866054076f68fa8518cfc1294aea6
1 /* dirent.h for vms */
3 #ifndef VMSDIR_H
4 #define VMSDIR_H
6 #include <rms.h>
8 #define MAXNAMLEN 255
10 #ifndef __DECC
11 #if !defined (__GNUC__) && !defined (__ALPHA)
12 typedef unsigned long u_long;
13 typedef unsigned short u_short;
14 #endif
15 #endif
17 struct direct
19 off_t d_off;
20 u_long d_fileno;
21 u_short d_reclen;
22 u_short d_namlen;
23 char d_name[MAXNAMLEN + 1];
26 #undef DIRSIZ
27 #define DIRSIZ(dp) \
28 (((sizeof (struct direct) \
29 - (MAXNAMLEN+1) \
30 + ((dp)->d_namlen+1)) \
31 + 3) & ~3)
33 #define d_ino d_fileno /* compatability */
37 * Definitions for library routines operating on directories.
40 typedef struct DIR
42 struct direct dir;
43 char d_result[MAXNAMLEN + 1];
44 #if defined (__ALPHA) || defined (__DECC)
45 struct FAB fab;
46 #else
47 struct fabdef fab;
48 #endif
49 } DIR;
51 #ifndef NULL
52 #define NULL 0
53 #endif
55 extern DIR *opendir PARAMS (());
56 extern struct direct *readdir PARAMS ((DIR *dfd));
57 #define rewinddir(dirp) seekdir((dirp), (long)0)
58 extern int closedir PARAMS ((DIR *dfd));
59 extern char *vmsify PARAMS ((char *name, int type));
61 #endif /* VMSDIR_H */