]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add aio_writev and aio_readv
authorAlan Somers <asomers@FreeBSD.org>
Sat, 2 Jan 2021 23:34:20 +0000 (16:34 -0700)
committerAlan Somers <asomers@FreeBSD.org>
Sun, 3 Jan 2021 02:57:58 +0000 (19:57 -0700)
commit022ca2fc7fe08d51f33a1d23a9be49e6d132914e
tree3b757d6a22fe9ab1d6a9b8c7e98ee9c85b382877
parent486580c44ce29c1e3b1d9b858a08d9df9428b699
Add aio_writev and aio_readv

POSIX AIO is great, but it lacks vectored I/O functions. This commit
fixes that shortcoming by adding aio_writev and aio_readv. They aren't
part of the standard, but they're an obvious extension. They work just
like their synchronous equivalents pwritev and preadv.

It isn't yet possible to use vectored aiocbs with lio_listio, but that
could be added in the future.

Reviewed by:    jhb, kib, bcr
Relnotes:       yes
Differential Revision: https://reviews.freebsd.org/D27743
17 files changed:
lib/libc/sys/Makefile.inc
lib/libc/sys/Symbol.map
lib/libc/sys/aio_error.2
lib/libc/sys/aio_read.2
lib/libc/sys/aio_return.2
lib/libc/sys/aio_write.2
share/man/man4/aio.4
sys/bsm/audit_kevents.h
sys/compat/freebsd32/freebsd32_misc.c
sys/compat/freebsd32/freebsd32_util.h
sys/compat/freebsd32/syscalls.master
sys/kern/capabilities.conf
sys/kern/sys_socket.c
sys/kern/syscalls.master
sys/kern/vfs_aio.c
sys/sys/aio.h
tests/sys/aio/aio_test.c