From jihuang@cdns15.iis.sinica.edu.tw  Mon Aug  6 21:02:24 2001
Return-Path: <jihuang@cdns15.iis.sinica.edu.tw>
Received: from cdns15.iis.sinica.edu.tw (cdns15.iis.sinica.edu.tw [140.109.22.15])
	by hub.freebsd.org (Postfix) with ESMTP id 8832837B403
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  6 Aug 2001 21:02:23 -0700 (PDT)
	(envelope-from jihuang@cdns15.iis.sinica.edu.tw)
Received: (from jihuang@localhost)
	by cdns15.iis.sinica.edu.tw (8.11.4/8.11.4) id f773xS165471;
	Tue, 7 Aug 2001 11:59:28 +0800 (CST)
	(envelope-from jihuang)
Message-Id: <200108070359.f773xS165471@cdns15.iis.sinica.edu.tw>
Date: Tue, 7 Aug 2001 11:59:28 +0800 (CST)
From: June-Yen Huang <jihuang@gate.sinica.edu.tw>
Reply-To: June-Yen Huang <jihuang@gate.sinica.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: sysconf(_SC_NPROCESSORS_ONLN) not implemented, but defined by POSIX
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         29492
>Category:       kern
>Synopsis:       sysconf(_SC_NPROCESSORS_ONLN) not implemented, but defined by POSIX
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 06 21:10:00 PDT 2001
>Closed-Date:    Sun Dec 01 07:55:52 PST 2002
>Last-Modified:  Sun Dec 01 07:55:52 PST 2002
>Originator:     jihuang@gate.sinica.edu.tw
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
IIS, Aeademia Sinica
>Environment:
System: FreeBSD cdns15.iis.sinica.edu.tw 4.3-STABLE FreeBSD 4.3-STABLE #0: Thu Jul 26 14:54:06 CST 2001 root@cdns15.iis.sinica.edu.tw:/usr/obj/usr/src/sys/Arcturus i386

>Description:
	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.

>How-To-Repeat:
	
>Fix:

	
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: asmodai 
State-Changed-When: Mon Aug 27 02:21:02 PDT 2001 
State-Changed-Why:  
Working on the code to support this. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29492 
Responsible-Changed-From-To: asmodai->freebsd-bugs 
Responsible-Changed-By: asmodai 
Responsible-Changed-When: Fri Nov 16 02:28:26 PST 2001 
Responsible-Changed-Why:  
Move back to the bugs list. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29492 
State-Changed-From-To: analyzed->closed 
State-Changed-By: mike 
State-Changed-When: Sun Dec 1 07:54:45 PST 2002 
State-Changed-Why:  
This is fixed in -CURRENT, so 5.0-RELEASE will support this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=29492 
>Unformatted:
