From c0704174975073ba7f839b6d99c4d63f7fb79b33 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Fri, 29 Jan 2021 15:55:17 -0700 Subject: [PATCH] Add aio_readv and aio_writev They are new in FreeBSD 13. --- src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs b/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs index 4145b4ecdac95..a974146d69577 100644 --- a/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/freebsd13/mod.rs @@ -209,6 +209,8 @@ pub const ELAST: ::c_int = 97; pub const GRND_INSECURE: ::c_uint = 0x4; extern "C" { + pub fn aio_readv(aiocbp: *mut ::aiocb) -> ::c_int; + pub fn aio_writev(aiocbp: *mut ::aiocb) -> ::c_int; pub fn setgrent(); pub fn mprotect( addr: *mut ::c_void,