From owner-freebsd-standards@FreeBSD.ORG Tue Feb 3 08:33:36 2004 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28F7216A4CE for ; Tue, 3 Feb 2004 08:33:36 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 124BF43D1D for ; Tue, 3 Feb 2004 08:33:35 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i13GX8iw026695; Tue, 3 Feb 2004 11:33:08 -0500 (EST) Date: Tue, 3 Feb 2004 11:33:08 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Craig Rodrigues In-Reply-To: <20040203162908.GA1122@crodrigues.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: standards@freebsd.org Subject: Re: semaphore/timespec question X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Feb 2004 16:33:36 -0000 On Tue, 3 Feb 2004, Craig Rodrigues wrote: > On Tue, Feb 03, 2004 at 11:11:09AM -0500, Daniel Eischen wrote: > > (and also <_semaphore.h>) now need struct timespec to be > > defined. What's the preferred way to do this? Add a "struct timespec;" > > to <_semaphore.h> or ? > > > According to: > http://www.opengroup.org/onlinepubs/007904975/functions/sem_timedwait.html > > "The timespec data type is defined as a structure in the > header." > > It would seem to me that adding "struct timespec;" would > be OK, but I defer to one of the standards gurus to interpret this. > > The <_semaphore.h> header seems to only have stuff > for the ksem_* functions. Are you adding stuff in there > which uses struct timespec? Yes, ksem_timedwait(). -- Dan Eischen