diff options
author | Shehjar Tikoo <shehjart@zresearch.com> | 2009-05-05 16:04:29 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-05-05 17:51:05 +0530 |
commit | ad8e8fa72f287da034027bf26fc1fbfb1437d47e (patch) | |
tree | 8e2e18b7bf04f7f33006dccdef52708c380e7633 /booster | |
parent | c803febb9b013e384bcccf37a2c68dc90deea444 (diff) |
booster: Add readdir64 API
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'booster')
-rw-r--r-- | booster/src/booster.c | 2 | ||||
-rw-r--r-- | booster/src/booster_stat.c | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/booster/src/booster.c b/booster/src/booster.c index 9c1d81ac4..4e263d438 100644 --- a/booster/src/booster.c +++ b/booster/src/booster.c @@ -1555,7 +1555,7 @@ out: } struct dirent * -readdir (DIR *dir) +booster_readdir (DIR *dir) { struct booster_dir_handle *bh = (struct booster_dir_handle *)dir; struct dirent *dirp = NULL; diff --git a/booster/src/booster_stat.c b/booster/src/booster_stat.c index 85eb2bf72..6616c04ce 100644 --- a/booster/src/booster_stat.c +++ b/booster/src/booster_stat.c @@ -59,6 +59,8 @@ booster_statvfs (const char *path, void *buf); extern int booster_statvfs64 (const char *path, void *buf); +extern void * +booster_readdir (void *dir); int stat (const char *path, void *buf) @@ -156,3 +158,14 @@ statvfs64 (const char *pathname, void *buf) return booster_statvfs64 (pathname, buf); } +void * +readdir (void *dir) +{ + return booster_readdir (dir); +} + +void * +readdir64 (void *dir) +{ + return booster_readdir (dir); +} |