Closed
Bug 469744
Opened 16 years ago
Closed 16 years ago
Implement PR_OpenSemaphore for Mac OS X.
Categories
(NSPR :: NSPR, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
4.7.4
People
(Reporter: wtc, Assigned: wtc)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
patch
|
glenbeasley
:
review+
|
Details | Diff | Splinter Review |
PR_OpenSemaphore is not implemented on Mac OS X, which
causes the NSPR tests nameshm1, sema, semaerr, and semaping
to fail.
In Mac OS X 10.4, both System V and POSIX semaphores are
available. So we can implement PR_OpenSemaphore now. This
patch uses System V semaphores, but POSIX semaphores also
work. I chose System V semaphores because we use System V
semaphores on FreeBSD, NetBSD, and OpenBSD (three systems
similar to Darwin).
Attachment #353123 -
Flags: review?(glen.beasley)
Assignee | ||
Comment 1•16 years ago
|
||
I checked in the patch on the NSPR trunk (NSPR 4.7.4).
Checking in pr/src/pthreads/ptsynch.c;
/cvsroot/mozilla/nsprpub/pr/src/pthreads/ptsynch.c,v <-- ptsynch.c
new revision: 3.31; previous revision: 3.30
done
Checking in pr/include/md/_darwin.h;
/cvsroot/mozilla/nsprpub/pr/include/md/_darwin.h,v <-- _darwin.h
new revision: 3.22; previous revision: 3.21
done
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 2•16 years ago
|
||
Comment on attachment 353123 [details] [diff] [review]
Proposed patch
Tested in 32/64 bit. Note the remaining nspr tests that fail in 32/64 bit are cltsrv, layer, nblayer, and provider.
Attachment #353123 -
Flags: review?(glen.beasley) → review+
Assignee | ||
Comment 3•16 years ago
|
||
Thanks for reviewing and testing the patch. Does nameshm1 complete
on your Mac? On my Mac (10.5), nameshm1 hangs.
The cltsrv, layer, nblayer, and provider test failures are caused
by bug 469745.
Comment 4•16 years ago
|
||
nameshm1 succeeded in my testing. Yesterday I upgraded my mac to 10.6, I am not sure what the results were for 10.5. I am now on-site at work and do not have access to a mac.
Comment 5•16 years ago
|
||
(In reply to comment #4)
> nameshm1 succeeded in my testing. Yesterday I upgraded my mac to 10.6, I am not
> sure what the results were for 10.5. I am now on-site at work and do not have
> access to a mac.
sorry I meant I updated to 10.5.6, then tested on 10.5.6. I was using 10.5.5 and not sure if nameshm1 failed or suceeded.
Updated•15 years ago
|
Keywords: dev-doc-needed
Updated•14 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•