aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/posix/unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'extras/mini-os/include/posix/unistd.h')
-rw-r--r--extras/mini-os/include/posix/unistd.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/extras/mini-os/include/posix/unistd.h b/extras/mini-os/include/posix/unistd.h
new file mode 100644
index 0000000000..0cd9396ec9
--- /dev/null
+++ b/extras/mini-os/include/posix/unistd.h
@@ -0,0 +1,12 @@
+#ifndef _POSIX_UNISTD_H
+#define _POSIX_UNISTD_H
+
+#include_next <unistd.h>
+#include <sys/select.h>
+#include <arch_limits.h>
+
+#define getpagesize() __PAGE_SIZE
+
+int ftruncate(int fd, off_t length);
+
+#endif /* _POSIX_UNISTD_H */