4463 |
if (DATAGRAM_CHAN_P (channel)) |
if (DATAGRAM_CHAN_P (channel)) |
4464 |
{ |
{ |
4465 |
int len = datagram_address[channel].len; |
int len = datagram_address[channel].len; |
4466 |
nbytes = recvfrom (channel, chars + carryover, readmax - carryover, |
nbytes = recvfrom (channel, chars + carryover, readmax, |
4467 |
0, datagram_address[channel].sa, &len); |
0, datagram_address[channel].sa, &len); |
4468 |
} |
} |
4469 |
else |
else |
4470 |
#endif |
#endif |
4471 |
if (proc_buffered_char[channel] < 0) |
if (proc_buffered_char[channel] < 0) |
4472 |
nbytes = emacs_read (channel, chars + carryover, readmax - carryover); |
nbytes = emacs_read (channel, chars + carryover, readmax); |
4473 |
else |
else |
4474 |
{ |
{ |
4475 |
chars[carryover] = proc_buffered_char[channel]; |
chars[carryover] = proc_buffered_char[channel]; |
4476 |
proc_buffered_char[channel] = -1; |
proc_buffered_char[channel] = -1; |
4477 |
nbytes = emacs_read (channel, chars + carryover + 1, readmax - 1 - carryover); |
nbytes = emacs_read (channel, chars + carryover + 1, readmax - 1); |
4478 |
if (nbytes < 0) |
if (nbytes < 0) |
4479 |
nbytes = 1; |
nbytes = 1; |
4480 |
else |
else |