From 02fec4701cee79f875c1d02b8b4aee09380dbcb8 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 4 Jan 2001 20:04:45 +0000 Subject: integrate dietlibc/stdio per default for cdrom and disk only installs --- mdk-stage1/dietlibc/include/dirent.h | 61 ++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 mdk-stage1/dietlibc/include/dirent.h (limited to 'mdk-stage1/dietlibc/include/dirent.h') diff --git a/mdk-stage1/dietlibc/include/dirent.h b/mdk-stage1/dietlibc/include/dirent.h new file mode 100644 index 000000000..d277c0762 --- /dev/null +++ b/mdk-stage1/dietlibc/include/dirent.h @@ -0,0 +1,61 @@ +#ifndef _DIRENT_H +#define _DIRENT_H 1 + +#include +#include + +#include + +#if 0 +struct dirent + { +#ifndef __USE_FILE_OFFSET64 + ino_t d_ino; + off_t d_off; +#else + ino64_t d_ino; + off64_t d_off; +#endif + unsigned short int d_reclen; + unsigned char d_type; + char d_name[256]; /* We must not include limits.h! */ + }; + +#ifdef __USE_LARGEFILE64 +struct dirent64 + { + ino64_t d_ino; + off64_t d_off; + unsigned short int d_reclen; + unsigned char d_type; + char d_name[256]; /* We must not include limits.h! */ + }; +#endif +#endif + +#define d_fileno d_ino /* Backwards compatibility. */ + +#undef _DIRENT_HAVE_D_NAMLEN +#define _DIRENT_HAVE_D_RECLEN +#define _DIRENT_HAVE_D_OFF +#define _DIRENT_HAVE_D_TYPE + +#define opendir(name) __dietopendir(name) +#define closedir(dir) __dietclosedir(dir) +#define readdir(dir) __dietreaddir(dir) +#define readdir64(dir) __dietreaddir64(dir) +#define rewinddir(dir) __dietrewinddir64(dir) +#define seekdir(dir,pos) __dietseekdir(dir,pos) +#define telldir(dir) __diettelldir(dir) + +typedef struct __dirstream DIR; + +DIR *opendir (const char *__name) __THROW; +int closedir (DIR *__dirp) __THROW; +struct dirent *readdir (DIR *__dirp) __THROW; +struct dirent64 *readdir64 (DIR *__dirp) __THROW; +void rewinddir (DIR *__dirp) __THROW; +void seekdir (DIR *__dirp, long int __pos) __THROW; +long int telldir (DIR *__dirp) __THROW; + +#endif -- cgit v1.2.1