Handle selected queries to sysconf
MODIFY
lib/libc/gen/sysconf.c
lib/libc/gen/sysconf.c
+#include <sys/syslimits.h>
+#include <unistd.h>
#include <errno.h>
long sysconf(int name) {
+ switch (name) {
+ case _SC_ARG_MAX:
+ return ARG_MAX;
+ case _SC_CHILD_MAX:
+ return CHILD_MAX;
+ case _SC_NGROUPS_MAX:
+ return NGROUPS_MAX;
+ case _SC_OPEN_MAX:
+ return OPEN_MAX;
+ case _SC_JOB_CONTROL:
+ default:
errno = EINVAL;
return -1;
}
+}

Handle selected queries to sysconf (#778)