LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   POSIX File-based Semaphores (https://www.linuxquestions.org/questions/linux-newbie-8/posix-file-based-semaphores-35642/)

dragonman 11-16-2002 06:56 PM

POSIX File-based Semaphores
 
I am trying to program Posix file based process shared semaphores and Posix share memory with gcc version 2.96 on my system with a Linux 2.4.7-10 kernel. I've run the posixtst program which indicates that my kernel should support Posix semaphores and shared memory. However, the man pages have no information of the file based semaphore calls, sem_open() and sem_unlink(), or shared memory calls such as shm_open() and shm_unlink. Furthermore when compiling with a header include statement for semaphore.h and sys/mman.h, all semaphore and shared memory calls are undefined references. In addition, I have seen some documentation that said process shared semaphores are not supported in Linux. Is this true? If not, is there a library I need to include in my compile command that would add support for these calls?

Thanks.
Steve Davis.

crabboy 11-17-2002 10:51 AM

Please do not double post:

http://www.linuxquestions.org/questi...threadid=35652

http://www.linuxquestions.org/rules.php


All times are GMT -5. The time now is 03:30 AM.