From mi@aldan.algebra.com  Wed Jan 30 02:27:40 2013
Return-Path: <mi@aldan.algebra.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 8EBE946C
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Jan 2013 02:27:40 +0000 (UTC)
	(envelope-from mi@aldan.algebra.com)
Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102])
	by mx1.freebsd.org (Postfix) with ESMTP id 3B5987DB
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 30 Jan 2013 02:27:39 +0000 (UTC)
Received: from mr16.lnh.mail.rcn.net ([207.172.157.36])
  by smtp02.lnh.mail.rcn.net with ESMTP; 29 Jan 2013 21:27:34 -0500
Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11])
	by mr16.lnh.mail.rcn.net (MOS 4.3.4-GA)
	with ESMTP id CFG52862;
	Tue, 29 Jan 2013 21:27:33 -0500
Received: from pool-173-70-92-11.nwrknj.fios.verizon.net (HELO narawntapu.narawntapu) ([173.70.92.11])
  by smtp01.lnh.mail.rcn.net with ESMTP; 29 Jan 2013 21:27:33 -0500
Received: from narawntapu.narawntapu (localhost [127.0.0.1])
	by narawntapu.narawntapu (8.14.6/8.14.5) with ESMTP id r0U2ROsL093446
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 29 Jan 2013 21:27:26 -0500 (EST)
	(envelope-from mi@narawntapu.narawntapu)
Received: (from mi@localhost)
	by narawntapu.narawntapu (8.14.6/8.14.5/Submit) id r0U2ROdp093445;
	Tue, 29 Jan 2013 21:27:24 -0500 (EST)
	(envelope-from mi)
Message-Id: <201301300227.r0U2ROdp093445@narawntapu.narawntapu>
Date: Tue, 29 Jan 2013 21:27:24 -0500 (EST)
From: "Mikhail T." <mi@aldan.algebra.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: pthread_setschedparam(3) may fail for undocumented reason (EPERM)
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         175687
>Category:       docs
>Synopsis:       pthread_setschedparam(3) may fail for undocumented reason (EPERM)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 30 02:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail T.
>Release:        FreeBSD 9.1-PRERELEASE amd64
>Organization:
Virtual Estates, Inc.	http://sybpipe.com/
>Environment:

>Description:
	The pthread_setschedparam(3) manual page lists the following
	possible reasons for the function's failure:

	     The pthread_setschedparam() function will fail if:

		     [EINVAL]        Invalid value for policy.
		     [ENOTSUP]       Invalid value for scheduling parameters.
		     [ESRCH]         Non-existent thread thread.

	However, the function may also fail -- with EPERM -- if an
	attempt is made to alter the scheduling policy of a thread.

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
