fwrite not 64-bit clean

Andreas Jaeger aj@suse.de
Wed Mar 31 08:54:00 GMT 2004


Ulrich Drepper <drepper@redhat.com> writes:

> 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

A smaller version of that patch (without libioP.h changes) fixed the
problem.

> 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?

Ok, I'll change and we'll then do a complete test,
Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040331/7e2a6f50/attachment.sig>


More information about the Libc-alpha mailing list