/* * Wait for operations on the buffer to complete. * When they do, extract and return the I/O's error value. */