FreeBSD Bugzilla – Attachment 14662 Details for
Bug 27489
patch for feature sysconf(_SC_NPROCESSORS_CONF)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.00 KB, created by
arun
on 2001-05-21 07:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
arun
Created:
2001-05-21 07:30:01 UTC
Size:
1.00 KB
patch
obsolete
>--- lib/libc/gen/sysconf.c- Sun May 20 22:09:14 2001 >+++ lib/libc/gen/sysconf.c Sun May 20 22:11:05 2001 >@@ -284,6 +284,10 @@ > mib[1] = CTL_P1003_1B_TIMER_MAX; > goto yesno; > #endif /* _P1003_1B_VISIBLE */ >+ case _SC_NPROCESSORS_CONF: >+ mib[0] = CTL_HW; >+ mib[1] = HW_NCPU; >+ goto yesno; > > yesno: if (sysctl(mib, 2, &value, &len, NULL, 0) == -1) > return (-1); >--- lib/libc/gen/sysconf.3- Sun May 20 22:24:28 2001 >+++ lib/libc/gen/sysconf.3 Sun May 20 22:26:48 2001 >@@ -151,6 +151,8 @@ > .It Li _SC_2_UPE > Return 1 if the system supports the User Portability Utilities Option, > otherwise \-1. >+.It Li _SC_NPROCESSORS_CONF >+Returns the number of processors in the system. > .El > .Sh RETURN VALUES > If the call to >--- sys/sys/unistd.h- Sun May 20 22:08:11 2001 >+++ sys/sys/unistd.h Sun May 20 22:08:48 2001 >@@ -190,6 +190,8 @@ > #define _SC_SEM_VALUE_MAX 50 > #define _SC_SIGQUEUE_MAX 51 > #define _SC_TIMER_MAX 52 >+#define _SC_NPROCESSORS_CONF 53 >+ > > /* POSIX.1B pathconf and fpathconf options */ > #define _PC_ASYNC_IO 53
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27489
: 14662