about summary refs log tree commit diff stats
path: root/lib/dirent.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dirent.h')
-rw-r--r--lib/dirent.h59
1 files changed, 28 insertions, 31 deletions
diff --git a/lib/dirent.h b/lib/dirent.h
index c0852a17..db598492 100644
--- a/lib/dirent.h
+++ b/lib/dirent.h
@@ -14,43 +14,40 @@
  *  changed d_name to char * instead of array, removed non-std extensions 
  *  
  *  Cleanup, other hackery, Summer '92, Brian Moran , brianmo@microsoft.com 
- */ 
+ */
 
 #ifndef _DIRENT
 #define _DIRENT
 
 #include <direct.h>
 
-struct dirent 
-{ 
-    ino_t    d_ino;                   /* a bit of a farce */ 
-    short    d_reclen;                /* more farce */ 
-    short    d_namlen;                /* length of d_name */ 
-    char    *d_name;
-}; 
- 
-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 */ 
-    struct _dircontents *dd_contents;	/* pointer to contents of dir */ 
-    struct _dircontents *dd_cp;		/* pointer to current position */ 
-} 
-DIR; 
- 
-extern DIR *opendir(char *); 
-extern struct dirent *readdir(DIR *); 
-extern void seekdir(DIR *, long); 
-extern long telldir(DIR *); 
-extern void closedir(DIR *); 
-#define rewinddir(dirp) seekdir(dirp, 0L) 
+struct dirent {
+    ino_t d_ino;		/* a bit of a farce */
+    short d_reclen;		/* more farce */
+    short d_namlen;		/* length of d_name */
+    char *d_name;
+};
+
+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 */
+    struct _dircontents *dd_contents;	/* pointer to contents of dir */
+    struct _dircontents *dd_cp;	/* pointer to current position */
+} DIR;
+
+extern DIR *opendir(char *);
+extern struct dirent *readdir(DIR *);
+extern void seekdir(DIR *, long);
+extern long telldir(DIR *);
+extern void closedir(DIR *);
+
+#define rewinddir(dirp) seekdir(dirp, 0L)
 
 #endif /* _DIRENT */
 
-/* end of dirent.h */ 
+/* end of dirent.h */