options/posix: Define a response for sysconf(_SC_NGROUPS_MAX)
@@ -661,6 +661,9 @@ unsigned long sysconf(int number) {
// TODO: This should be obsolete?
mlibc::infoLogger() << "\e[31mmlibc: sysconf(_SC_CLK_TCK) is obsolete and returns arbitrary value 1000000\e[39m" << frg::endlog;
return 1000000;
+ case _SC_NGROUPS_MAX:
+ // On linux, it is defined to 65536 in most cases, so define it to be 65536
+ return 65536;
default:
mlibc::panicLogger() << "\e[31mmlibc: sysconf() call is not implemented, number: " << number << "\e[39m" << frg::endlog;
__builtin_unreachable();
