]> git.tuebingen.mpg.de Git - paraslash.git/commit
first draft of the mmap patch series
authorAndre Noll <maan@systemlinux.org>
Mon, 12 Mar 2007 19:38:43 +0000 (20:38 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 12 Mar 2007 19:38:43 +0000 (20:38 +0100)
commit57a8d22ad5e81dc815390685ae5f83c0f16156e7
treeb21ddbf41a1840beffa759f7d4fb3d4028f4cefc
parent22245300541fa7d6e92cdcd7bc4204fd2d73f799
first draft of the mmap patch series

The purpose of these changes to para_server is to not call
read()/fseek() in the audio format handlers and in vss.c but to use
mmap() instead which should result in less code and should also be
faster and less error-prone.

This first patch implements the basic infrastructure for mmap but
keeps the file pointer so that changes may be merged step by step and
changes the ogg vorbis audio format handler to use the new mapping
of the audio file.

Subsequent patches will change the other audio format handlers and
the virtual streaming system to also use mmap instead of read()/fseek().
aac_afh.c
afh.h
fd.c
fd.h
mp3_afh.c
ogg_afh.c
vss.c