Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!bbn.com!mips2!freedman From: freedman@mips2.cr.bull.com (Jerome Freedman) Newsgroups: comp.unix.questions Subject: uses of mmap Message-ID: <1990Sep4.123135.10479@mips2.cr.bull.com> Date: 4 Sep 90 12:31:35 GMT Organization: Bull HN Information Systems Inc. Lines: 17 I have been looking at mmap (for work I did last year it would have been GREAT - i think). I am not sure I understand how it is used - I am looking at the man page (MIPS RiscOs). "mmap maps pages of memory from the memory device associated with file fd into the address space of the calling process.." Now , If I want to mmap a file it looks as though I have to open the device on which the file resides to get the fd mentioned in the man pages and somehow get the offset of the file I want to map - is this a correct interpretation it all seems murky. Can some one post me an example of code using mmap? Jerry Freedman,Jr