Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

dirent.h

00001 #ifndef _DIRENT_H
00002 #define _DIRENT_H
00003 
00004 #include <sys/types.h>
00005 
00006 struct dirent {
00007     ino_t   d_ino;      /* inode number of entry */
00008     off_t   d_off;      /* offset of disk directory entry */
00009     wchar_t d_reclen;   /* length of this record */
00010     char    d_name[256];
00011 };
00012 
00013 typedef struct _dircontents {
00014     char *_d_entry;
00015     struct _dircontents *_d_next;
00016 } DIRCONT;
00017 
00018 typedef struct _dirdesc {
00019     int    dd_id;           /* uniquely identify each open directory */
00020     long   dd_loc;          /* where we are in directory entry is this */
00021     struct _dircontents *dd_contents;   /* pointer to contents of dir */
00022     struct _dircontents *dd_cp;         /* pointer to current position */
00023 } DIR;
00024 
00025 extern DIR *opendir(const char *);
00026 extern struct dirent *readdir(DIR *);
00027 extern int closedir(DIR *);
00028 
00029 #endif

Generated on Thu Jan 30 22:30:44 2003 for EduNet by doxygen1.2.18