From nobody Mon Oct 24 15:54:15 2022 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 4Mx04R6W9xz4g327; Mon, 24 Oct 2022 15:54:15 +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 4Mx04R5s7Yz3X2X; Mon, 24 Oct 2022 15:54:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666626855; 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=yjggP43E1be0XqdoRsJYSD3DGKL/XBpY8fg7pYbmLQI=; b=JYIx3FUePds+buABd9TqSlt6UkmpFWbBCX/YX23+LZRnTbbzxEp8UQG6lU+jyMZroF1RYp uLdUM2JBkUL+FISbQsNTbbTtRAOs4NznBwwLuXkJ65stfhULyllhEbC5+p4OAsVILMfPya LQS4omYRdQaB7LpLPEVkVg9UZ8eRJZj7PGkgqar2UGlzBkzNzz2W/cjzHbEUftrpDy34Ei yYn26jGOUBe5Xyep0Kt5LrbzJzrkPAwTVS59rs0iri4ybvERYIDnkHiL/pu87keTnyDzUN C5LxEMT0fcpgF32zZNSTfJ9NMnwycV7lwd0E9ynjCNe5iXiNsbbob8VV0qcTGA== 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 4Mx04R4rSGzHdX; Mon, 24 Oct 2022 15:54:15 +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 29OFsFOZ013572; Mon, 24 Oct 2022 15:54:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29OFsFcB013571; Mon, 24 Oct 2022 15:54:15 GMT (envelope-from git) Date: Mon, 24 Oct 2022 15:54:15 GMT Message-Id: <202210241554.29OFsFcB013571@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mitchell Horne Subject: git: 4d31ad0a1f35 - stable/13 - pthread_setschedparam(3): document EPERM return 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: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 4d31ad0a1f3539091268ea0f6934cc1a411b0468 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666626855; 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=yjggP43E1be0XqdoRsJYSD3DGKL/XBpY8fg7pYbmLQI=; b=WBo/OJjr5pH4S0PALRL5/sI2W5SUL35fBn14WMhqHQvZ1dtuW8fMXiCKe0jHaP0pAdAqQ9 IXthdUZbCL+pozprUhG0RwyiVD9w10/RFGj7V+uihnc+nGUPT+JDagkef3mTruNe3mWfxE ty6q7J3nWa6HkAU7+cGp01qWSzT6QXdvnHfKF2cTbGgH0QxmhC5tSDHBuvaoCTSK1+ZYe6 oIIRRiBN2nFbLr8oHsQgbMVWgWmW09pI9XyxZSTRJlEh9hCtFmbxUzaTFXkfBKkeycCKSH EaUR8NGZII/EacAO379AwNmoLnc3mBa9D73raB1C+HmxLiv08Df4fshY8emDfA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666626855; a=rsa-sha256; cv=none; b=YgBB81c/P5ttVkooXwOHSecyhYOifrU95MYbrSs+mg1VZgZS+bj1RDrqYgk9nNM97Dbyz3 +KLQCJbsQFWVbzICCxj95M+I4r1gWRcB7XNQ61SML68aeobZTiXKbrJS1hTQFOVKi0i2kO A30fCCsP8Pv/JwgCwvoQowDUI+siDvXLteaCf2Lr47Wr2aVjeQPATHtz94aJ5LRVUfAN47 wMjDJR59hg2V7Z0fuEWwfaK3lvN4tsNLcAie+RhFQ7z/IguctODF6TkgYY8Hcyy7jAE+9R AX2KFman42ElUlCH5wT/iipNm7yXmysHrf6fQqULC8TXMFCcpVj11syu0utrJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=4d31ad0a1f3539091268ea0f6934cc1a411b0468 commit 4d31ad0a1f3539091268ea0f6934cc1a411b0468 Author: Mitchell Horne AuthorDate: 2022-10-17 18:11:13 +0000 Commit: Mitchell Horne CommitDate: 2022-10-24 15:53:11 +0000 pthread_setschedparam(3): document EPERM return In kern_sched_setparam(), before setting any parameters, p_cansched() is called to check that the thread has appropriate privileges. PR: 175687 Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D37020 (cherry picked from commit 04620006b9116049e9e2f27d74417d2d84dc8d10) --- share/man/man3/pthread_schedparam.3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/man/man3/pthread_schedparam.3 b/share/man/man3/pthread_schedparam.3 index 9d8b98a89d96..27ccb0de1ba9 100644 --- a/share/man/man3/pthread_schedparam.3 +++ b/share/man/man3/pthread_schedparam.3 @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 17, 2018 +.Dd October 17, 2022 .Dt PTHREAD_SCHEDPARAM 3 .Os .Sh NAME @@ -75,6 +75,8 @@ Invalid value for .Fa policy . .It Bq Er ENOTSUP Invalid value for scheduling parameters. +.It Bq Er EPERM +The calling thread does not have sufficient privilege to perform the operation. .It Bq Er ESRCH Non-existent thread .Fa thread .