Rob Leslie wrote:
On Thursday, February 21, 2002, at 01:59 PM, Gareth wrote:
I have been playing with minimad for a while now but need some explanations for a few things ;-) The comments say that standard input is mapped into memory using mmap(). So :
Is mmap a C builtin function?
mmap() is a POSIX function; it is implemented as a system call on nearly all operating systems having a UNIX-like kernel.
Realistically, mmap() is a luxury provided by virtual memory operating systems. As used my minimad it is a simple way to get the system to do the file I/O automatically under the hood, and simplifies the programming model. You will however find doing the stream I/O yourself to be lower overhead and more appropriate for the application environments where libmad is attractive.