From ea86f1d8885335f2bd38a388d2ab762bd1e29427 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Wed, 14 Oct 2015 17:14:01 +0200 Subject: syncfs: add system call support Add support for the syncfs() system call. Signed-off-by: Bartosz Golaszewski --- libc/sysdeps/linux/common/syncfs.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libc/sysdeps/linux/common/syncfs.c (limited to 'libc') 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 + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ + +#include + +#if defined(__NR_syncfs) && __USE_GNU +#include +_syscall1(int, syncfs, int, fd) +#endif -- cgit v1.2.3