2008/226: mmapfd(2) - mmap file descriptor
Darren J Moffat
Darren.Moffat at Sun.COM
Mon Mar 31 02:30:01 PDT 2008
I find the function name a bit strange. So strange in fact it made me
look at the mmap(2) man page to check that it wasn't taking a char*
rather than an int for the file since I was sure it took and fd. Since
mmap(2) already takes an fd.
The mmap(2) versus mmapfd(2) makes me think of fopen(3C) versus fdopen(3C).
As for a better name it looks to me more like mmapv(2), eg like read(2)
versus readv(2).
--
Darren J Moffat
More information about the opensolaris-arc
mailing list