|
|
1.1 root 1: /*
2: *
3: * (c) 2008-2009 Laurent Vivier <[email protected]>
4: *
5: * This file has been copied from EMILE, http://emile.sf.net
6: *
7: */
8:
9: #include "libext2.h"
10: #include "ext2_utils.h"
11:
12: static struct ext2_dir_entry_2 entry;
13:
14: struct ext2_dir_entry_2 *ext2_readdir(ext2_DIR *dir)
15: {
16: int ret;
17:
18: ret = ext2_dir_entry(dir->volume, dir->inode, dir->index, &entry);
19: if (ret == -1)
20: return NULL;
21: dir->index = ret;
22:
23: entry.name[entry.name_len] = 0;
24: return &entry;
25: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.