[MPlayer-dev-eng] Re: [PATCH] use mmap() to simplify menu.conf parsing

Jason Lunz lunz at falooley.org
Sun Mar 9 17:26:02 CET 2003


arpi at thot.banki.hu said:
> but keep in mind that many OS's doesn't have mmap.

I remembered that after I sent the patch. Still, shouldn't there be a
utility function for "give me a pointer to the contents of this file"?
It could use mmap() on good OSes and just read in the file for others. 

whatever. I was trying to figure out how the menu code worked, and the
buffer fill in menu_init() looked ugly. I don't like seeing data
needlessly copied around.

Jason



More information about the MPlayer-dev-eng mailing list