https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269638

--- Comment #2 from [email protected] ---
I think I've reached a good interface for the new functions:

int aio_read2(struct aiocb *iocb, unsigned flags);
int aio_write2(struct   aiocb *iocb, unsigned flags);

aio_read(iocb) would be equivalent to aio_read2(iocb, 0) and aio_write(iocb)
would be equivalent to aio_write2(iocb, 0).

Then we would define the following flags:

AIO_USEIOV
AIO_IGNOREOFFSET

aio_readv(iocb) would be equivalent to aio_read2(iocb, AIO_USEIOV) and
aio_writev(iocb) would be equivalent to aio_write2(iocb, AIO_USEIOV).

The flag AIO_IGNOREOFFSET would instruct the call to ignore aio_offset in aiocb
and use the file position (lseek) if applicable.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to