home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / ultrix / 9022 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.4 KB  |  36 lines

  1. Newsgroups: comp.unix.ultrix
  2. 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
  3. From: rosenth@vision.ethz.ch (Lukas Rosenthaler)
  4. Subject: mapping file to memory with mmap ???
  5. Message-ID: <rosenth.724971249@batman>
  6. Summary: How to map a file into memory
  7. Keywords: memory management mapping
  8. Sender: news@bernina.ethz.ch (USENET News System)
  9. Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
  10. Date: Mon, 21 Dec 1992 20:54:09 GMT
  11. Lines: 23
  12.  
  13. Hello,
  14. I have a small problem porting VAX/VMS applications to Ultrix and other
  15. unixes. The guy who wrote the VMS code used the method of "mapping" a file
  16. directly into memory and thus using the page mechanism for I/O. This is very
  17. efficient and fast (- even on a VAX :-)  ) On some flavors of Unix (say
  18. Convex and Irix), there is a system call "mmap(...)" which does exactly the
  19. same. Also Ultrix knows "mmap", but it seems to work only with a file
  20. descriptor of a character device and therefore not suitable to map a regular
  21. file into memory. Any suggestions ???
  22.  
  23. Any help will be appreciated !
  24.  
  25. Please followup or send mail to "rosenth@comp.bioz.unibas.ch"
  26.  
  27. Thanks all,
  28.  
  29.     Lukas Rosenthaler
  30.     Biocomputing
  31.     Biocenter of the University of Basel
  32.     Switzerland
  33.  
  34.  
  35. The appropriate seasonal greetings apply !!
  36.