summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/uclibc/uclibc-git/0001-wire-in-syncfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-git/0001-wire-in-syncfs.patch')
-rw-r--r--meta/recipes-core/uclibc/uclibc-git/0001-wire-in-syncfs.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-git/0001-wire-in-syncfs.patch b/meta/recipes-core/uclibc/uclibc-git/0001-wire-in-syncfs.patch
deleted file mode 100644
index 079ad6b3b4..0000000000
--- a/meta/recipes-core/uclibc/uclibc-git/0001-wire-in-syncfs.patch
+++ /dev/null
@@ -1,49 +0,0 @@
1From 4f2db1b46bda5e376245ec36198b137709f069e8 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 15 Oct 2015 17:03:37 +0000
4Subject: [PATCH] wire in syncfs
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8Upstream-Status: Pending
9
10 include/unistd.h | 2 +-
11 libc/sysdeps/linux/common/syncfs.c | 13 +++++++++++++
12 2 files changed, 14 insertions(+), 1 deletion(-)
13 create mode 100644 libc/sysdeps/linux/common/syncfs.c
14
15diff --git a/include/unistd.h b/include/unistd.h
16index 3793d2d..d01bb08 100644
17--- a/include/unistd.h
18+++ b/include/unistd.h
19@@ -1073,7 +1073,7 @@ extern char *getpass (const char *__prompt) __nonnull ((1));
20 extern int fsync (int __fd);
21 #endif /* Use BSD || X/Open || Unix98. */
22
23-#if 0 /*def __USE_GNU */
24+#ifdef __USE_GNU
25 /* Make all changes done to all files on the file system associated
26 * with FD actually appear on disk. */
27 extern int syncfs (int __fd) __THROW;
28diff --git a/libc/sysdeps/linux/common/syncfs.c b/libc/sysdeps/linux/common/syncfs.c
29new file mode 100644
30index 0000000..d2eed05
31--- /dev/null
32+++ b/libc/sysdeps/linux/common/syncfs.c
33@@ -0,0 +1,13 @@
34+/* vi: set sw=4 ts=4: */
35+/*
36+ * fsync() for uClibc
37+ *
38+ * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
39+ *
40+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
41+ */
42+
43+#include <sys/syscall.h>
44+#include <unistd.h>
45+
46+_syscall1(int, syncfs, int, fd)
47--
482.6.1
49