/* Wrapper around read() that checks for errors keeps retrying until all
* requested bytes have been read or until end-of file has occurred.
/* Wrapper around read() that checks for errors keeps retrying until all
* requested bytes have been read or until end-of file has occurred.