summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjkoshy <jkoshy@FreeBSD.org>2001-12-01 12:07:42 +0000
committerjkoshy <jkoshy@FreeBSD.org>2001-12-01 12:07:42 +0000
commit91903d036d9c96b55563a3ecb11525b5a3ddbf37 (patch)
tree9e51e74dbead2bdf793d0191265d6f721969553e /sys
parentc0aedffa21d0ffdb2d72beed00e2551bacca7927 (diff)
downloadFreeBSD-src-91903d036d9c96b55563a3ecb11525b5a3ddbf37.zip
FreeBSD-src-91903d036d9c96b55563a3ecb11525b5a3ddbf37.tar.gz
Add support for sysconf(_SC_NPROCESSORS_CONF) and sysconf(_SC_NPROCESSORS_ONLN).
This API is supported in SVR4.0MP, Solaris, Linux, AIX and Tru64 Unix. PR: bin/27489 Submitted by: Arun Sharma <arun@sharma-home.net> Reviewed by: bde (prior version)
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/unistd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/sys/unistd.h b/sys/sys/unistd.h
index d78db34..7f5ef23 100644
--- a/sys/sys/unistd.h
+++ b/sys/sys/unistd.h
@@ -201,6 +201,11 @@
#define _SC_IOV_MAX 56
#ifndef _POSIX_SOURCE
+
+/* Linux/Solaris/AIX/SVR4.0MP API */
+#define _SC_NPROCESSORS_CONF 57
+#define _SC_NPROCESSORS_ONLN 58
+
/*
* rfork() options.
*
OpenPOWER on IntegriCloud