syncfs (2) Linux Manual Page
NAME sync, syncfs – commit filesystem caches to disk SYNOPSIS #include <unistd.h> void sync(void); int syncfs(int fd); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): sync(): _XOPEN_SOURCE >= 500 || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* Glibc versions <= 2.19: */ _BSD_SOURCE syncfs(): _GNU_SOURCE DESCRIPTION sync() causes all pending modifications to filesystem metadata and cached file data to be written to the underlying filesystems. syncfs()…
