From 38a64f2247d87b07587f0b88ad5e252f37db7a19 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Tue, 7 Oct 2025 20:27:32 +0700 Subject: [PATCH] Define stub memory constants --- src/header/unistd/sysconf/redox.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/header/unistd/sysconf/redox.rs b/src/header/unistd/sysconf/redox.rs index 4ada52f471..bc5f82e14d 100644 --- a/src/header/unistd/sysconf/redox.rs +++ b/src/header/unistd/sysconf/redox.rs @@ -27,6 +27,8 @@ pub const _SC_RE_DUP_MAX: c_int = 44; pub const _SC_NPROCESSORS_CONF: c_int = 57; pub const _SC_NPROCESSORS_ONLN: c_int = 58; +pub const _SC_PHYS_PAGES: c_int = 59; +pub const _SC_AVPHYS_PAGES: c_int = 60; // ... pub const _SC_GETGR_R_SIZE_MAX: c_int = 69; @@ -63,6 +65,8 @@ pub(super) fn sysconf_impl(name: c_int) -> c_long { _SC_HOST_NAME_MAX => 64, _SC_NPROCESSORS_CONF => get_cpu_count().unwrap_or(None).unwrap_or(1), _SC_NPROCESSORS_ONLN => get_cpu_count().unwrap_or(None).unwrap_or(1), + _SC_PHYS_PAGES => 262144, + _SC_AVPHYS_PAGES => -1, _SC_SIGQUEUE_MAX => 32, _SC_REALTIME_SIGNALS => 202405, _ => {