Bug 29492

Summary: sysconf(_SC_NPROCESSORS_ONLN) not implemented, but defined by POSIX
Product: Base System Reporter: June-Yen Huang <jihuang>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-STABLE   
Hardware: Any   
OS: Any   

Description June-Yen Huang 2001-08-07 05:10:00 UTC
	Until now, the way to get number of CPUs under FreeBSD is use sysctl(3)
	only!  However, POSIX had defined sysconf(3) with _SC_NPROCESSORS_ONLN
	to do this, while FreeBSD series don't implement...
	
	Software Development will use standard/portable system call to get
	this information. I find this problem when I tracing BIND v9 codes.
	BIND9 developers accept a patch of using sysctl(3) instead sysconf(3).
	And they also request FreeBSD could follow POSIX in the furture.
Comment 1 Jeroen Ruigrok van der Werven freebsd_committer freebsd_triage 2001-08-27 10:21:02 UTC
State Changed
From-To: open->analyzed

Working on the code to support this.
Comment 2 Jeroen Ruigrok van der Werven freebsd_committer freebsd_triage 2001-11-16 10:28:26 UTC
Responsible Changed
From-To: asmodai->freebsd-bugs

Move back to the bugs list.
Comment 3 Mike Barcroft freebsd_committer freebsd_triage 2002-12-01 15:54:45 UTC
State Changed
From-To: analyzed->closed

This is fixed in -CURRENT, so 5.0-RELEASE will support this.