From nobody Tue Feb 14 20:05:40 2023 X-Original-To: standards@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PGXJN6KpMz3pvpv for ; Tue, 14 Feb 2023 20:05:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PGXJN43kfz3wxk for ; Tue, 14 Feb 2023 20:05:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676405140; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=231rsJNS90a6D74JcA4TCef8dQJTk0YoSzxmD0n+YSA=; b=kdkPQE4pg5cjYebTIXEhoOgml+TRe7R1O7OmXhZjgUq0wu7l67tad8o2sfGglWeeUyDPsf czof+/9NAob2BU8kwKtDuivJKgAl6GhsRANkpplOY8+93TzYduS3YlD9YpZ1yt51onsAWs /s0uey7bBDoC0FzrL29Lfu1+DXBKN856/XauR7cp9WJ0/HlhBBps2OA5jXtT/4ChaUSqk0 NUvsGfxFAROnoC1jxowZ+zRwHlI2mkSa8Sj9lMhReYSXpGqOKJtXMp7qZqwLJjXqOkgXQj dYy5Re5i0yFcTc227D+0i1vk92yLRH4jUjE0xn9FZgVQGJsWfbfM05ieTBK1dA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676405140; a=rsa-sha256; cv=none; b=QQn2eMf89WBxMIFD5eNOWG8Jda9NwtnfVHJFmBhvJ1a9aM0544q8FUIKkwADo+pZhP1g7k Lgf18l6v4GG23EixYsBMzwpF+mXvH4PNsQbEMTZ0yfJrAvBUU4YDjN8L6PJxiEe18/Agxw ajgW9UY4BxZ38+JaMpRtvHG9st5cs+I1JS3/7DYfDZL+bL+dOpBIRKl3jrTrIrqX3kRxsQ eqVvfgTzrbBC06voZ/W9sQURHPZ0ZvHMyKwlJqwVOGg7DWepkfzDUdJzdQBm00pBC9NjaY km4HFeAuyJRWwIQCQ/6+7dyEwOumR6d9bCMYO59cWC3p3//wqF6I6NqALflvOA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PGXJN37Bgz1Bl4 for ; Tue, 14 Feb 2023 20:05:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 31EK5e6G021925 for ; Tue, 14 Feb 2023 20:05:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31EK5eVU021924 for standards@FreeBSD.org; Tue, 14 Feb 2023 20:05:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 230330] _SC_NPROCESSORS_ONLN reports offline CPUs Date: Tue, 14 Feb 2023 20:05:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: marklmi26-fbsd@yahoo.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230330 --- Comment #9 from Mark Millard --- (In reply to Mark Millard from comment #7) Looking at the code that resulted is probably easier than interpreting the bugzilla wording: https://sourceware.org/git/?p=3Dglibc.git;a=3Dcommitdiff;h=3D97a912f7a832a6= 62960749948049e15f3aecb2a7;hp=3Df787e138aa0bf677bf74fa2a08595c446292f3d7 shows: __get_nprocs now first tries: int result =3D read_sysfs_file ("/sys/devices/system/cpu/online"); __get_nprocs_conf now first tries: int result =3D read_sysfs_file ("/sys/devices/system/cpu/possible"); It was __get_nprocs_conf that had the semantic change back to the old way. __get_nprocs had stayed with /sys/devices/system/cpu/online use in the first place. For reference: case _SC_NPROCESSORS_CONF: return __get_nprocs_conf (); case _SC_NPROCESSORS_ONLN: return __get_nprocs (); --=20 You are receiving this mail because: You are the assignee for the bug.=