summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/syncfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/syncfs.c')
-rw-r--r--libc/sysdeps/linux/common/syncfs.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/syncfs.c b/libc/sysdeps/linux/common/syncfs.c
new file mode 100644
index 000000000..831f76568
--- /dev/null
+++ b/libc/sysdeps/linux/common/syncfs.c
@@ -0,0 +1,13 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * Copyright (C) 2015 Bartosz Golaszewski <bartekgola@gmail.com>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#include <sys/syscall.h>
+
+#if defined(__NR_syncfs) && __USE_GNU
+#include <unistd.h>
+_syscall1(int, syncfs, int, fd)
+#endif