diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2001-12-01 12:07:42 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2001-12-01 12:07:42 +0000 |
commit | 91903d036d9c96b55563a3ecb11525b5a3ddbf37 (patch) | |
tree | 9e51e74dbead2bdf793d0191265d6f721969553e /sys | |
parent | c0aedffa21d0ffdb2d72beed00e2551bacca7927 (diff) | |
download | FreeBSD-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.h | 5 |
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. * |