File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3747,6 +3747,20 @@ extern "C" {
37473747 newpath : * const c_char ,
37483748 flags : c_uint ,
37493749 ) -> c_int ;
3750+ pub fn preadv2 (
3751+ fd : c_int ,
3752+ iov : * const crate :: iovec ,
3753+ iovcnt : c_int ,
3754+ offset : off_t ,
3755+ flags : c_int ,
3756+ ) -> ssize_t ;
3757+ pub fn pwritev2 (
3758+ fd : c_int ,
3759+ iov : * const crate :: iovec ,
3760+ iovcnt : c_int ,
3761+ offset : off_t ,
3762+ flags : c_int ,
3763+ ) -> ssize_t ;
37503764}
37513765
37523766cfg_if ! {
Original file line number Diff line number Diff line change @@ -4360,6 +4360,22 @@ extern "C" {
43604360 flags : c_int ,
43614361 ) -> c_int ;
43624362 pub fn open_by_handle_at ( mount_fd : c_int , handle : * mut file_handle , flags : c_int ) -> c_int ;
4363+ #[ cfg_attr( gnu_file_offset_bits64, link_name = "preadv64v2" ) ]
4364+ pub fn preadv2 (
4365+ fd : c_int ,
4366+ iov : * const crate :: iovec ,
4367+ iovcnt : c_int ,
4368+ offset : off_t ,
4369+ flags : c_int ,
4370+ ) -> ssize_t ;
4371+ #[ cfg_attr( gnu_file_offset_bits64, link_name = "pwritev64v2" ) ]
4372+ pub fn pwritev2 (
4373+ fd : c_int ,
4374+ iov : * const crate :: iovec ,
4375+ iovcnt : c_int ,
4376+ offset : off_t ,
4377+ flags : c_int ,
4378+ ) -> ssize_t ;
43634379}
43644380
43654381// LFS64 extensions
Original file line number Diff line number Diff line change @@ -2093,22 +2093,6 @@ extern "C" {
20932093 buflen : size_t ,
20942094 result : * mut * mut passwd ,
20952095 ) -> c_int ;
2096- #[ cfg_attr( gnu_file_offset_bits64, link_name = "preadv64v2" ) ]
2097- pub fn preadv2 (
2098- fd : c_int ,
2099- iov : * const crate :: iovec ,
2100- iovcnt : c_int ,
2101- offset : off_t ,
2102- flags : c_int ,
2103- ) -> ssize_t ;
2104- #[ cfg_attr( gnu_file_offset_bits64, link_name = "pwritev64v2" ) ]
2105- pub fn pwritev2 (
2106- fd : c_int ,
2107- iov : * const crate :: iovec ,
2108- iovcnt : c_int ,
2109- offset : off_t ,
2110- flags : c_int ,
2111- ) -> ssize_t ;
21122096}
21132097
21142098// LFS64 extensions
You can’t perform that action at this time.
0 commit comments