Add getpagesize()
diff --git a/include/unistd.h b/include/unistd.h
index ad12913..03e8e99 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -10,6 +10,7 @@
#include <stddef.h>
#include <sys/types.h>
#include <sys/select.h>
+#include <asm/page.h>
__extern char **environ;
__extern __noreturn _exit(int);
@@ -110,4 +111,9 @@
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
+static inline int getpagesize(void)
+{
+ return PAGE_SIZE;
+}
+
#endif /* _UNISTD_H */
diff --git a/klibc/include/unistd.h b/klibc/include/unistd.h
index ad12913..03e8e99 100644
--- a/klibc/include/unistd.h
+++ b/klibc/include/unistd.h
@@ -10,6 +10,7 @@
#include <stddef.h>
#include <sys/types.h>
#include <sys/select.h>
+#include <asm/page.h>
__extern char **environ;
__extern __noreturn _exit(int);
@@ -110,4 +111,9 @@
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
+static inline int getpagesize(void)
+{
+ return PAGE_SIZE;
+}
+
#endif /* _UNISTD_H */