From owner-freebsd-bugs Mon May 14 1:40: 5 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0BA1A37B43C for ; Mon, 14 May 2001 01:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4E8e1881132; Mon, 14 May 2001 01:40:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0A94B37B423 for ; Mon, 14 May 2001 01:33:33 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4E8XWm80386; Mon, 14 May 2001 01:33:32 -0700 (PDT) (envelope-from nobody) Message-Id: <200105140833.f4E8XWm80386@freefall.freebsd.org> Date: Mon, 14 May 2001 01:33:32 -0700 (PDT) From: rblaze@mail.ru To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/27311: pthread_attr_setscope always fails Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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