Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Feb 2004 09:37:01 +0100 (CET)
From:      "Willem Jaap Zwart" <W.J.Zwart@NescioLudens.nl>
To:        "Daniel Eischen" <eischen@vigrid.com>
Cc:        standards@freebsd.org
Subject:   Re: sem_timedwait()
Message-ID:  <60144.192.168.2.96.1075797421.squirrel@192.168.2.2>
In-Reply-To: <Pine.GSO.4.10.10402030111330.28910-100000@pcnet5.pcnet.com>
References:  <Pine.GSO.4.10.10402030111330.28910-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Daniel

I'm new to the list, so as my maiden contribution I looked at the opengroup website. The formal
prototype is:

int    sem_timedwait(sem_t *restrict, const struct timespec *restrict);

have a nice day!

Willem Jaap

Daniel Eischen said:
> We need a prototype for sem_timedwait().  Here's a patch, but it doesn't
> seem to be consistent WRT __restrict.  Does someone want to take a look
> at the POSIX specs (www.opengroup.org) and see if this is correct?
>
> Index: semaphore.h
> ===================================================================
> RCS file: /opt/FreeBSD/cvs/src/sys/posix4/semaphore.h,v
> retrieving revision 1.9
> diff -u -r1.9 semaphore.h
> --- semaphore.h	4 Oct 2002 21:31:33 -0000	1.9
> +++ semaphore.h	3 Feb 2004 00:40:12 -0000
> @@ -54,6 +54,7 @@
>  int	 sem_init(sem_t *, int, unsigned int);
>  sem_t	*sem_open(const char *, int, ...);
>  int	 sem_post(sem_t *);
> +int	 sem_timedwait(sem_t * __restrict, struct timespec * __restrict);
>  int	 sem_trywait(sem_t *);
>  int	 sem_unlink(const char *);
>  int	 sem_wait(sem_t *);
>
> --
> Dan Eischen
>
> _______________________________________________
> freebsd-standards@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-standards
> To unsubscribe, send any mail to "freebsd-standards-unsubscribe@freebsd.org"
>


<=====>                                <=====>
Willem Jaap Zwart             Nescio Ludens BV

Minkmaatstraat 33 ** 7514 EA ** Enschede ** NL
t: +31-53-4306465 **  **  ** f: +31-53-4306491

Email: W.J.Zwart@NescioLudens.nl
----------------------------------------------
                      If you love Unix: FreeBSD
----------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?60144.192.168.2.96.1075797421.squirrel>