Subversion Repositories tendra.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
112 7u83 1
#ifndef __TENDRA_DIRENT_H
2
#define __TENDRA_DIRENT_H
3
 
4
 
5
 
6
struct _dirdesc;
7
typedef struct _dirdesc DIR;
8
 
9
 
10
 
11
struct dirent {
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 */
18
	/* uint16_t	d_pad1; */
19
 
20
	uint32_t	d_ino;
21
#if __BSD_VISIBLE
22
#define	MAXNAMLEN	255
23
	char		d_name[MAXNAMLEN + 1];	/* name must be no longer
24
						 * than this */
25
#else
26
	char		d_name[255 + 1];	/* name must be no longer
27
						 * than this */
28
#endif
29
};
30
 
31
 
32
#endif