Move get-page-size to C
get-page-size
calls unix:unix-getpagesize
, but the implementation of get-page-size
is spread out over all the os.lisp files. The implementations appear to be the same (for the few os.lisp files I looked at).
We could move get-page-size
to C. This covers all the uses of unix:unix-getpagesize
except for one use in src/pcl/simple-streams/internal.lisp, where we can obviously replace that use with get-page-size
.
Doing this allows us to simplify slightly the code base and to remove unix:unix-getpagesize
. Like unix:unix-getrusuage
in #179 (closed), we probably move it to src/contrib/unix/unix.lisp instead of completely removing it.
In addition, we can have get-page-size
use sysconf(3)
instead of getpagesize
.
Edited by Raymond Toy