From 60d1e263f0da2976938fa54efec88ab777a6b3c3 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Tue, 5 Oct 2004 18:51:53 -0700 Subject: [PATCH] oops forgot to add the new klibc/include directory --- klibc/include/dirent.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 klibc/include/dirent.h (limited to 'klibc/include/dirent.h') diff --git a/klibc/include/dirent.h b/klibc/include/dirent.h new file mode 100644 index 0000000000..4db479592b --- /dev/null +++ b/klibc/include/dirent.h @@ -0,0 +1,32 @@ +/* + * dirent.h + */ + +#ifndef _DIRENT_H +#define _DIRENT_H + +#include +#include + +struct _IO_dir { + int __fd; + +#ifdef __KLIBC_DIRENT_INTERNALS + /* These fields for internal use only */ + + size_t bytes_left; + struct dirent *next; + /* Declaring this as an array of struct enforces correct alignment */ + struct dirent buffer[15]; /* 15 times max dirent size =~ 4K */ +#endif +}; +typedef struct _IO_dir DIR; + +__extern DIR *opendir(const char *); +__extern struct dirent *readdir(DIR *); +__extern int closedir(DIR *); +static __inline__ int dirfd (DIR *__d) { + return __d->__fd; +} + +#endif /* _DIRENT_H */ -- cgit v1.2.3-54-g00ecf