From 13a58f94a781d91ab3d7854996df66c9802d972b Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Tue, 5 May 2009 16:04:00 +0530 Subject: booster: Add fstat API Signed-off-by: Anand V. Avati --- booster/src/booster_stat.c | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'booster/src/booster_stat.c') diff --git a/booster/src/booster_stat.c b/booster/src/booster_stat.c index cdf9230e6..bdbb0f8f4 100644 --- a/booster/src/booster_stat.c +++ b/booster/src/booster_stat.c @@ -30,6 +30,15 @@ booster_xstat (int ver, const char *path, void *buf); extern int booster_xstat64 (int ver, const char *path, void *buf); +extern int +booster_fxstat (int ver, int fd, void *buf); +extern int +booster_fxstat64 (int ver, int fd, void *buf); +extern int +booster_fstat (int fd, void *buf); +extern int +booster_fstat64 (int fd, void *buf); + int stat (const char *path, void *buf) { @@ -53,3 +62,28 @@ __xstat64 (int ver, const char *path, void *buf) { return booster_xstat64 (ver, path, buf); } + +int +__fxstat (int ver, int fd, void *buf) +{ + return booster_fxstat (ver, fd, buf); +} + +int +__fxstat64 (int ver, int fd, void *buf) +{ + return booster_fxstat64 (ver, fd, buf); +} + +int +fstat (int fd, void *buf) +{ + return booster_fstat (fd, buf); +} + +int +fstat64 (int fd, void *buf) +{ + return booster_fstat64 (fd, buf); +} + -- cgit