From 635248cdff9cdbd065a60a5c9c80ce4955bfb751 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 13 Sep 2023 11:26:44 -0600 Subject: [PATCH] Define _SC_GETGR_R_SIZE_MAX --- src/header/unistd/sysconf.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/header/unistd/sysconf.rs b/src/header/unistd/sysconf.rs index 423d4d49dd..c50c53de25 100644 --- a/src/header/unistd/sysconf.rs +++ b/src/header/unistd/sysconf.rs @@ -20,6 +20,7 @@ pub const _SC_PAGE_SIZE: c_int = 30; // ... pub const _SC_RE_DUP_MAX: c_int = 44; // ... +pub const _SC_GETGR_R_SIZE_MAX: c_int = 69; pub const _SC_GETPW_R_SIZE_MAX: c_int = 70; pub const _SC_LOGIN_NAME_MAX: c_int = 71; pub const _SC_TTY_NAME_MAX: c_int = 72; @@ -45,6 +46,7 @@ pub extern "C" fn sysconf(name: c_int) -> c_long { .try_into() .expect("page size not representable as type `long`"), _SC_RE_DUP_MAX => 32767, + _SC_GETGR_R_SIZE_MAX => -1, _SC_GETPW_R_SIZE_MAX => -1, _SC_LOGIN_NAME_MAX => 256, _SC_TTY_NAME_MAX => 32,