1 /* <dir.h> -- definitions for 4.2BSD-compatible directory access.
2 last edit: 09-Jul-1983 D A Gwyn. */
5 # if !defined (FAB$C_BID)
8 # if !defined (NAM$C_BID)
11 # if !defined (RMS$_SUC)
17 /* Size of directory block. */
20 /* NOTE: MAXNAMLEN must be one less than a multiple of 4 */
23 # define MAXNAMLEN (DIR$S_NAME + 7) /* 80 plus room for version #. */
24 # define MAXFULLSPEC NAM$C_MAXRSS /* Maximum full spec */
26 # define MAXNAMLEN 15 /* Maximum filename length. */
29 /* Data from readdir (). */
31 long d_ino
; /* Inode number of entry. */
32 unsigned short d_reclen
; /* Length of this record. */
33 unsigned short d_namlen
; /* Length of string in d_name. */
34 char d_name
[MAXNAMLEN
+ 1]; /* Name of file. */
37 /* Stream data from opendir (). */
39 int dd_fd
; /* File descriptor. */
40 int dd_loc
; /* Offset in block. */
41 int dd_size
; /* Amount of valid data. */
42 char dd_buf
[DIRBLKSIZ
]; /* Directory block. */
45 extern DIR *opendir ();
46 extern struct direct
*readdir ();
47 extern long telldir ();
48 extern void seekdir (), closedir ();
50 #define rewinddir(dirp) seekdir (dirp, 0L)