summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@zresearch.com>2009-05-05 16:04:29 +0530
committerAnand V. Avati <avati@amp.gluster.com>2009-05-05 17:51:05 +0530
commitad8e8fa72f287da034027bf26fc1fbfb1437d47e (patch)
tree8e2e18b7bf04f7f33006dccdef52708c380e7633
parentc803febb9b013e384bcccf37a2c68dc90deea444 (diff)
booster: Add readdir64 API
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
-rw-r--r--booster/src/booster.c2
-rw-r--r--booster/src/booster_stat.c13
2 files changed, 14 insertions, 1 deletions
diff --git a/booster/src/booster.c b/booster/src/booster.c
index 9c1d81ac4ba..4e263d438a2 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 85eb2bf72d2..6616c04ced8 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);
+}