Skip to content

Commit bdf2f4c

Browse files
committed
Auto merge of #2780 - asomers:LIO_READV, r=Amanieu
Add LIO_READV and LIO_WRITEV on FreeBSD They are used along with lio_listio for non-POSIX vectored operations.
2 parents 4f88b8d + 5768391 commit bdf2f4c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libc-test/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,6 +2254,9 @@ fn test_freebsd(target: &str) {
22542254
true
22552255
}
22562256

2257+
// Added in FreeBSD 14
2258+
"LIO_READV" | "LIO_WRITEV" | "LIO_VECTORED" if Some(14) > freebsd_ver => true,
2259+
22572260
_ => false,
22582261
}
22592262
});

src/unix/bsd/freebsdlike/freebsd/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,6 +1885,11 @@ impl ::Clone for dot3Vendors {
18851885
}
18861886
}
18871887

1888+
// aio.h
1889+
pub const LIO_VECTORED: ::c_int = 4;
1890+
pub const LIO_WRITEV: ::c_int = 5;
1891+
pub const LIO_READV: ::c_int = 6;
1892+
18881893
// sys/devicestat.h
18891894
pub const DEVSTAT_N_TRANS_FLAGS: ::c_int = 4;
18901895
pub const DEVSTAT_NAME_LEN: ::c_int = 16;

0 commit comments

Comments
 (0)