libroot: Remove _SC_NPROCESSORS_MAX and _SC_CPUID_MAX

_SC_NPROCESSORS_MAX and _SC_CPUID_MAX appear to be supported only by
Solaris. There isn't much point in exposing such values to the userland
anyway.
This commit is contained in:
Pawel Dziepak 2013-12-06 21:54:07 +01:00
parent f6b71d5518
commit fd96cf08a7
2 changed files with 0 additions and 6 deletions

View File

@ -104,10 +104,8 @@
/* TODO: check */
#define _SC_IOV_MAX 32
#define _SC_UIO_MAXIOV _SC_IOV_MAX
#define _SC_NPROCESSORS_MAX 33
#define _SC_NPROCESSORS_CONF 34
#define _SC_NPROCESSORS_ONLN 35
#define _SC_CPUID_MAX 36
#define _SC_ATEXIT_MAX 37
#define _SC_PASS_MAX 39
#define _SC_PHYS_PAGES 40

View File

@ -98,8 +98,6 @@ __sysconf(int name)
return _POSIX_THREADS;
case _SC_IOV_MAX:
return IOV_MAX;
case _SC_NPROCESSORS_MAX:
return B_MAX_CPU_COUNT;
case _SC_NPROCESSORS_CONF:
{
system_info info;
@ -125,8 +123,6 @@ __sysconf(int name)
count++;
return count;
}
case _SC_CPUID_MAX:
return B_MAX_CPU_COUNT - 1;
case _SC_ATEXIT_MAX:
return ATEXIT_MAX;
case _SC_PASS_MAX: