This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.16-ports-merge-709-g942caa1
- From: pino at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 19 Nov 2012 18:34:21 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.16-ports-merge-709-g942caa1
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 942caa165645cf1cd0d65f8ecd4b4cbdfa32a34a (commit)
from a6d9783fe7b844ed10495ef3b01c04bd1f499c22 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=942caa165645cf1cd0d65f8ecd4b4cbdfa32a34a
commit 942caa165645cf1cd0d65f8ecd4b4cbdfa32a34a
Author: Pino Toscano <toscano.pino@tiscali.it>
Date: Mon Nov 19 19:34:07 2012 +0100
Hurd: implement syncfs
diff --git a/ChangeLog b/ChangeLog
index 75d315a..fbac1c5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-11-19 Pino Toscano <toscano.pino@tiscali.it>
+
+ * sysdeps/mach/hurd/syncfs.c: New file.
+
2012-11-19 Siddhesh Poyarekar <siddhesh@redhat.com>
[BZ #14719]
diff --git a/sysdeps/mach/hurd/syncfs.c b/sysdeps/mach/hurd/syncfs.c
new file mode 100644
index 0000000..fc4ff47
--- /dev/null
+++ b/sysdeps/mach/hurd/syncfs.c
@@ -0,0 +1,31 @@
+/* Make all changes done to all files on the file system associated
+ with FD actually appear on disk.
+ Copyright (C) 2012 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#include <unistd.h>
+#include <hurd.h>
+#include <hurd/fd.h>
+
+int
+syncfs (int fd)
+{
+ error_t err = HURD_DPORT_USE (fd, __file_syncfs (port, 1, 0));
+ if (err)
+ return __hurd_dfail (fd, err);
+ return 0;
+}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
{misc => sysdeps/mach/hurd}/syncfs.c | 18 +++++++++---------
2 files changed, 13 insertions(+), 9 deletions(-)
copy {misc => sysdeps/mach/hurd}/syncfs.c (77%)
hooks/post-receive
--
GNU C Library master sources