X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fmsd_dir.h;h=895c3ef35da506f67160e86d55861d866224c63c;hb=af244aeef3f45e0b431fd6fe8a7d2673ceefb254;hp=06c7a644b42db9f5e32b943c537d87a7c2fd76a2;hpb=c086e08a4bb931721b2bc8db545ecb3eeaa431dd;p=chaz%2Ftar diff --git a/src/msd_dir.h b/src/msd_dir.h index 06c7a64..895c3ef 100644 --- a/src/msd_dir.h +++ b/src/msd_dir.h @@ -15,30 +15,27 @@ typedef int ino_t; typedef int dev_t; #endif -struct dirent - { - ino_t d_ino; /* a bit of a farce */ - int d_reclen; /* more farce */ - int d_namlen; /* length of d_name */ - char d_name[MAXNAMLEN + 1]; /* garentee null termination */ - }; +struct direct { + ino_t d_ino; /* a bit of a farce */ + int d_reclen; /* more farce */ + int d_namlen; /* length of d_name */ + char d_name[MAXNAMLEN + 1]; /* garentee null termination */ +}; -struct _dircontents - { - char *_d_entry; - struct _dircontents *_d_next; - }; +struct _dircontents { + char *_d_entry; + struct _dircontents *_d_next; +}; -typedef struct _dirdesc - { - int dd_id; /* uniquely identify each open directory */ - long dd_loc; /* where we are in directory entry is this */ - struct _dircontents *dd_contents; /* pointer to contents of dir */ - struct _dircontents *dd_cp; /* pointer to current position */ - } DIR; +typedef struct _dirdesc { + int dd_id; /* uniquely identify each open directory */ + long dd_loc; /* where we are in directory entry is this */ + struct _dircontents *dd_contents; /* pointer to contents of dir */ + struct _dircontents *dd_cp; /* pointer to current position */ +} DIR; -extern DIR *opendir (); -extern struct dirent *readdir (); -extern void seekdir (); -extern long telldir (); -extern void closedir (); +extern DIR *opendir(); +extern struct direct *readdir(); +extern void seekdir(); +extern long telldir(); +extern void closedir();