Date: Sun, 9 Sep 2001 12:40:10 -0700 (PDT) From: Steve Watt <steve@Watt.COM> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/30464: pthread mutex attributes -- pshared Message-ID: <200109091940.f89JeAP05207@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <pthread.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109091940.f89JeAP05207>