/* COVERAGE: fdatasync fsync sync */ #include #include #include #include int main() { int fd; fd = creat("foobar",S_IREAD|S_IWRITE); sync(); //staptest// sync () = 0 fsync(fd); //staptest// fsync (NNNN) = 0 fdatasync(fd); //staptest// fdatasync (NNNN) = 0 close(fd); return 0; }