[libc-commits] [libc] [libc] Refactor sysinfo (PR #221498)
Alexey Samsonov via libc-commits
libc-commits at lists.llvm.org
Mon Sep 7 15:07:17 PDT 2026
vonosmas wrote:
I'm confused by this suggestion. I don't see why we should move away from standard `ErrorOr` and `syscall_checked` handling we had previously. `sysinfo` syscall itself may return `EFAULT` if the user-supplied address was incorrect. If we want to discard the possible errors when we invoke `sysinfo` ourselves, on the structure we control, then we have the option to ignore the error at call sites instead.
https://github.com/llvm/llvm-project/pull/221498
More information about the libc-commits
mailing list