summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/defaults/default_fsync_success.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-24 17:39:27 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-03-13 12:23:45 +0100
commit4116fce6290740b1bda8d546472e2f884a35099b (patch)
treee2382e483adde28c13f3ef058cf15ea44e2c532b /cpukit/libfs/src/defaults/default_fsync_success.c
parentFilesystem: Change node type enum values (diff)
downloadrtems-4116fce6290740b1bda8d546472e2f884a35099b.tar.bz2
Filesystem: New defaults fsync_h and fdatasync_h
New defaults rtems_filesystem_default_fsync_or_fdatasync() and rtems_filesystem_default_fsync_or_fdatasync_success() for fsync_h and fdatasync_h. The rtems_filesystem_default_fsync_or_fdatasync() sets now errno to EINVAL according to POSIX.
Diffstat (limited to '')
-rw-r--r--cpukit/libfs/src/defaults/default_fsync_success.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/cpukit/libfs/src/defaults/default_fsync_success.c b/cpukit/libfs/src/defaults/default_fsync_success.c
new file mode 100644
index 0000000000..591527e3e8
--- /dev/null
+++ b/cpukit/libfs/src/defaults/default_fsync_success.c
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2012 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Obere Lagerstr. 30
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ */
+
+#if HAVE_CONFIG_H
+ #include "config.h"
+#endif
+
+#include <rtems/libio_.h>
+
+int rtems_filesystem_default_fsync_or_fdatasync_success(
+ rtems_libio_t *iop
+)
+{
+ return 0;
+}