From nobody Mon Oct 24 15:57:48 2022
X-Original-To: dev-commits-src-branches@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 4Mx08X430Sz4g3Wd;
	Mon, 24 Oct 2022 15:57:48 +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 4Mx08X3TcLz3YbM;
	Mon, 24 Oct 2022 15:57:48 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1666627068;
	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=pXdatG9TnUE8Yvr01PXgWUhMiL3Kg7eFLdnL2QbQed4=;
	b=WReWr+6M+63dV23TEKr0p/MRwvOum+ZCs8IS0auj7Hb+Jgfp1yMrhKBhh4IDvr8BOu4aOH
	6vD5NlynsxkYvF5xNVVsNX5TlJySDheX+NZ9Wrt8GHQg1RRmNyf6btV9fPxfeg5ICuy8ZV
	cFXfueGUDBY6B132Y7mk3AcR9rdAdQrM7J8cpNurx28AgEJBEt/AUHB/pBmzX65bqa5E0V
	aSK3OBBpO8+RsGrPbDaU0wXgYWamzj+zynviRQvNtb43bL+qaTo7Nehu1lPA993OHkYwRs
	Cb0vbp0HGYkYmT5l5WSetp14Fp8dyq3zbXoiCDWOicCM2nymtcv2WhPKM5OO4A==
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 4Mx08X2Vl7zHbK;
	Mon, 24 Oct 2022 15:57:48 +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 29OFvmuh014225;
	Mon, 24 Oct 2022 15:57:48 GMT
	(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
	by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29OFvmU3014223;
	Mon, 24 Oct 2022 15:57:48 GMT
	(envelope-from git)
Date: Mon, 24 Oct 2022 15:57:48 GMT
Message-Id: <202210241557.29OFvmU3014223@gitrepo.freebsd.org>
To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org,
        dev-commits-src-branches@FreeBSD.org
From: Mitchell Horne <mhorne@FreeBSD.org>
Subject: git: f18e56c17ae2 - stable/12 - pthread_setschedparam(3): document EPERM return
List-Id: Commits to the stable branches of the FreeBSD src repository <dev-commits-src-branches.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches
List-Help: <mailto:dev-commits-src-branches+help@freebsd.org>
List-Post: <mailto:dev-commits-src-branches@freebsd.org>
List-Subscribe: <mailto:dev-commits-src-branches+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-src-branches+unsubscribe@freebsd.org>
Sender: owner-dev-commits-src-branches@freebsd.org
X-BeenThere: dev-commits-src-branches@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/12
X-Git-Reftype: branch
X-Git-Commit: f18e56c17ae2cb6b190fe4cf53a3407201f9e3b0
Auto-Submitted: auto-generated
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1666627068;
	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=pXdatG9TnUE8Yvr01PXgWUhMiL3Kg7eFLdnL2QbQed4=;
	b=YJcXv2do7wJVDHleUIXwIfPHwcd2SqoH7/eKnI2CVv7v5vG5G1NfuWCdd8VD/pvJJ1x42+
	G2/6qOUBScxEtX9lKHhdmpV7kcad/RNKG33DjyMupX7Zr2lwM4l07VcD2j2GWZmDOD0iwl
	a/lq4zNzD8DWEetU4a1MbowY11IGQH3wio4uYExawN1gcvWZT3Ohg93le0sQ/nVic+vXUB
	+7/k1k4F4fpY5o0D2Bq2iuFHyDvSMg+5BxKWy3y8FZnnDrnCSIr/YUZcGZ1oshxfQ245xE
	cOYO88S8huI+TqdnP1z/rCi5NLwfJ0+qXj4IzYjxQEVGz9+iPlcREpCpd+cEXg==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666627068; a=rsa-sha256; cv=none;
	b=dwA1RWn0tYjlS0qdZ6ehN4UQYnNfL7wOnfBusZ17nW/aNbcMGGm69FA5NrxnrxN7xfQdw3
	O/D36bl9AHmwuluHM36EY5y9YjEvgJrZcGh8BwJo/Xc3re2RnIgP46oFXKkQbUXUkeFmda
	xwALwaRomvWDMakcCbDaqPL1ImZ9Sjb58ztaw8YD1smTOyv7xoc/rW0WwTQwsZETlNnKwy
	oDJGSQRl/CFKP+pQHWtaLpT8hVHpOvvZzA6VzznFpmyzMPl56G7c8Ozm5BqDzvzKRueLvI
	WMlVdLfKXs75gB8mMJ9EPdLXNG1xG6/PPOPYRxPAcu40PTYxOclrNZ0JsG+yLg==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
X-ThisMailContainsUnwantedMimeParts: N

The branch stable/12 has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=f18e56c17ae2cb6b190fe4cf53a3407201f9e3b0

commit f18e56c17ae2cb6b190fe4cf53a3407201f9e3b0
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2022-10-17 18:11:13 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2022-10-24 15:56:13 +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 .