[Bug 269638] request: allow aio_read() w/o aio_offset
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 269638] aio_read() w/o aio_offset"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 Dec 2023 18:37:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269638 --- Comment #2 from vini.ipsmaker@gmail.com --- 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.