docs/149978: [PATCH] Address missing EINVAL requirement for cpu_setaffinity(2)
Garrett Cooper
gcooper at FreeBSD.org
Thu Aug 26 05:10:06 UTC 2010
>Number: 149978
>Category: docs
>Synopsis: [PATCH] Address missing EINVAL requirement for cpu_setaffinity(2)
>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: Thu Aug 26 05:10:05 UTC 2010
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
More information about the freebsd-doc
mailing list