From dbbd1aaeffa9b2c80f1a6608ccc52a5178bf7bc4 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Thu, 5 May 2022 21:46:29 -0600 Subject: [PATCH] Add LIO_READV and LIO_WRITEV on FreeBSD They are used along with lio_listio for non-POSIX vectored operations. --- src/unix/bsd/freebsdlike/freebsd/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 4e71de35fd50e..8d27d88605e5a 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -1885,6 +1885,11 @@ impl ::Clone for dot3Vendors { } } +// aio.h +pub const LIO_VECTORED: ::c_int = 4; +pub const LIO_WRITEV: ::c_int = 5; +pub const LIO_READV: ::c_int = 6; + // sys/devicestat.h pub const DEVSTAT_N_TRANS_FLAGS: ::c_int = 4; pub const DEVSTAT_NAME_LEN: ::c_int = 16;