[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with libio on ia64
From: |
Ulrich Drepper |
Subject: |
Re: Problems with libio on ia64 |
Date: |
12 Jan 2002 10:12:50 -0800 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.5 (asparagus) |
Chris Ahna <address@hidden> writes:
> and subsequent patches were applied to that area. Simple test cases
> like
>
> int main(int argc, char **argv)
> {
> FILE *f;
> char buf[1024];
>
> f = fopen ("file", "r");
> read (fileno (f), buf, 1024);
This code is broken. You're not allowed to assume anything about the
file position after the fopen call. Next time investigate whether
your code is correct before complaining.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------