Article View: comp.std.unix
Article #279Re: Common Reference Ballot
From: Mike Schultz
Date: Wed, 23 May 1990 16:31
Date: Wed, 23 May 1990 16:31
52 lines
2805 bytes
2805 bytes
From: mikes@oakhill.sps.mot.com (Mike Schultz) In article <700@longway.TIC.COM> From: karish@mindcrf.uucp >In article <696@longway.TIC.COM> [Doug Gwyn] writes: >>Like calling mmap() instead of whatever the POSIX routine is. > >I hope we don't have to name a new interface every time a new standard >restricts or changes the syntax of an old one. Especially when the >old interface is difficult to use portably anyway. I can't tell if you are for or against the use of the new interface, especially with the comment about the "difficult to use portably anyway" comment. The reason that the new interface was choosen is this: For REAL TIME purposes, shared memory functionality is very useful, but REQUIRING it to map files would be unacceptable for many implementations. Even the suggestion that the file would be on a RAM disk is not acceptable. The application should be able to request the shared memory to be mapped in and that is the LAST thing that the operating system should HAVE to do with it. Thus P1003.4 needed an interface that did not require that files be mapped. Mmap was existing practice, but it would have to be gutted in order to used it. It was felt that there was two courses to take here, both of which was certain to draw ballot objections. The solution choosen was one that was a subset of mmap's functionality, but was not the same interface. This had two advantages: First, it could be implemented with mmap using macros. Second, if an implementation wished to contain a pure shared memory interface, without routing it thru the blasted file system, it could do that as well as implementing mmap. Anyway, that was the reasoning then. Now here are the latest developments. SVR4 has taken the step of implementing mmap without requiring it to be a file. It states that one is mapping in a virtual memory object instead. It may be possible for the SVR4 wording of mmap to be used as existing practice. There will have to be some functionality labeled as implementation defined. We'll see how it goes. Mike Schultz mikes@oakhill.mot.sps.com And soon to be ms@RMC.Liant.com Volume-Number: Volume 20, Number 16
Technical Details
Message-ID:
<707@longway.TIC.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!longway!std-unixReferences:
<689@longway.TIC.COM> <692@longway.TIC.COM> <696@longway.TIC.COM> <697@longway.TIC.COM> <700@longway.TIC.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!longway!std-unix From: mikes@oakhill.sps.mot.com (Mike Schultz) Newsgroups: comp.std.unix Subject: Re: Common Reference Ballot Message-ID: <707@longway.TIC.COM> Date: 23 May 90 16:31:58 GMT References: <689@longway.TIC.COM> <692@longway.TIC.COM> <696@longway.TIC.COM> <697@longway.TIC.COM> <700@longway.TIC.COM> Sender: std-unix@longway.TIC.COM Reply-To: mikes@oakhill.sps.mot.com (Mike Schultz) Organization: Motorola Inc., Austin, Texas Lines: 52 Approved: jsq@longway.tic.com (Moderator, John S. Quarterman)