diff options
author | H. Peter Anvin <hpa@zytor.com> | 2004-01-25 07:49:39 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2004-01-25 07:49:39 +0000 |
commit | 8bb0e67a8035060886b838a0792f373748692c51 (patch) | |
tree | ca7716b01ab1c40457eea6b03b502fe087e9b2d4 | |
parent | da153eda8ba5149a5a612b5ebbc8df1a9b1a2586 (diff) | |
download | klibc-8bb0e67a8035060886b838a0792f373748692c51.tar.gz |
Add getpagesize()klibc-0.98
-rw-r--r-- | include/unistd.h | 6 | ||||
-rw-r--r-- | klibc/include/unistd.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h index ad12913834165..03e8e99666cf1 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 @@ __extern int isatty(int); #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 ad12913834165..03e8e99666cf1 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 @@ __extern int isatty(int); #define STDOUT_FILENO 1 #define STDERR_FILENO 2 +static inline int getpagesize(void) +{ + return PAGE_SIZE; +} + #endif /* _UNISTD_H */ |