[rtems-libbsd commit] Use new fsync_or_fdatasync default

Joel Sherrill joel at rtems.org
Fri Mar 23 20:05:49 UTC 2012


Module:    rtems-libbsd
Branch:    master
Commit:    96dca8acc754e61bdac76d4acea1b0e1423e13fe
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=96dca8acc754e61bdac76d4acea1b0e1423e13fe

Author:    Julien Delange <julien.delange at gmail.com>
Date:      Fri Mar 23 15:07:00 2012 -0500

Use new fsync_or_fdatasync default

---

 rtemsbsd/src/rtems-bsd-syscalls.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/rtemsbsd/src/rtems-bsd-syscalls.c b/rtemsbsd/src/rtems-bsd-syscalls.c
index 6d46440..d1ec2fe 100644
--- a/rtemsbsd/src/rtems-bsd-syscalls.c
+++ b/rtemsbsd/src/rtems-bsd-syscalls.c
@@ -39,6 +39,7 @@
 #include <freebsd/net/vnet.h>
 
 #include <rtems/libio_.h>
+#include <rtems/libio.h>
 #include <rtems/seterr.h>
 
 static const rtems_filesystem_file_handlers_r socket_handlers;
@@ -1479,8 +1480,8 @@ static const rtems_filesystem_file_handlers_r socket_handlers = {
 	rtems_bsdnet_fstat,			/* fstat */
 	rtems_filesystem_default_fchmod,	/* fchmod */
 	rtems_filesystem_default_ftruncate,	/* ftruncate */
-	rtems_filesystem_default_fsync,		/* fsync */
-	rtems_filesystem_default_fdatasync,	/* fdatasync */
+	rtems_filesystem_default_fsync_or_fdatasync,		/* fsync */
+	rtems_filesystem_default_fsync_or_fdatasync,	/* fdatasync */
 	rtems_bsdnet_fcntl,			/* fcntl */
 	rtems_filesystem_default_rmnod		/* rmnod */
 };




More information about the vc mailing list