Re: problems in pread(2).

Matti Aarnio (matti.aarnio@sonera.fi)
Tue, 26 Jan 1999 00:43:19 +0200 (EET)


Itai Nahshon <nahshon@actcom.co.il> misunderstood something:
>
> Look at <http://www.opengroup.org/onlinepubs/7908799/xsh/pread.html>.
>
> Pread should give exactly the same result as read. AFAIK read
> does (and has always) retrun 0 when trying to read at or beyond the EOF.

No it doesn't in all conditions.
See read(2) page itself.

I do agree with our friend at SCO about this issue.
Full explanation requires deep reading of POSIX.1-1990,
and the Large-File-Summit specification -- at least.

> Itai

/Matti Aarnio <matti.aarnio@sonera.fi>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/