Hi, This is an NSPR question, so dev-tech-nspr is the right list for this question. Anyway, could you call PR_GetOSError() after PR_OpenSemaphore() fails? That'll tell us the value of 'errno' at that time.
Searching in the NSPR source tree, I found that only EACCES and EPERM are mapped to PR_NO_ACCESS_RIGHTS_ERROR. What OS is this? We have two implementations of PR_OpenSemaphore for Unix platforms. One uses the POSIX sem_open: http://mxr.mozilla.org/nspr/source/nsprpub/pr/src/pthreads/ptsynch.c#702 http://opengroup.org/onlinepubs/007908799/xsh/sem_open.html The other uses the System V semaphores and calls quite a few functions, including semget: http://mxr.mozilla.org/nspr/source/nsprpub/pr/src/pthreads/ptsynch.c#833 http://opengroup.org/onlinepubs/007908799/xsh/semget.html Wan-Teh -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto