Commit 71b41406 authored by Paul Eggert's avatar Paul Eggert

* sysdep.c (emacs_read): Remove unnecessary check vs MAX_RW_COUNT.

parent 9c3c56a7
2011-04-15 Paul Eggert <eggert@cs.ucla.edu>
* sysdep.c (emacs_read): Remove unnecessary check vs MAX_RW_COUNT.
emacs_write: Accept and return EMACS_INT for sizes.
See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00514.html
et seq.
......
......@@ -1844,7 +1844,10 @@ emacs_read (int fildes, char *buf, EMACS_INT nbyte)
{
register ssize_t rtnval;
while ((rtnval = read (fildes, buf, min (nbyte, MAX_RW_COUNT))) == -1
/* There is no need to check against MAX_RW_COUNT, since no caller ever
passes a size that large to emacs_read. */
while ((rtnval = read (fildes, buf, nbyte)) == -1
&& (errno == EINTR))
QUIT;
return (rtnval);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment