Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Feb 2004 11:33:08 -0500 (EST)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Craig Rodrigues <rodrigc@crodrigues.org>
Cc:        standards@freebsd.org
Subject:   Re: semaphore/timespec question
Message-ID:  <Pine.GSO.4.10.10402031132420.26474-100000@pcnet5.pcnet.com>
In-Reply-To: <20040203162908.GA1122@crodrigues.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 3 Feb 2004, Craig Rodrigues wrote:

> On Tue, Feb 03, 2004 at 11:11:09AM -0500, Daniel Eischen wrote:
> > <semaphore.h> (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 <semaphore.h>?
> 
> 
> According to:
> http://www.opengroup.org/onlinepubs/007904975/functions/sem_timedwait.html
> 
> "The timespec data type is defined as a structure in the
>  <time.h> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10402031132420.26474-100000>