[klibc] Problems with fread
H. Peter Anvin
hpa at zytor.com
Tue Feb 7 07:49:58 PST 2006
Martin Schlemmer wrote:
> Hi,
>
> I have a port here of device-mapper to use klibc (still trying to get it
> upstream, but oh well). It used to work fine, but with latish klibc's I
> seem to have issues with fread().
>
> Same code with glibc works just fine, but with klibc fread only seems to
> read the first two lines when it tries to get the major device number
> for misc and device-mapper from /proc/devices - then it keeps returning
> 0.
>
> Anybody have seen similar issues, or know of related changes to fread()
> that could be causing this?
>
Okay, you're using fread()... what's your buffer size? Can you do an
strace?
-hpa
More information about the klibc
mailing list