diff options
Diffstat (limited to 'include/dirent.h')
-rw-r--r-- | include/dirent.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/dirent.h b/include/dirent.h index 61a76c5b59..4f7ff2a5f9 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -3,21 +3,27 @@ #define __DIRENT_H #include <linux/list.h> +#include <linux/path.h> struct dirent { char d_name[256]; }; typedef struct dir { - struct device_d *dev; - struct fs_driver_d *fsdrv; + struct device *dev; + struct fs_driver *fsdrv; struct dirent d; void *priv; /* private data for the fs driver */ + int fd; + struct path path; struct list_head entries; } DIR; DIR *opendir(const char *pathname); +DIR *fdopendir(int fd); struct dirent *readdir(DIR *dir); +int unreaddir(DIR *dir, const struct dirent *d); +int rewinddir(DIR *dir); int closedir(DIR *dir); #endif /* __DIRENT_H */ |