Uri Guttman <[EMAIL PROTECTED]> wrote:

> this is another reason to drop seek/tell as separate ops and just add a
> seek offset as an arg to the i/o ops. tell is useless in the aio
> world. the user code needs to manage its own seek location and pass it
> into each call.

Well, yes that's true. OTOH we might want to support "traditional" IO
sequence of operations. The aio read and write calls have the file
positions as argument, sync read and writes don't have it. It could be
useful to support both flavors e.g. for libraries that are called from
different HLLs.

A (synced) lseek(2) can only return, if all async operations are completed.
The real problems jump in, when code is mixing sync/async IO.

> uri

leo

Reply via email to