nativity/lib/libc/include/wasm-wasi-musl/__macro_PAGESIZE.h
David Gonzalez Martin 38011a233c Integrate libs
2024-03-02 12:58:12 -06:00

17 lines
544 B
C

#ifndef __wasilibc___macro_PAGESIZE_h
#define __wasilibc___macro_PAGESIZE_h
/*
* The page size in WebAssembly is fixed at 64 KiB. If this ever changes,
* it's expected that applications will need to opt in, so we can change
* this.
*
* If this ever needs to be a value outside the range of an `int`, the
* `getpagesize` function which returns this value will need special
* consideration. POSIX has deprecated `getpagesize` in favor of
* `sysconf(_SC_PAGESIZE)` which does not have this problem.
*/
#define PAGESIZE (0x10000)
#endif