diff options
author | Liu Aleaxander <Aleaxander@gmail.com> | 2009-08-28 18:27:51 +0800 |
---|---|---|
committer | Liu Aleaxander <Aleaxander@gmail.com> | 2009-08-28 18:27:51 +0800 |
commit | c29a8049d462815774bbce8f80a8471a985bafcd (patch) | |
tree | 38420b5b946d76a7c44629cbd54da0a5c646d0f7 /com32/include/dirent.h | |
parent | 6fcebf4ed2be8de96ff106c3755c7776f1c66804 (diff) | |
download | syslinux-c29a8049d462815774bbce8f80a8471a985bafcd.tar.gz |
Core: vfs-dir stuff re-implemented
We fist make it simple, as told by hpa. Here're the changes:
1, The DIR structure changed, just a file pointer included.
2. So, the open/close/read-dir stuff in com32/lib/ changed again.
3. We read one stuff from every readdir call.
Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
Diffstat (limited to 'com32/include/dirent.h')
-rw-r--r-- | com32/include/dirent.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/com32/include/dirent.h b/com32/include/dirent.h index 0fc2e135..d2bfd627 100644 --- a/com32/include/dirent.h +++ b/com32/include/dirent.h @@ -22,11 +22,10 @@ struct dirent { char d_name[NAME_MAX + 1]; }; +struct file; + typedef struct { - uint16_t dd_stat; - uint16_t dd_sect; - uint64_t dd_offset; - char dd_name[NAME_MAX + 1]; + struct file *dd_dir; } DIR; __extern DIR *opendir(const char *); |