/* @(#)ndir.h 4.4 3/30/82 */
* This sets the "page size" for directories.
* Requirements are DEV_BSIZE <= DIRBLKSIZ <= MINBSIZE with
* DIRBLKSIZ a power of two.
* Dennis Ritchie feels that directory pages should be atomic
* operations to the disk, so we use DEV_BSIZE.
#define DIRBLKSIZ DEV_BSIZE
* This limits the directory name length. Its main constraint
* is that it appears twice in the user structure. (u. area)
char d_name
[MAXNAMLEN
+ 1];
((sizeof(struct direct) - MAXNAMLEN + (dp)->d_namlen + sizeof(ino_t) - 1) &\
typedef struct _dirdesc
DIR;
* functions defined on directories
extern struct direct
*readdir();
#define rewinddir(dirp) seekdir((dirp), 0)