From nobody@FreeBSD.org  Thu Aug 26 05:01:48 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id B26081065698
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Aug 2010 05:01:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id A29DC8FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Aug 2010 05:01:48 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7Q51mMV030706
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Aug 2010 05:01:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o7Q51m7u030695;
	Thu, 26 Aug 2010 05:01:48 GMT
	(envelope-from nobody)
Message-Id: <201008260501.o7Q51m7u030695@www.freebsd.org>
Date: Thu, 26 Aug 2010 05:01:48 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] Address missing EINVAL requirement for cpu_setaffinity(2)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         149978
>Category:       docs
>Synopsis:       [PATCH] Address missing EINVAL requirement for cpu_setaffinity(2)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gjb
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 26 05:10:05 UTC 2010
>Closed-Date:    Tue Feb 15 01:35:32 UTC 2011
>Last-Modified:  Sun Feb 03 22:29:03 UTC 2013
>Originator:     Garrett Cooper
>Release:        9-CURRENT
>Organization:
Cisco Systems, Inc.
>Environment:
FreeBSD bayonetta.local 9.0-CURRENT FreeBSD 9.0-CURRENT #9 r211309M: Thu Aug 19 22:50:36 PDT 2010     root@bayonetta.local:/usr/obj/usr/src/sys/BAYONETTA  amd64
>Description:
The manpage as it stands doesn't note that the syscall can return EINVAL if the mask argument is invalid.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: lib/libc/sys/cpuset_getaffinity.2
===================================================================
--- lib/libc/sys/cpuset_getaffinity.2	(revision 210824)
+++ lib/libc/sys/cpuset_getaffinity.2	(working copy)
@@ -121,6 +121,12 @@
 or
 .Fa which
 argument was not a valid value.
+.It Bq Er EINVAL
+The
+.Fa mask
+argument specified when calling
+.Fn cpuset_setaffinity
+was not a valid value.
 .It Bq Er EDEADLK
 The
 .Fn cpuset_setaffinity


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->gjb 
Responsible-Changed-By: gjb 
Responsible-Changed-When: Mon Sep 6 21:49:40 UTC 2010 
Responsible-Changed-Why:  
I'll take this. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=149978 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/149978: commit references a PR
Date: Fri, 10 Sep 2010 23:15:10 +0000 (UTC)

 Author: gjb (doc committer)
 Date: Fri Sep 10 23:15:05 2010
 New Revision: 212438
 URL: http://svn.freebsd.org/changeset/base/212438
 
 Log:
   Add EINVAL to list of possible return values for cpuset_getaffinity(2).
   
   PR:		149978
   Submitted by:	gcooper
   Patch by:	gcooper
   Approved by:	keramida (mentor)
   MFC after:	1 week
 
 Modified:
   head/lib/libc/sys/cpuset_getaffinity.2
 
 Modified: head/lib/libc/sys/cpuset_getaffinity.2
 ==============================================================================
 --- head/lib/libc/sys/cpuset_getaffinity.2	Fri Sep 10 21:53:47 2010	(r212437)
 +++ head/lib/libc/sys/cpuset_getaffinity.2	Fri Sep 10 23:15:05 2010	(r212438)
 @@ -121,6 +121,12 @@ The
  or
  .Fa which
  argument was not a valid value.
 +.It Bq Er EINVAL
 +The
 +.Fa mask
 +argument specified when calling
 +.Fn cpuset_setaffinity
 +was not a valid value.
  .It Bq Er EDEADLK
  The
  .Fn cpuset_setaffinity
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->patched 
State-Changed-By: gjb 
State-Changed-When: Fri Sep 10 23:25:14 UTC 2010 
State-Changed-Why:  
Patched in HEAD.  MFC in 1 week. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=149978 
State-Changed-From-To: patched->closed 
State-Changed-By: gjb 
State-Changed-When: Tue Feb 15 01:35:12 UTC 2011 
State-Changed-Why:  
MFC'd to stable/8 and stable/7.  Thanks! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=149978 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/149978: commit references a PR
Date: Tue, 15 Feb 2011 01:34:09 +0000 (UTC)

 Author: gjb (doc committer)
 Date: Tue Feb 15 01:33:59 2011
 New Revision: 218692
 URL: http://svn.freebsd.org/changeset/base/218692
 
 Log:
   MFC 212438:
   Add EINVAL to list of possible return values for cpuset_getaffinity(2).
   
   PR:		149978
   Approved by:	keramida (mentor)
 
 Modified:
   stable/8/lib/libc/sys/cpuset_getaffinity.2
 Directory Properties:
   stable/8/lib/libc/   (props changed)
   stable/8/lib/libc/stdtime/   (props changed)
 
 Modified: stable/8/lib/libc/sys/cpuset_getaffinity.2
 ==============================================================================
 --- stable/8/lib/libc/sys/cpuset_getaffinity.2	Mon Feb 14 21:50:51 2011	(r218691)
 +++ stable/8/lib/libc/sys/cpuset_getaffinity.2	Tue Feb 15 01:33:59 2011	(r218692)
 @@ -121,6 +121,12 @@ The
  or
  .Fa which
  argument was not a valid value.
 +.It Bq Er EINVAL
 +The
 +.Fa mask
 +argument specified when calling
 +.Fn cpuset_setaffinity
 +was not a valid value.
  .It Bq Er EDEADLK
  The
  .Fn cpuset_setaffinity
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/149978: commit references a PR
Date: Tue, 15 Feb 2011 01:34:52 +0000 (UTC)

 Author: gjb (doc committer)
 Date: Tue Feb 15 01:34:46 2011
 New Revision: 218693
 URL: http://svn.freebsd.org/changeset/base/218693
 
 Log:
   MFC 212438:
   Add EINVAL to list of possible return values for cpuset_getaffinity(2).
   
   PR:		149978
   Approved by:	keramida (mentor)
 
 Modified:
   stable/7/lib/libc/sys/cpuset_getaffinity.2
 Directory Properties:
   stable/7/lib/libc/   (props changed)
   stable/7/lib/libc/stdtime/   (props changed)
 
 Modified: stable/7/lib/libc/sys/cpuset_getaffinity.2
 ==============================================================================
 --- stable/7/lib/libc/sys/cpuset_getaffinity.2	Tue Feb 15 01:33:59 2011	(r218692)
 +++ stable/7/lib/libc/sys/cpuset_getaffinity.2	Tue Feb 15 01:34:46 2011	(r218693)
 @@ -121,6 +121,12 @@ The
  or
  .Fa which
  argument was not a valid value.
 +.It Bq Er EINVAL
 +The
 +.Fa mask
 +argument specified when calling
 +.Fn cpuset_setaffinity
 +was not a valid value.
  .It Bq Er EDEADLK
  The
  .Fn cpuset_setaffinity
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
