summaryrefslogtreecommitdiffstats
path: root/include/fs.h
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2016-01-27 12:53:04 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-01 09:16:13 +0100
commit00dd9030552dd6708af675a7c3f4292090716bfa (patch)
tree8568a7360ec9a025c3bfc29a926b128d55528fba /include/fs.h
parent3c0e5afc5ad478fe6911ccf2d24a6a7021fef3da (diff)
downloadbarebox-00dd9030552dd6708af675a7c3f4292090716bfa.tar.gz
barebox-00dd9030552dd6708af675a7c3f4292090716bfa.tar.xz
fs: use linux/fs.h for file system related definitions
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/fs.h')
-rw-r--r--include/fs.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/fs.h b/include/fs.h
index ee7e48b0f9..23156eadae 100644
--- a/include/fs.h
+++ b/include/fs.h
@@ -3,6 +3,7 @@
#include <driver.h>
#include <filetype.h>
+#include <linux/fs.h>
#define PATH_MAX 1024 /* include/linux/limits.h */
@@ -122,10 +123,6 @@ int ioctl(int fd, int request, void *buf);
ssize_t write(int fd, const void *buf, size_t count);
ssize_t pwrite(int fd, const void *buf, size_t count, loff_t offset);
-#define SEEK_SET 1
-#define SEEK_CUR 2
-#define SEEK_END 3
-
loff_t lseek(int fildes, loff_t offset, int whence);
int mkdir (const char *pathname, mode_t mode);