As far as I've understood, there is no way at all to get unnamed semaphores under (at the last versions of) OS X. I have to specify a string with a name. This sounds so unreasonable to me. Why in the world one wouldn't want to support just.. semaphores?
Say that I really need to create some set of semaphores. Say an array (but I don't have a simple way to number them). How can I get that? Do I really have to use sprintf to build up semaphores? Isn't there any more elegant way?