/* Determine the correct return code. 
Bytes Xferred No Wait Wait >= Minimum 0 0 < Minimum -EIO* -EAGAIN */
static int pipe_return_code(size_t min_xfer, size_t bytes_remaining, size_t bytes_requested)
/* Determine the correct return code. 
Bytes Xferred No Wait Wait >= Minimum 0 0 < Minimum -EIO* -EAGAIN */
static int pipe_return_code(size_t min_xfer, size_t bytes_remaining, size_t bytes_requested)
{
	if (bytes_requested - bytes_remaining >= min_xfer) {
		return 0;
	}
	return -EAGAIN;
}