[uClibc] Named semaphores?

Joakim Tjernlund Joakim.Tjernlund at lumentis.se
Wed Aug 17 20:28:15 UTC 2005


> 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.


> 
> Thanks
> -Robin



More information about the uClibc mailing list