1 /* dirent.h - Declarations for directory reading routines.
5 * Note: The V7 format directory entries used under Minix must be transformed
6 * into a struct dirent with a d_name of at least 15 characters. Given that
7 * we have to transform V7 entries anyhow it is little trouble to let the
8 * routines understand the so-called "flex" directory format too.
14 #include <sys/cdefs.h>
16 /* Name of length len needs _EXTENT(len) extra slots. */
17 #define _EXTENT(len) (((len) + 5) >> 3)
19 /* The block size must be at least 1024 bytes, because otherwise
20 * the superblock (at 1024 bytes) overlaps with other filesystem data.
22 #define _MIN_BLOCK_SIZE 1024
24 /* The below is allocated in some parts of the system as the largest
25 * a filesystem block can be. For instance, the boot monitor allocates
26 * 3 of these blocks and has to fit within 64kB, so this can't be
27 * increased without taking that into account.
29 #define _MAX_BLOCK_SIZE 4096
31 /* This is the block size for the fixed versions of the filesystem (V1/V2) */
32 #define _STATIC_BLOCK_SIZE 1024
34 #endif /* _DIRENT_H */