[vdr] vdr 1.3.35 & posix_fadvise

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Sat Nov 5 15:01:18 CET 2005


Stefan Huelswitt wrote:
> On 05 Nov 2005 Klaus Schmidinger <Klaus.Schmidinger at cadsoft.de> wrote:
> 
> 
>>I compile and run it on SUSE 8.2, kernel 2.4.20, glibc 2.3.2, gcc version 3.3 20030226.
> 
> 
> Hmm, as far as I see, not even kernel 2.4.32rc1 has support for
> the fadvise syscall.
> 
> Have you ever checked the return value of posix_fadvise on your
> system?
> 
> I guess your glibc simply do nothing and return an error?
> Or?

Well, I didn't actually test whether the actual effect of no
more trashing the cache happens - all I did was to put this
stuff into the cUnbufferedFile class and make sure it compiles
and doesn't break the original functionality.
Since the function declarations are present on my system
I guessed it should work. But maybe this was a dummy in
the 2.4 kernel...

Klaus



More information about the vdr mailing list