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?