summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libcruft/getpagesize.c
blob: dea4a9693593102ff35f74cab86332df1c34a69d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>

#ifndef PAGE_SIZE
#define PAGE_SIZE 4096
#endif

size_t __libc_getpagesize(void) {
  return PAGE_SIZE;
}

size_t getpagesize(void)       __attribute__((weak,alias("__libc_getpagesize")));