Re: problems in pread(2).

Matti Aarnio (matti.aarnio@sonera.fi)
Tue, 26 Jan 1999 13:45:10 +0200 (EET)


Itai Nahshon <nahshon@actcom.co.il> is still confused:
> Tigran Aivazian wrote:
> >
> > http://www.opengroup.org/onlinepubs/7908799/xsh/read.html
> >
> > The Single Unix v2 specs says:
> > The pread() function will fail, and the file pointer remains unchanged,
> > if:
> >
> > [EOVERFLOW]
> > The file is a regular file and an attempt was made to read or
> > write at or beyond the offset maximum associated with the file.
>
> No... this is the full text from that page. If there is an update please
> tell me where it was published.
>
> [EOVERFLOW]
> The file is a regular file, nbyte is greater than 0, the
> starting position is before the end-of-file and the starting
> position is greater than or equal to the offset maximum
> established in the open file description associated with
> fildes.

A few more lines down where the pread() special cases are
described. Read the ENTIRE document before uttering something
which tells you didn't read it all.

These are, after all, ``man pages'' which requires certain
reading style. POSIX standards are a bit more obscure, though,
and require even more convoluted reading styles.

...
> Itai
> --
> Itai Nahshon nahshon@actcom.co.il
> Also nahshon@vnet.ibm.com

/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/