[PATCH 3/3] Use latest <semaphore.h> from FreeBSD for RTEMS
Corinna Vinschen
vinschen@redhat.com
Wed Mar 11 12:35:00 GMT 2015
On Mar 11 13:17, Sebastian Huber wrote:
> ----- Ursprüngliche Mail -----
> > Von: "Corinna Vinschen" <vinschen@redhat.com>
> > An: newlib@sourceware.org
> > Gesendet: Mittwoch, 11. März 2015 11:33:30
> > Betreff: Re: [PATCH 3/3] Use latest <semaphore.h> from FreeBSD for RTEMS
>
> > Hi Sebastian,
> >
> > On Mar 9 14:03, Sebastian Huber wrote:
> >> Import the latest <semaphore.h> from FreeBSD and adjust it for RTEMS.
> >> The OpenMP support from GCC (libgomp) needs a <semaphore.h>.
> >
> > Apart from the maverick implementation in libc/sys/linux, we don't
> > have any semaphore implementation. This, plus the fact that the
> > type of sem_t is implementaiton-specific, makes me a bit reluctant
> > to include this header in newlib. On some systems sizeof(sem_t)
> > is pointer sized.
> >
> > If we add semaphore.h, we should make the definition of sem_t
> > conditional somehow, so e.g. Cygwin can reuse this file, removing its
> > own.
>
> Since this file is located in the RTEMS specific header file directory
>
> libc/sys/rtems/include/semaphore.h
Duh! I missed that the file is under sys/rtems. Sorry. Patch is
ok then. I'll check it in shortly.
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20150311/7731538f/attachment.sig>
More information about the Newlib
mailing list