#define _GNU_SOURCE #include #include "syscall.h" int syncfs(int fd) { return syscall(SYS_syncfs, fd); }