
This patch mainly copies and modifies files existing in the current libc implementing minix specific functions. To keep consisten with the NetBSD libc, we remove namespace stubs and we use "namespace.h" and weak links.
18 lines
230 B
C
18 lines
230 B
C
/*
|
|
getpagesize.c
|
|
*/
|
|
#include <sys/cdefs.h>
|
|
#include "namespace.h"
|
|
|
|
#include <machine/vmparam.h>
|
|
#include <unistd.h>
|
|
|
|
#ifdef __weak_alias
|
|
__weak_alias(getpagesize, _getpagesize)
|
|
#endif
|
|
|
|
int getpagesize(void)
|
|
{
|
|
return PAGE_SIZE;
|
|
}
|