[Toybox] [PATCH] getconf: add cache size sysconf() queries.

enh enh at google.com
Wed Oct 25 16:08:27 PDT 2023


It can otherwise be quite awkward to get at this --- riscv64 puts it all
neatly in the ELF auxv, x86-64 has it all in /proc, arm64 only exposes
L1 instruction/data line sizes.

Annoyingly, none of musl, the BSDs, or Apple implement these sysconf()
queries. But they're useful (and otherwise inaccessible from the command
line) for the systems that _do_ support them.
---
 toys/posix/getconf.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-getconf-add-cache-size-sysconf-queries.patch
Type: text/x-patch
Size: 2468 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20231025/48ab6cea/attachment.bin>


More information about the Toybox mailing list