Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/dirent.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | struct dirent { | ||||
ino_t d_fileno; /* file number of entry */ | ino_t d_fileno; /* file number of entry */ | ||||
off_t d_off; /* directory offset of entry */ | off_t d_off; /* directory offset of entry */ | ||||
__uint16_t d_reclen; /* length of this record */ | __uint16_t d_reclen; /* length of this record */ | ||||
__uint8_t d_type; /* file type, see below */ | __uint8_t d_type; /* file type, see below */ | ||||
__uint8_t d_pad0; | __uint8_t d_pad0; | ||||
__uint16_t d_namlen; /* length of string in d_name */ | __uint16_t d_namlen; /* length of string in d_name */ | ||||
__uint16_t d_pad1; | __uint16_t d_pad1; | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
#define MAXNAMLEN 255 | #define MAXNAMLEN 1023 | ||||
char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ | char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ | ||||
#else | #else | ||||
char d_name[255 + 1]; /* name must be no longer than this */ | char d_name[1023 + 1]; /* name must be no longer than this */ | ||||
#endif | #endif | ||||
}; | }; | ||||
#if defined(_WANT_FREEBSD11_DIRENT) || defined(_KERNEL) | #if defined(_WANT_FREEBSD11_DIRENT) || defined(_KERNEL) | ||||
struct freebsd11_dirent { | struct freebsd11_dirent { | ||||
__uint32_t d_fileno; /* file number of entry */ | __uint32_t d_fileno; /* file number of entry */ | ||||
__uint16_t d_reclen; /* length of this record */ | __uint16_t d_reclen; /* length of this record */ | ||||
__uint8_t d_type; /* file type, see below */ | __uint8_t d_type; /* file type, see below */ | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |