Unverified Commit e9de57c2 authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

getconf(1): Add _NPROCESSORS_ONLN variable on supported systems

parent b87ab558
......@@ -322,6 +322,11 @@ const var_map_t sysconf_vars[] = {
#else /* NetBSD */
{ "_XOPEN_VERSION", _UNDEFINED_VARIABLE_ },
#endif
#if defined(_SC_NPROCESSORS_ONLN)
{ "_NPROCESSORS_ONLN", _SC_NPROCESSORS_ONLN },
#else /* only available on Linux, Solaris, AIX, Mac OS X */
{ "_NPROCESSORS_ONLN", _UNDEFINED_VARIABLE_ },
#endif
{ "POSIX2_LINE_MAX", SHIMMY_POSIX2_LINE_MAX },
{ "INT_MAX", SHIMMY_INT_MAX }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment