site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Nov 26, 2008, at 8:25 PM, Eli Bach <ebach2@gmail.com> wrote: On Nov 26, 2008, at 7:31 PM, Rakesh Singhal wrote: Please suggest to create semaphore (cross-processes). For stuff like this, where the documentation is either lacking or not there at all, I find banging in "macosx function/tool/etc" into google to provide a lot of useful information. As well as specifically searching in lists.apple.com for Mac- specific API's. I'll save him the trouble. sem_init() is a function for use on unnamed semaphores, which are not supported in Mac OS X (this is pretty clear if you include <unistd.h> and check the feature test macro _POSIX_SHARED_MEMORY_OBJECTS). If sem_init() is called, it will send the calling process a SIGSYS and cause it to abort. If the signal is caught, the function will return ENOSYS. So no matter what you do, it's not going to do anything useful. It would not be terrifically useful to document unsupported functions like sem_init(). This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert