smol-gilbraltar/nolibc/sysconf.c
2024-12-20 23:45:12 +01:00

11 lines
186 B
C

#include <unistd.h>
#include <sys/mman.h>
long sysconf(int x) {
switch (x) {
case _SC_PAGESIZE: /* _SC_PAGE_SIZE */
return OCAML_SOLO5_PAGESIZE;
default:
return -1;
}
}