Skip to content

Commit 4fcfa55

Browse files
committed
Auto merge of #2257 - sunfishcode:sunfishcode/preadv2-offset, r=JohnTitor
Add `preadv64v2` and `pwritev64v2` for linux-gnu. These are similar to `preadv2` and `pwritev2` but use `off64_t` instead of `off_t`.
2 parents d5929b7 + f3dbb26 commit 4fcfa55

File tree

1 file changed

+14
-0
lines changed
  • src/unix/linux_like/linux/gnu

1 file changed

+14
-0
lines changed

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,20 @@ extern "C" {
12391239
offset: ::off_t,
12401240
flags: ::c_int,
12411241
) -> ::ssize_t;
1242+
pub fn preadv64v2(
1243+
fd: ::c_int,
1244+
iov: *const ::iovec,
1245+
iovcnt: ::c_int,
1246+
offset: ::off64_t,
1247+
flags: ::c_int,
1248+
) -> ::ssize_t;
1249+
pub fn pwritev64v2(
1250+
fd: ::c_int,
1251+
iov: *const ::iovec,
1252+
iovcnt: ::c_int,
1253+
offset: ::off64_t,
1254+
flags: ::c_int,
1255+
) -> ::ssize_t;
12421256
pub fn renameat2(
12431257
olddirfd: ::c_int,
12441258
oldpath: *const ::c_char,

0 commit comments

Comments
 (0)