Skip to content

Commit b993a9b

Browse files
committed
Added the sync() function from unistd.h
1 parent fda4049 commit b993a9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,8 @@ extern {
853853
pub fn posix_openpt(flags: ::c_int) -> ::c_int;
854854
pub fn ptsname(fd: ::c_int) -> *mut ::c_char;
855855
pub fn unlockpt(fd: ::c_int) -> ::c_int;
856+
857+
pub fn sync();
856858
}
857859

858860
cfg_if! {

0 commit comments

Comments
 (0)