vm: fix a null dereference on out-of-memory
[minix.git] / lib / libc / gen / minix / getpagesize.c
blob006f017009191839c45db07540f7ba3051712e91
1 /*
2 getpagesize.c
3 */
4 #include <sys/cdefs.h>
5 #include "namespace.h"
7 #include <machine/vmparam.h>
8 #include <unistd.h>
10 #ifdef __weak_alias
11 __weak_alias(getpagesize, _getpagesize)
12 #endif
14 int getpagesize(void)
16 return PAGE_SIZE;