[uClibc] Named semaphores?

Mike Frysinger vapier at gentoo.org
Thu Aug 18 01:24:14 UTC 2005


On Wednesday 17 August 2005 04:28 pm, Joakim Tjernlund wrote:
> > I was looking into an issue that a user reported about the uClinux
> > implementation that was related to uClibc. They were hoping to use a
> > named semaphore ( sem_open(), sem_wait(), sem_trywait(), sem_post(), and
> > sem_close()) to synchronize communication between 2 separate processes.
> >
> > http://blackfin.uclinux.org/forum/message.php?msg_id=3069
> >
> > However, in uClibc/libpthread/linuxthreads/semaphore.c the function
> > sem_open, sem_close, and sem_unlink seems to be just stub functions ,and
> > set errno to ENOSYS (The function is not supported)
> >
> > If there are no plans on working on these functions (which is OK), does
> > anyone else have any ideas to suggest to solve the problem?
>
> No plans that I know of. You could try backporting them
> from the NPTL threads in glibc.  That doesn't look too hard to do.

yeah, according to the uClibc_vs_SuSv3.txt, we know the funcs are not 
implemented, we just have no immediate plans to do so ... but we would like 
them at some point :)
-mike



More information about the uClibc mailing list