diff options
| author | Paul Eggert | 2012-11-26 21:17:07 -0800 |
|---|---|---|
| committer | Paul Eggert | 2012-11-26 21:17:07 -0800 |
| commit | 22626a856b520e4b092b2e4132f57adf8aaf7227 (patch) | |
| tree | abc3470fbae12b661ff438341ae52f829421afc1 /src/process.c | |
| parent | 5c9cf0a3f9817220ed0f907637951f5cdf1a9614 (diff) | |
| download | emacs-22626a856b520e4b092b2e4132f57adf8aaf7227.tar.gz emacs-22626a856b520e4b092b2e4132f57adf8aaf7227.zip | |
Assume POSIX 1003.1-1988 or later for errno.h.
* lib-src/movemail.c (main): Assume EAGAIN and EBUSY.
* src/dired.c (directory_files_internal, file_name_completion):
Assume EAGAIN and EINTR are defined.
* src/fileio.c (Fcopy_file): Assume EISDIR is defined.
* src/gmalloc.c (ENOMEM, EINVAL): Assume they're defined.
* src/gnutls.c (emacs_gnutls_write): Assume EAGAIN is defined.
* src/lread.c (readbyte_from_file): Assume EINTR is defined.
* src/process.c (wait_reading_process_output, send_process) [subprocesses]:
Assume EIO and EAGAIN are defined.
* src/unexcoff.c (write_segment): Assume EFAULT is defined.
Fixes: debbugs:12968
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/process.c b/src/process.c index 0036ce595f5..b23f06fd025 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -4432,14 +4432,8 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd, | |||
| 4432 | total_nread += nread; | 4432 | total_nread += nread; |
| 4433 | got_some_input = 1; | 4433 | got_some_input = 1; |
| 4434 | } | 4434 | } |
| 4435 | #ifdef EIO | 4435 | else if (nread == -1 && (errno == EIO || errno == EAGAIN)) |
| 4436 | else if (nread == -1 && EIO == errno) | ||
| 4437 | break; | 4436 | break; |
| 4438 | #endif | ||
| 4439 | #ifdef EAGAIN | ||
| 4440 | else if (nread == -1 && EAGAIN == errno) | ||
| 4441 | break; | ||
| 4442 | #endif | ||
| 4443 | #ifdef EWOULDBLOCK | 4437 | #ifdef EWOULDBLOCK |
| 4444 | else if (nread == -1 && EWOULDBLOCK == errno) | 4438 | else if (nread == -1 && EWOULDBLOCK == errno) |
| 4445 | break; | 4439 | break; |
| @@ -5517,13 +5511,10 @@ send_process (Lisp_Object proc, const char *buf, ptrdiff_t len, | |||
| 5517 | 5511 | ||
| 5518 | if (rv < 0) | 5512 | if (rv < 0) |
| 5519 | { | 5513 | { |
| 5520 | if (0 | 5514 | if (errno == EAGAIN |
| 5521 | #ifdef EWOULDBLOCK | 5515 | #ifdef EWOULDBLOCK |
| 5522 | || errno == EWOULDBLOCK | 5516 | || errno == EWOULDBLOCK |
| 5523 | #endif | 5517 | #endif |
| 5524 | #ifdef EAGAIN | ||
| 5525 | || errno == EAGAIN | ||
| 5526 | #endif | ||
| 5527 | ) | 5518 | ) |
| 5528 | /* Buffer is full. Wait, accepting input; | 5519 | /* Buffer is full. Wait, accepting input; |
| 5529 | that may allow the program | 5520 | that may allow the program |