home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.ultrix
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!emory!gatech!destroyer!gumby!yale!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!zaphod.mps.ohio-state.edu!rpi!batcomputer!ghost.dsi.unimi.it!univ-lyon1.fr!chx400!bernina!rosenth
- From: rosenth@vision.ethz.ch (Lukas Rosenthaler)
- Subject: mapping file to memory with mmap ???
- Message-ID: <rosenth.724971249@batman>
- Summary: How to map a file into memory
- Keywords: memory management mapping
- Sender: news@bernina.ethz.ch (USENET News System)
- Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
- Date: Mon, 21 Dec 1992 20:54:09 GMT
- Lines: 23
-
- Hello,
- I have a small problem porting VAX/VMS applications to Ultrix and other
- unixes. The guy who wrote the VMS code used the method of "mapping" a file
- directly into memory and thus using the page mechanism for I/O. This is very
- efficient and fast (- even on a VAX :-) ) On some flavors of Unix (say
- Convex and Irix), there is a system call "mmap(...)" which does exactly the
- same. Also Ultrix knows "mmap", but it seems to work only with a file
- descriptor of a character device and therefore not suitable to map a regular
- file into memory. Any suggestions ???
-
- Any help will be appreciated !
-
- Please followup or send mail to "rosenth@comp.bioz.unibas.ch"
-
- Thanks all,
-
- Lukas Rosenthaler
- Biocomputing
- Biocenter of the University of Basel
- Switzerland
-
-
- The appropriate seasonal greetings apply !!
-