0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.083

Problem:    When a read() or write() is interrupted by a signal it fails.
Solution:   Add read_eintr() and write_eintr().
This commit is contained in:
Bram Moolenaar
2010-12-17 16:27:16 +01:00
parent 45d9d02d71
commit 540fc6fbdb
8 changed files with 76 additions and 23 deletions

View File

@@ -1642,6 +1642,11 @@ int vim_memcmp __ARGS((void *, void *, size_t));
# define USE_INPUT_BUF
#endif
#ifndef EINTR
# define read_eintr(fd, buf, count) vim_read((fd), (buf), (count))
# define write_eintr(fd, buf, count) vim_write((fd), (buf), (count))
#endif
#ifdef MSWIN
/* On MS-Windows the third argument isn't size_t. This matters for Win64,
* where sizeof(size_t)==8, not 4 */