Files
amiga-libnix2/libnix/sources/headers/dirent.h
T
2004-09-09 22:09:30 +00:00

34 lines
588 B
C
Executable File

#include <dos/exall.h>
#include <dos/dosextens.h>
struct dirent {
ULONG d_fileno;
USHORT d_reclen;
USHORT d_namlen;
BYTE d_name[256];
};
typedef struct _dirdesc {
int dd_fd;
struct dirent dd_ent;
BPTR d_lock;
ULONG d_count;
LONG d_more;
struct ExAllControl *d_eac;
struct ExAllData *current;
union {
char ead[2048];
struct FileInfoBlock fib;
} _dirun;
} DIR;
#define d_ead _dirun.ead
#define d_info _dirun.fib
/* prototypes */
DIR *opendir(const char *dirname);
struct dirent *readdir(DIR *dirp);
void rewinddir(DIR *dirp);
int closedir(DIR *dirp);