From owner-freebsd-bugs Sun Sep 9 12:50: 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 B3A9C37B408 for ; Sun, 9 Sep 2001 12:50:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f89Jo1i06108; Sun, 9 Sep 2001 12:50: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 DB3BE37B403 for ; Sun, 9 Sep 2001 12:40:10 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f89JeAP05207; Sun, 9 Sep 2001 12:40:10 -0700 (PDT) (envelope-from nobody) Message-Id: <200109091940.f89JeAP05207@freefall.freebsd.org> Date: Sun, 9 Sep 2001 12:40:10 -0700 (PDT) From: Steve Watt To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: bin/30464: pthread mutex attributes -- pshared Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30464 >Category: bin >Synopsis: pthread mutex attributes -- pshared >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 09 12:50:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Steve Watt >Release: 4.3-STABLE 2001-04-24 >Organization: >Environment: FreeBSD wattres.Watt.COM 4.3-STABLE FreeBSD 4.3-STABLE #9: Sun May 20 13:25:38 PDT 2001 root@wattres.Watt.COM:/old/usr/obj/usr/src/sys/WATTRES i386 >Description: The pshared attribute is not mentioned on the pthread_mutexattr_* manual page, although "man pthread_mutexattr_getpshared" gets you that page. Also, the functions pthread_mutexattr_{get,set}pshared are not implemented, even though POSIX requires them (yes, even if you don't support anything but PTHREAD_PROCESS_PRIVATE). >How-To-Repeat: man pthread_mutexattr_getpshared search for pshared Attempt to compile the following program: #include int main(int argc, char **argv) { pthread_mutexattr_t ma; pthread_mutexattr_init(&ma); pthread_mutexattr_setpshared(&ma, PTHREAD_PROCESS_PRIVATE); exit(0); } >Fix: Add the pthread_mutexattr_{g,s}etpshared() functions, just like the rwlock has. Add mention of them to the man page. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message