summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-10-08 14:02:23 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-10-08 16:11:06 +0200
commita3993a38da55fc1074b5e176354d86fe7742cef3 (patch)
tree660cb9ff2bfe083ed541fd4e28cc317fb6f34c30 /include
parent4f7a18cdb58aaef1c265e0359608a465355d9863 (diff)
downloadbarebox-a3993a38da55fc1074b5e176354d86fe7742cef3.tar.gz
barebox-a3993a38da55fc1074b5e176354d86fe7742cef3.tar.xz
fs: implement fstat
fstat is useful to get information about an already opened file. Add it to barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/fs.h b/include/fs.h
index 6eddb2312f..63e35ca815 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -114,6 +114,7 @@ int close(int fd);
int flush(int fd);
int lstat(const char *filename, struct stat *s);
int stat(const char *filename, struct stat *s);
+int fstat(int fd, struct stat *s);
ssize_t read(int fd, void *buf, size_t count);
ssize_t pread(int fd, void *buf, size_t count, loff_t offset);
int ioctl(int fd, int request, void *buf);