What is the state of Posix Semaphore Support?
I am in the process of porting a program and supporting library from Win32 to what I hope to be various flavours of unix including Linux and Darwin. The program that I am porting uses a named Win32 mutex object to prevent multiple instances of the program from using the same "working directory". I need to replicate this capability under unix and believe that I can accomplish this using posix semaphores. The book that I am using (Advanced Unix Programming by Marc Rochkind) states that posix semaphores are not supported under Linux, FreeBSD, or Darwin. I have done more searching on the web and have turned up some evidence that refutes this statement with regards to linux but have been unable to find anything that states conclusively that posix semaphores are, in fact, supported in various versions of the linux kernel. I would welcome help from anybody that can give me more conclusive information as well as any guidance on the above mentioned porting issue.
Regards,
Jon Trauntvein
|