summaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-04-07 20:45:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-15 12:21:45 +0200
commit70bbeea7b227866bdbdef0b249ff7f8644713f15 (patch)
tree3cc3d87a42d2edae54563981b4e81a73690db913 /include/sys
parente1385b3399b606c2fe495f2e1967822af715edec (diff)
downloadbarebox-70bbeea7b227866bdbdef0b249ff7f8644713f15.tar.gz
barebox-70bbeea7b227866bdbdef0b249ff7f8644713f15.tar.xz
fs: move libc function prototypes to their correct locations
This moves the function prototypes in include/fs.h which also exist in the libc to the locations they would have in libc. With this it becomes easier to share code between barebox and userspace since the usual libc include files will exist. Also users of the libc functions no longer have to include the barebox internal fs.h header. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/ioctl.h6
-rw-r--r--include/sys/mount.h8
-rw-r--r--include/sys/stat.h9
3 files changed, 23 insertions, 0 deletions
diff --git a/include/sys/ioctl.h b/include/sys/ioctl.h
new file mode 100644
index 0000000000..6d6d3f5c00
--- /dev/null
+++ b/include/sys/ioctl.h
@@ -0,0 +1,6 @@
+#ifndef __SYS_IOCTL_H
+#define __SYS_IOCTL_H
+
+int ioctl(int fd, int request, void *buf);
+
+#endif /* __SYS_IOCTL_H */
diff --git a/include/sys/mount.h b/include/sys/mount.h
new file mode 100644
index 0000000000..978f3406e8
--- /dev/null
+++ b/include/sys/mount.h
@@ -0,0 +1,8 @@
+#ifndef __SYS_MOUNT_H
+#define __SYS_MOUNT_H
+
+int mount(const char *device, const char *fsname, const char *path,
+ const char *fsoptions);
+int umount(const char *pathname);
+
+#endif /* __SYS_MOUNT_H */
diff --git a/include/sys/stat.h b/include/sys/stat.h
new file mode 100644
index 0000000000..037e5f136d
--- /dev/null
+++ b/include/sys/stat.h
@@ -0,0 +1,9 @@
+#ifndef __STAT_H
+#define __STAT_H
+
+#include <linux/types.h>
+#include <linux/stat.h>
+
+int mkdir (const char *pathname, mode_t mode);
+
+#endif /* __STAT_H */