home *** CD-ROM | disk | FTP | other *** search
- /* sys/dirent.h (c) Copyright 1990 H.Rogers */
-
- #ifndef __SYS_DIRENT_H
- #define __SYS_DIRENT_H
-
- #ifndef __SYS_TYPES_H
- #include "sys/types.h"
- #endif
-
- #define MAXNAMLEN 10 /* ADFS braindamage */
-
- /* This isn't really how ADFS stores files in a directory, but
- * since no I/O is permitted on directories anyway this doesn't
- * really matter. */
-
- struct direct
- {
- off_t d_off; /* offset of next disk directory entry */
- ino_t d_fileno; /* file number of entry */
- size_t d_reclen; /* length of this record */
- size_t d_namlen; /* length of d_name */
- char d_name[MAXNAMLEN + 1]; /* name */
- };
-
- #define DIRSIZ(dp) (((sizeof(struct direct) - \
- (MAXNAMLEN + 1) + ((dp)->d_namlen + 1)) + \
- (sizeof(size_t) - 1)) & ~(sizeof(size_t) - 1))
-
- #endif
-