From owner-freebsd-bugs Wed Jul 29 01:31:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA11100 for freebsd-bugs-outgoing; Wed, 29 Jul 1998 01:31:25 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA11091 for ; Wed, 29 Jul 1998 01:31:24 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id BAA02625; Wed, 29 Jul 1998 01:30:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA09920; Wed, 29 Jul 1998 01:24:02 -0700 (PDT) (envelope-from nobody) Message-Id: <199807290824.BAA09920@hub.freebsd.org> Date: Wed, 29 Jul 1998 01:24:02 -0700 (PDT) From: gdc@xenetic.fi To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: i386/7426: Bugs in macro definitions of pthreads. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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