throwErrnoIfMinus1
Throw an IOError corresponding to the current value of getErrno if the IO action returns a result of -1.
Throw an IOError corresponding to the current value of getErrno if the IO action returns a result of -1, but retries in case of an interrupted operation.