Closed Bug 126940 Opened 24 years ago Closed 22 years ago

NSPR shared memory functions are not implemented in OS/2

Categories

(NSPR :: NSPR, defect, P3)

x86
OS/2
defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: julien.pierre, Assigned: wtc)

References

Details

The following functions : PR_OpenSharedMemory PR_AttachSharedMemory PR_DetachSharedMemory PR_CloseSharedMemory PR_DeleteSharedMemory all currently map to PR_NOT_IMPLEMENTED_ERROR on OS/2 today. It is possible to implement them on OS/2 using DosAllocSharedMem DosGetSharedMem DosFreeMem From browsing the OS/2 API docs, I don't see OS/2 functions to implement the "detach" or "close". This may be implemented transparently by refcount and/or DosFreeMem may need to be used in all processes using the unnamed shared memory block. I don't think I have used shared memory on OS/2 in a while, if ever. There are samples for using it though, as well as docs.
This should be implemented in a new file, eg. mozilla/nsprpub/pr/src/md/os2/os2shm.c Once it's done, the file mozilla/nsprpub/pr/src/memory/prshm.c should be modified at the top with the following : #elif defined PR_HAVE_OS2_NAMED_SHARED_MEMORY /* OS/2 implementation is in pr/src/md/os2/os2shm.c */
Priority: -- → P3
Target Milestone: --- → 4.2
Blocks: 126932
We're not going to implement shared memory function on OS/2.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WONTFIX
Target Milestone: 4.2 → 4.5
You need to log in before you can comment on or make changes to this bug.