fwrite not 64-bit clean
Andreas Jaeger
aj@suse.de
Wed Mar 31 18:40:00 GMT 2004
Here's an updated patch, it fixes the problem indeed and incorporates
Andreas Schwab's observations of doing too much...
Ok to commit?
Andreas
2004-03-31 Andreas Jaeger <aj@suse.de>
* libio/fileops.c (new_do_write): Return _IO_size_t to make 64-bit
clean.
============================================================
Index: libio/fileops.c
--- libio/fileops.c 14 Jan 2004 18:40:03 -0000 1.102
+++ libio/fileops.c 31 Mar 2004 09:08:46 -0000
@@ -472,7 +472,7 @@ _IO_file_setbuf_mmap (fp, p, len)
return result;
}
-static int new_do_write __P ((_IO_FILE *, const char *, _IO_size_t));
+static _IO_size_t new_do_write __P ((_IO_FILE *, const char *, _IO_size_t));
/* Write TO_DO bytes from DATA to FP.
Then mark FP as having empty buffers. */
@@ -489,7 +489,7 @@ _IO_new_do_write (fp, data, to_do)
INTDEF2(_IO_new_do_write, _IO_do_write)
static
-int
+_IO_size_t
new_do_write (fp, data, to_do)
_IO_FILE *fp;
const char *data;
--
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/106f2f84/attachment.sig>
More information about the Libc-alpha
mailing list