uses of mmap

David C. Miller dcm at moria.UUCP
Fri Sep 7 14:52:00 AEST 1990


In Jerome Freedman writes:
:  I have been looking at mmap [...]
: 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's real close.  But you open the *file* you want to map, not
the device it resides on.

David



More information about the Comp.unix.questions mailing list