/* ISC license. */ #include #include #include #include ssize_t fd_write (int fd, char const *buf, size_t len) { register ssize_t r ; do r = write(fd, buf, len) ; while ((r == -1) && (errno == EINTR)) ; return r ; }