Subversion Repositories tendra.SVN

Rev

Rev 72 | Rev 77 | Go to most recent revision | 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 {
        int      d_fileno;            /* file number of entry */
        int     d_off;               /* directory offset of entry */
        short  d_reclen;            /* length of this record */
        char  d_type;              /* file type, see below */
        char  d_pad0;
        short d_namlen;            /* length of string in d_name */
        short d_pad1;
#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