fwrite not 64-bit clean

Ulrich Drepper drepper@redhat.com
Wed Mar 31 08:54:00 GMT 2004


Andreas Jaeger wrote:

> The problem seems to be that fwrite calls _IO_new_file_xsputn which
> calls new_do_write 

What does "seems" mean?  Does it fix the problem or not?  If not, you'll
have to come up with a full patch first.

And apropos full patch:


>  extern int _IO_wdo_write_internal __P ((_IO_FILE *, const wchar_t *,
>  					_IO_size_t));
> -extern int _IO_do_write_internal __P ((_IO_FILE *, const char *, _IO_size_t));
> +extern _IO_size_t _IO_do_write_internal __P ((_IO_FILE *, const char *, _IO_size_t));


The declarations are right next to each other.  Didn't occur to you that
the _IO_wdo_write_internal code also needs the change?

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖



More information about the Libc-alpha mailing list