Date: Tue, 3 Feb 2004 11:29:08 -0500 From: Craig Rodrigues <rodrigc@crodrigues.org> To: Daniel Eischen <eischen@vigrid.com> Cc: standards@freebsd.org Subject: Re: semaphore/timespec question Message-ID: <20040203162908.GA1122@crodrigues.org> In-Reply-To: <Pine.GSO.4.10.10402031107360.19046-100000@pcnet5.pcnet.com> References: <Pine.GSO.4.10.10402031107360.19046-100000@pcnet5.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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? -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040203162908.GA1122>