Skip to content

Commit 735863a

Browse files
committed
Merge branch 'fdatasync' of https://github.com/kamalmarhubi/libc into merge
2 parents 88396ac + a3d4884 commit 735863a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/unix/bsd/openbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ extern {
388388
pub fn mkostemp(template: *mut ::c_char, flags: ::c_int) -> ::c_int;
389389
pub fn mkostemps(template: *mut ::c_char, suffixlen: ::c_int, flags: ::c_int) -> ::c_int;
390390
pub fn futimens(fd: ::c_int, times: *const ::timespec) -> ::c_int;
391+
pub fn fdatasync(fd: ::c_int) -> ::c_int;
391392
}
392393

393394
cfg_if! {

src/unix/solaris/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,5 +765,6 @@ extern {
765765
buf: *mut ::c_char,
766766
buflen: ::size_t) -> *const passwd;
767767
pub fn readdir(dirp: *mut ::DIR) -> *const ::dirent;
768+
pub fn fdatasync(fd: ::c_int) -> ::c_int;
768769
}
769770

0 commit comments

Comments
 (0)