From nobody Sun Jan 29 12:38:22 2023 X-Original-To: dev-commits-src-all@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 4P4W7g3Df4z3cQ8Z; Sun, 29 Jan 2023 12:38:23 +0000 (UTC) (envelope-from git@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 4P4W7g12xCz3rn2; Sun, 29 Jan 2023 12:38:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674995903; 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; bh=NPtdRXCGpFoI/UfMITHP+8VFiNkmtQw1i2q5yATcupE=; b=ubnLc+ka0FP++42BRH3V91DSBcaa/V8hApqhvj/lbmUgv6r28HJZNmlXgnrPfnJGR06DkX 5nIFcpAeAOLjL4PCdA4eMp/xQsjKRHWuYiufSrPoPqhtOsab8y2kqzHxoMOxA70Y0q13GU Zpl6HvJlzcnEWNBcUBq9+dG36DdqMsQYwUmGdsVgmOzdGzFPT9jguS8ELARzeV8rj7McbT RG45OzECmqHOsK0a1nJ3VmsEzzVn4oftuh7HM9lVZ5RX7qxMIXHDfAYCupLArRrJ3FOIaq v80sDTVFxc2NEsnWm/Zk9kdRT5dofIz7dKlZ1Lnxqp4CQzDwJHEq1QKmToSrfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674995903; 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; bh=NPtdRXCGpFoI/UfMITHP+8VFiNkmtQw1i2q5yATcupE=; b=DA0erQ0/tc8ooR6zYSkGeQ1IJx94rfUscv5K+OwWHZZH3g4eVO9QtywFBrA4MBPPKJtHdA WTMyN5j1Yt8skYoxnihgz+4oNOT6CY/joz8qPIDw6vI+EZkgSj+mY5gT2F5TilktuokjnD v8bN3D4vNGgUa4txabU23XpEs2wkiuy+9UD/r5LHPBKvAfIT3pt3VOmEHvyLpEw8yMJoLy egosGTnorea8+QO7LNUvilPBg0mOh0agg0/92kwRr4IoG18hv5gdHGcnct/eh/RBKB4KOC i9luirSkIueInrEAxysG7vBRBrav4OiU7O2qi+xWjfPtnv7bog7Q/ZjdhwEvCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674995903; a=rsa-sha256; cv=none; b=pdIZkNUVm69W9ImtYwPP84rPxrfkSipSBzwg5XX2WqzLT+ozU3+MVfiIf42HzxmMsnaA3M scU51GULA5bVxKda/6d73CyRuR8S+9GrpaB0G7BLj3Z9GF3MYThydgJWwLPn8GRNXQrdax hjA64Pc6DCk1FAY500jb2VGINgWTKeXyy8m4jMbx+fX75Omo6Z5s4AbSZNEAv3MztCij+m ORhz5T7dCtDDZJJgyFBhVYZ7XC+zMvT+LnKUoSiOpBOp65gckrUX8//w8BxwtIjvZBLCDG l4ZQYKBTpBv8m5XfODlVHf1l47eUv4BG9sHyfhrclymj9U6BHcijSkIaSI9dlQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4P4W7g077mzTFH; Sun, 29 Jan 2023 12:38:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30TCcMQB051008; Sun, 29 Jan 2023 12:38:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30TCcMDT051007; Sun, 29 Jan 2023 12:38:22 GMT (envelope-from git) Date: Sun, 29 Jan 2023 12:38:22 GMT Message-Id: <202301291238.30TCcMDT051007@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dmitry Chagin Subject: git: 2b87addf526e - main - libthr: Fix pthread_attr_[g|s]etaffinity_np manual. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dchagin X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2b87addf526e058158a332547d44b24a80f71321 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dchagin: URL: https://cgit.FreeBSD.org/src/commit/?id=2b87addf526e058158a332547d44b24a80f71321 commit 2b87addf526e058158a332547d44b24a80f71321 Author: Dmitry Chagin AuthorDate: 2023-01-29 12:37:18 +0000 Commit: Dmitry Chagin CommitDate: 2023-01-29 12:37:18 +0000 libthr: Fix pthread_attr_[g|s]etaffinity_np manual. Fix my fault in f35093f8. MFC after: 1 week --- share/man/man3/pthread_attr_affinity_np.3 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/share/man/man3/pthread_attr_affinity_np.3 b/share/man/man3/pthread_attr_affinity_np.3 index 2c85aee9ac19..c1b9d0d79cd8 100644 --- a/share/man/man3/pthread_attr_affinity_np.3 +++ b/share/man/man3/pthread_attr_affinity_np.3 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd April 27, 2022 +.Dd January 29, 2023 .Dt PTHREAD_ATTR_AFFINITY_NP 3 .Os .Sh NAME @@ -52,16 +52,17 @@ are composed using the .Dv CPU_SET macros. If the user-supplied mask is not large enough to fit all of the matching CPUs, -.Fn cpuset_getaffinity +.Fn pthread_attr_getaffinity_np fails with .Er ERANGE . Calls to -.Fn cpuset_setaffinity +.Fn pthread_attr_setaffinity_np tolerate masks of any size with no restrictions. -The kernel uses the meaningful part of the mask, where the upper bound is +.Fn pthread_attr_setaffinity_np +uses the meaningful part of the mask, where the upper bound is the maximum CPU id present in the system. If bits for non-existing CPUs are set, calls to -.Fn cpuset_setaffinity +.Fn pthread_attr_setaffinity_np fails with .Er EINVAL . .Pp