Date: Wed, 20 Dec 2023 18:37:47 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269638] request: allow aio_read() w/o aio_offset Message-ID: <bug-269638-227-EgUSWocDLE@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-269638-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269638-227-EgUSWocDLE>
