On Mon, 28 Nov 2011 05:47:05 -0500
Sean Conner <spc at conman.org> wrote:
Chuck's is more portable I think, to non-Unix
systems.
Yes, and does cruel things like
for () {
write( fd, buf, 1);
}
OK, you may do things like this on DOS, but on anything else system
call overhead for every single byte will bite you. Portability is
allways a trae off. On Unix mmap(2) is the most efficient way of IO.
--
\end{Jochen}
\ref{http://www.unixag-kl.fh-kl.de/~jkunz/}