Subversion Repositories tendra.SVN

Rev

Rev 79 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
76 7u83 1
#ifndef __TENDRA_DIRENT_H
2
#define __TENDRA_DIRENT_H
3
 
77 7u83 4
 
5
 
72 7u83 6
struct _dirdesc;
7
typedef struct _dirdesc DIR;
8
 
9
 
77 7u83 10
 
72 7u83 11
struct dirent {
77 7u83 12
	ino_t		d_fileno;	/* file number of entry */
13
	off_t		d_off;	/* directory offset of entry */
14
	uint16_t	d_reclen;	/* length of this record */
15
	uint8_t		d_type;	/* file type, see below */
16
	uint8_t		d_pad0;
17
	uint16_t	d_namlen;	/* length of string in d_name */
79 7u83 18
	/* uint16_t	d_pad1; */
77 7u83 19
 
79 7u83 20
	uint32_t	d_ino;
72 7u83 21
#if __BSD_VISIBLE
77 7u83 22
#define	MAXNAMLEN	255
23
	char		d_name[MAXNAMLEN + 1];	/* name must be no longer
24
						 * than this */
72 7u83 25
#else
77 7u83 26
	char		d_name[255 + 1];	/* name must be no longer
27
						 * than this */
72 7u83 28
#endif
29
};
30
 
77 7u83 31
 
76 7u83 32
#endif