]> git.proxmox.com Git - wasi-libc.git/blob - dlmalloc/include/unistd.h
8b1e44fb34e2a689db98842da729cfd682380eff
[wasi-libc.git] / dlmalloc / include / unistd.h
1 /* Stub include file to support dlmalloc. */
2
3 #include <stdint.h>
4
5 /*
6 * The page size in WebAssembly is fixed at 64 KiB. If this ever changes,
7 * it's expected that applications will need to opt in, so we can change
8 * this.
9 */
10 #define sysconf(name) 0x10000
11 #define _SC_PAGESIZE
12
13 /* Declare sbrk. */
14 void *sbrk(intptr_t increment);