Rev 77 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#ifndef __TENDRA_DIRENT_H
#define __TENDRA_DIRENT_H
struct _dirdesc;
typedef struct _dirdesc DIR;
struct dirent {
ino_t d_fileno; /* file number of entry */
off_t d_off; /* directory offset of entry */
uint16_t d_reclen; /* length of this record */
uint8_t d_type; /* file type, see below */
uint8_t d_pad0;
uint16_t d_namlen; /* length of string in d_name */
/* uint16_t d_pad1; */
uint32_t d_ino;
#if __BSD_VISIBLE
#define MAXNAMLEN 255
char d_name[MAXNAMLEN + 1]; /* name must be no longer
* than this */
#else
char d_name[255 + 1]; /* name must be no longer
* than this */
#endif
};
#endif