https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289717
Bug ID: 289717
Summary: getconf: Missing _SC_PHYS_PAGES support
Product: Base System
Version: Unspecified
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
I believe running
getconf PHYS_PAGES
or
getconf _PHYS_PAGES
should report sysconf(_SC_PHYS_PAGES), as the latter does on Linux. Maybe the
following would be sufficient to fix it? Not sure if there's an efficient way
to test this, or if I need to do a buildworld.
--- sysconf.gperf.orig 2025-09-20 10:30:22.800063000 -0500
+++ sysconf.gperf 2025-09-20 10:30:59.613519000 -0500
@@ -46,6 +46,7 @@
OPEN_MAX, _SC_OPEN_MAX
PAGESIZE, _SC_PAGESIZE
PAGE_SIZE, _SC_PAGESIZE
+PHYS_PAGES, _SC_PHYS_PAGES
PASS_MAX, _SC_PASS_MAX
PTHREAD_DESTRUCTOR_ITERATIONS, _SC_THREAD_DESTRUCTOR_ITERATIONS
PTHREAD_KEYS_MAX, _SC_THREAD_KEYS_MAX
--
You are receiving this mail because:
You are the assignee for the bug.