[Vm-dev] Pool for sysconf constants?

Eliot Miranda eliot.miranda at gmail.com
Sun Oct 11 18:15:09 UTC 2020


Hi All,

    I want to implement a number of processors query on MacOS & other
unices to complement the info provided by GetSystemInfo on Windows. The
natural way to do this on unices is to use sysconf (3), and of course this
points to the issue for which FFI pools are needed, the constant names for
sysconf such as _SC_NPROCESSORS_ONLN are defined, but their values are
implementation dependent.

But before I go amd implement an FFI pool for this I thought I'd ask
a) anyone already done this?  Is it published anywhere?
b) how are we going to organize such pools so that people don't have to
reinvent the wheel?
c) should there be a pool to cover sysconf or to cover unistd.h?  (the
point here is that while the pool might start off small, it could grow and
grow and maybe unistd.h is too much surface to cover)

thoughts, suggestions?
_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20201011/b81299ef/attachment.html>


More information about the Vm-dev mailing list