summaryrefslogtreecommitdiffstats
path: root/include/fs.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-22 12:54:19 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-05 03:22:13 +0800
commit99684498ecf919cdf91378f278eb459cb6299b8d (patch)
tree9f9ef1cd6d38dfc80bcbb69eb3f4e932bcf5867f /include/fs.h
parentf4d850eb76df75b91acfc85cbe847325d66865db (diff)
downloadbarebox-99684498ecf919cdf91378f278eb459cb6299b8d.tar.gz
barebox-99684498ecf919cdf91378f278eb459cb6299b8d.tar.xz
fs: rename stat to lstat as we implement lstat
For compatibility put a inline on lstat for stat until we have the symlink support. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include/fs.h')
-rw-r--r--include/fs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/fs.h b/include/fs.h
index 906d192a73..98210cfa9c 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -104,7 +104,11 @@ int creat(const char *pathname, mode_t mode);
int unlink(const char *pathname);
int close(int fd);
int flush(int fd);
-int stat(const char *filename, struct stat *s);
+int lstat(const char *filename, struct stat *s);
+static inline int stat(const char *filename, struct stat *s)
+{
+ return lstat(filename, s);
+}
int read(int fd, void *buf, size_t count);
int ioctl(int fd, int request, void *buf);
ssize_t write(int fd, const void *buf, size_t count);