]> git.sur5r.net Git - cc65/blobdiff - libsrc/cbm/dir.h
Removed (pretty inconsistently used) tab chars from source code base.
[cc65] / libsrc / cbm / dir.h
index a1137acfe7eac1f4c60625ffa6c05613ade1f9b0..c206e6ed9915fd783685417ab92e7622927eb0c7 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Internal include file, do not use directly.
  * Written by Ullrich von Bassewitz. Based on code by Groepaz.
  */
 
 
 
+#include <dirent.h>
+
+
+
 /*****************************************************************************/
-/*                                  Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
 
 struct DIR {
-    int                fd;             /* File descriptor for directory */
-    unsigned    offs;           /* Current byte offset in directory */
+    int         fd;             /* File descriptor for directory */
+    unsigned    off           /* Current byte offset in directory */
     char        name[16+1];     /* Name passed to opendir */
 };
 
 
 
+/*****************************************************************************/
+/*                                   Code                                    */
+/*****************************************************************************/
+
+
+
+unsigned char __fastcall__ _dirread (DIR* dir, void* buf, unsigned char count);
+/* Read characters from the directory into the supplied buffer. Makes sure,
+ * errno is set in case of a short read. Return true if the read was
+ * successful and false otherwise.
+ */
+
+unsigned char __fastcall__ _dirread1 (DIR* dir, void* buf);
+/* Read one byte from the directory into the supplied buffer. Makes sure,
+ * errno is set in case of a short read. Return true if the read was
+ * successful and false otherwise.
+ */
+
+
+
 /* End of dir.h */
 #endif