From owner-freebsd-threads@FreeBSD.ORG Tue Mar 8 15:04:41 2005 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7EDC16A4CE for ; Tue, 8 Mar 2005 15:04:41 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9307643D54 for ; Tue, 8 Mar 2005 15:04:41 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j28F4fXj007529 for ; Tue, 8 Mar 2005 07:04:41 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j28F4f1d007528 for freebsd-threads@freebsd.org; Tue, 8 Mar 2005 07:04:41 -0800 Date: Tue, 8 Mar 2005 07:04:41 -0800 From: Brooks Davis To: freebsd-threads@freebsd.org Message-ID: <20050308150441.GB31278@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tjCHc7DPkfUGtrlw" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Subject: pthread_t not defined by sys/types.h X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 15:04:42 -0000 --tjCHc7DPkfUGtrlw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable It turns out that SUSv3: http://www.opengroup.org/onlinepubs/000095399/toc.htm states that following variables must be defined in sys/types.h (their definitions in pthread.h must be identical) pthread_attr_t pthread_barrier_t pthread_barrierattr_t pthread_cond_t pthread_condattr_t pthread_key_t pthread_mutex_t pthread_mutexattr_t pthread_once_t pthread_rwlock_t pthread_rwlockattr_t pthread_spinlock_t pthread_t It has been reported that Sun Grid Engine relies on this behavior. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --tjCHc7DPkfUGtrlw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCLb8EXY6L6fI4GtQRAiQQAKCSyRG5JMxVmlDYE/7P0fEN5msnMgCdF6Mq O/ignkOhH0qu1h9JTrMKDPU= =5ti+ -----END PGP SIGNATURE----- --tjCHc7DPkfUGtrlw--