GNU bug report logs -
#44320
[PATH] [27.1] Make sure send-string-to-terminal send all contents
Previous Next
Reported by: Lin Sun <lin.sun <at> zoom.us>
Date: Thu, 29 Oct 2020 23:03:02 UTC
Severity: normal
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #41 received at 44320 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
> What is the significance of 4K bytes in this case? Is 'fwrite'
> documented not to write more than that? I couldn't find such
> documentation.
writes that are less than a system block size are unlikely to be chopped
into parts.
> Anyway, if we need to fix calls to 'fwrite', we should provide
> something similar to emacs_write, and use it everywhere we use
> 'fwrite' now.
I can't see anything in the fwrite man page that guarantees that it'll
write all that we tell it to write:
RETURN VALUE
On success, fread() and fwrite() return the number of items read or writ‐
ten. This number equals the number of bytes transferred only when size
is 1. If an error occurs, or the end of the file is reached, the return
value is a short item count (or zero).
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 288 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.