LibC: Add _SC_NPROCESSORS_{CONF,ONLN)

This commit is contained in:
2025-07-23 16:34:40 +03:00
parent 987cc3c237
commit e72e1e4e43
5 changed files with 15 additions and 0 deletions

View File

@@ -1015,6 +1015,9 @@ long sysconf(int name)
case _SC_PAGE_SIZE:
case _SC_PAGESIZE: return getpagesize();
case _SC_NPROCESSORS_ONLN: return syscall(SYS_GET_NPROCESSOR);
case _SC_NPROCESSORS_CONF: return syscall(SYS_GET_NPROCESSOR);
case _SC_CLK_TCK: return 100;
case _SC_GETGR_R_SIZE_MAX: return 1024;
case _SC_GETPW_R_SIZE_MAX: return 1024;