The only caller does not specify O_NONBLOCK, so the check for EAGAIN
is unnecessary.
* \param size The length of \a buf in bytes.
*
* This function writes out the given buffer and retries if an interrupt
- * occurred during the write.
+ * occurred during the write. The file descriptor is assumed to be in blocking
+ * mode (i.e., EAGAIN is treated as an error).
*
* \return Standard.
*
for (;;) {
ret = write(fd, buf, size);
- if ((ret < 0) && (errno == EAGAIN || errno == EINTR))
+ if (ret < 0 && errno == EINTR)
continue;
return ret >= 0? ret : -ERRNO_TO_ERROR(errno);
}