]> git.proxmox.com Git - wasi-libc.git/commit
Add a `getpagesize` function. (#300)
authorDan Gohman <dev@sunfishcode.online>
Mon, 11 Jul 2022 15:27:39 +0000 (08:27 -0700)
committerGitHub <noreply@github.com>
Mon, 11 Jul 2022 15:27:39 +0000 (08:27 -0700)
commite066a8b9d9c15e4c67fbcaeed3b62470f8785ce0
treeeace4d656936f9137cb59a4010892def6732efdb
parent30094b6ed05f19cee102115215863d185f2db4f0
Add a `getpagesize` function. (#300)

* Add a `getpagesize` function.

This adds a `getpagesize` function. This interface is deprecated in POSIX,
but it's sufficiently widely used and not problematic in practice.

* Use musl's `getpagesize`.

* Enable the `getpagesize` declaration in unistd.h.
Makefile
expected/wasm32-wasi/defined-symbols.txt
libc-bottom-half/headers/public/__macro_PAGESIZE.h
libc-top-half/musl/include/unistd.h