Date: Wed, 29 Jul 1998 01:24:02 -0700 (PDT) From: gdc@xenetic.fi To: freebsd-gnats-submit@FreeBSD.ORG Subject: i386/7426: Bugs in macro definitions of pthreads. Message-ID: <199807290824.BAA09920@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 7426 >Category: i386 >Synopsis: Bugs in macro definitions of pthreads. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 29 01:30:01 PDT 1998 >Last-Modified: >Originator: Dado Colussi >Organization: Xenetic Oy >Release: current (1998-07-25) >Environment: FreeBSD tuska.xenetic.fi 3.0-19980725-SNAP FreeBSD 3.0-19980725-SNAP #0: Mon Jul 27 00:35:04 EEST 1998 root@tuska.xenetic.fi:/usr/src/sys/compile/SMP-TUSKA i386 >Description: _POSIX_THREADS macro should be defined in unistd.h instead of pthread.h. _PTHREAD_THREAD_SAFE_FUNCTIONS shouldn't be defined at all since the functions it claims to be available do not exist. PTHREAD_MUTEX_INITIALIZER does not exist. For verification, consult Butenhof's Programming with POSIX threads, section 3.2.1 "Creating and destroying a mutex" on page 49, section 9.1 "POSIX 1003.1c-1995 options" on page 307 and section 9.3.11 "Thread-safe functions" on page 388. >How-To-Repeat: >Fix: Move the _POSIX_THREADS macro from pthread.h to unistd.h. Move the _PTHREAD_THREAD_SAFE_FUNCTIONS to unistd.h and comment it out. I don't know how the PTHREAD_MUTEX_INITIALIZER should be implemented, but some of your team members should know it. >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?199807290824.BAA09920>