Subversion Repositories tendra.SVN

Rev

Rev 76 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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