2012-06-01 19:23:34 +00:00
|
|
|
/*
|
2014-06-30 09:10:35 +00:00
|
|
|
** Internal include file, do not use directly.
|
|
|
|
** Written by Ullrich von Bassewitz. Based on code by Groepaz.
|
|
|
|
*/
|
2012-05-29 21:39:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _DIR_H
|
|
|
|
#define _DIR_H
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-03 14:32:15 +00:00
|
|
|
#include <dirent.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-05-29 21:39:40 +00:00
|
|
|
/*****************************************************************************/
|
2013-05-09 11:56:54 +00:00
|
|
|
/* Data */
|
2012-05-29 21:39:40 +00:00
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct DIR {
|
2013-05-09 11:56:54 +00:00
|
|
|
int fd; /* File descriptor for directory */
|
2012-06-02 22:56:14 +00:00
|
|
|
unsigned off; /* Current byte offset in directory */
|
2012-05-29 21:39:40 +00:00
|
|
|
char name[16+1]; /* Name passed to opendir */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-01 19:23:34 +00:00
|
|
|
/*****************************************************************************/
|
2013-05-09 11:56:54 +00:00
|
|
|
/* Code */
|
2012-06-01 19:23:34 +00:00
|
|
|
/*****************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-03 13:59:31 +00:00
|
|
|
unsigned char __fastcall__ _dirread (DIR* dir, void* buf, unsigned char count);
|
|
|
|
/* Read characters from the directory into the supplied buffer. Makes sure,
|
2014-06-30 09:10:35 +00:00
|
|
|
** errno is set in case of a short read. Return true if the read was
|
|
|
|
** successful and false otherwise.
|
|
|
|
*/
|
2012-06-03 13:59:31 +00:00
|
|
|
|
|
|
|
unsigned char __fastcall__ _dirread1 (DIR* dir, void* buf);
|
|
|
|
/* Read one byte from the directory into the supplied buffer. Makes sure,
|
2014-06-30 09:10:35 +00:00
|
|
|
** errno is set in case of a short read. Return true if the read was
|
|
|
|
** successful and false otherwise.
|
|
|
|
*/
|
2012-06-01 19:23:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2012-05-29 21:39:40 +00:00
|
|
|
/* End of dir.h */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|