Date: Mon, 14 May 2001 01:33:32 -0700 (PDT) From: rblaze@mail.ru To: freebsd-gnats-submit@FreeBSD.org Subject: misc/27311: pthread_attr_setscope always fails Message-ID: <200105140833.f4E8XWm80386@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 27311
>Category: misc
>Synopsis: pthread_attr_setscope always fails
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon May 14 01:40:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Andrey Sverdlichenko
>Release: 4.2-STABLE
>Organization:
>Environment:
FreeBSD xen.infosec.ru 4.2-STABLE FreeBSD 4.2-STABLE #0: Fri Feb 23 13:33:20 MSK 2001 blaze@xen.infosec.ru:/var/tmp/src/sys/compile/XEN i386
>Description:
This is code from /usr/src/lib/libc_r/uthread/uthread_attr_setscope.c :
int
pthread_attr_setscope(pthread_attr_t *attr, int contentionscope)
{
int ret = 0;
if ((attr == NULL) || (*attr == NULL)) {
/* Return an invalid argument: */
ret = EINVAL;
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
>> } else if ((contentionscope != PTHREAD_SCOPE_PROCESS) ||
>> (contentionscope != PTHREAD_SCOPE_SYSTEM)) {
/* We don't support PTHREAD_SCOPE_SYSTEM. */
ret = ENOTSUP;
} else
(*attr)->flags |= contentionscope;
return(ret);
}
Since PTHREAD_SCOPE_PROCESS != PTHREAD_SCOPE_SYSTEM, this function
always fails.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105140833.f4E8XWm80386>
