[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange fread(3) Behavior with CVS glibc
From: |
Andreas Jaeger |
Subject: |
Re: Strange fread(3) Behavior with CVS glibc |
Date: |
Mon, 04 Feb 2002 17:34:38 +0100 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Artificial Intelligence, i386-suse-linux) |
Chris Ahna <address@hidden> writes:
> Hi,
>
> I'm seeing some strange behavior from fread(3) with the CVS (mainline)
> glibc. fread(3) is returning zero whenever the first character it reads
> is 0xff. It doesn't seem to react like this to 0xff characters appearing
> anywhere else. I'm seeing this on both ia64-unknown-linux and i686-
> pc-linux-gnu. This is breaking GNU ld on my i686-pc-linux-gnu box.
The broken ld has been discussed already, this is a bug in ld that I
fixed some days ago - but we also changed glibc again. So updating
might fix your problem. If not, please write a small program that
shows the behaviour and send it here.
>
> I can't reproduce this behavior with a 2.2.4 version on either platform.
> Is it legal (expected?) for fread(3) to behave this way? I've been
> poring over documentation and can't convince myself either way. Please
> CC: me on responses if you'd like more information. Thanks,
The problem is the usage of fileno and interaction of streams and files,
Andreas
--
Andreas Jaeger
SuSE Labs address@hidden
private address@hidden
http://www.suse.de/~aj