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.
{
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);