On Wed, Jul 09, 2003 at 12:26:03PM -0400, Greg A. Woods wrote:
Not trying to defend IEEE here, but there is some sense at leat behind
shm_open. Given that for shm your really want an object that's not
backed by permantent storage (= a normal filesystem) you need to know
where to look for a tmpfs-lookalike or, in the case you mentioned above
something outside the normal filesystem namespace (yuck!). As IEEE
isn't into the filesystem namespace business shm_open is an okay wrapper
for leaving this to the implementation.
Why the heck they specified shm_unlink is completly unclear to me,
though.
Just because it was know that doesn't mean it should be standandardize.
And MAP_ANON really doesn't fit into the SunOS4/SVR4 VM that wants a backing
vnode for each memory object unlike the Mach VM. Thus the horrible
mmap() of /dev/zero hack, btw..