llvm-project/compiler-rt/test/gwp_asan/page_size.h

14 lines
275 B
C

#ifndef PAGE_SIZE_
#define PAGE_SIZE_
#if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
# include <unistd.h>
unsigned pageSize() {
return sysconf(_SC_PAGESIZE);
}
#else
# error "GWP-ASan is not supported on this platform."
#endif
#endif // PAGE_SIZE_