src/nvim/fileio.c
/*
 * Version of read() that retries when interrupted by EINTR (possibly
 * by a SIGWINCH).
 */
Version of read() that retries when interrupted by EINTR (possibly
by a SIGWINCH).
Version of read () that retries when interrupted by EINTR ( possibly by a SIGWINCH ) .
long read_eintr(int fd, void *buf, size_t bufsize)
{
  long ret;
  for (;; ) {
    ret = read(fd, buf, bufsize);
    if (ret >= 0 || errno != EINTR)
      break;
  }
  return ret;
}
long read_eintr ( int fd , void * buf , size_t bufsize ) { long ret ; for ( ; ; ) { ret = read ( fd , buf , bufsize ) ; if ( ret >= 0 || errno != EINTR ) break ; } return ret ; }
Version of read() that retries when interrupted by EINTR (possibly
 by a SIGWINCH).
Version of read () that retries when interrupted by EINTR ( possibly by a SIGWINCH ) .