From owner-freebsd-current Thu Feb 27 9:32:18 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA9D137B401 for ; Thu, 27 Feb 2003 09:32:16 -0800 (PST) Received: from espresso.bsdmike.org (espresso.bsdmike.org [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D09243FAF for ; Thu, 27 Feb 2003 09:32:16 -0800 (PST) (envelope-from mike@espresso.bsdmike.org) Received: by espresso.bsdmike.org (Postfix, from userid 1002) id C93909C5F; Thu, 27 Feb 2003 12:19:35 -0500 (EST) Date: Thu, 27 Feb 2003 12:19:35 -0500 From: Mike Barcroft To: John Polstra Cc: current@freebsd.org Subject: Re: OpenSSL question for id_function() Message-ID: <20030227121935.B93968@espresso.bsdmike.org> References: <20030225155724.GB9400@attbi.com> <200302271640.h1RGeMx2029701@vashon.polstra.com> <20030227114651.A93968@espresso.bsdmike.org> <200302271706.h1RH6fuU029749@vashon.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302271706.h1RH6fuU029749@vashon.polstra.com>; from jdp@polstra.com on Thu, Feb 27, 2003 at 09:06:41AM -0800 Organization: The FreeBSD Project Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG John Polstra writes: > In article <20030227114651.A93968@espresso.bsdmike.org>, > Mike Barcroft wrote: > > John Polstra writes: > > > FreeBSD violates POSIX in this respect. The 1003.1 standard > > > (section 2.5) requires pthread_t to be an arithmetic type. > > > > It looks like this requirement was removed in POSIX.1-2001. > > Interesting. I don't have that standard and wasn't aware of the > change. Are you sure the requirement was removed? It was hidden > away in an obscure place in the 1996 edition of the standard. > There's a table of "Primitive System Data Types" containing the > usual suspects (dev_t, gid_t, uid_t, ...) and including the thread > types I mentioned. Then there's a sentence in the nearby text that > says, "All of the types listed in Table 2-1 shall be arithmetic > types ..." Here's the text: : 12974 All of the types shall be defined as arithmetic types of an appropriate length, with the following : 12975 exceptions: : 12976 XSI key_t : 12977 THR pthread_attr_t : 12978 BAR pthread_barrier_t : 12979 pthread_barrierattr_t : 12980 THR pthread_cond_t : 12981 pthread_condattr_t : 12982 pthread_key_t : 12983 pthread_mutex_t : 12984 pthread_mutexattr_t : 12985 pthread_once_t : 12986 pthread_rwlock_t : 12987 pthread_rwlockattr_t : 12988 SPI pthread_spinlock_t : 12989 TRC trace_attr_t : 12990 trace_event_id_t : 12991 TRC TEF trace_event_set_t : 12992 TRC trace_id_t So it looks like pthread_t must be an arithmetic type, but not the others. My mistake. It goes on to say: : 13010 There are no defined comparison or assignment operators for the following types: : 13011 THR pthread_attr_t : 13012 BAR pthread_barrier_t : 13013 pthread_barrierattr_t : 13014 THR pthread_cond_t : 13015 pthread_condattr_t : 13016 pthread_mutex_t : 13017 pthread_mutexattr_t : 13018 pthread_rwlock_t : 13019 pthread_rwlockattr_t : 13020 SPI pthread_spinlock_t : 13021 TRC trace_attr_t Again pthread_t isn't listed. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message