summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/lib/tftpDriver.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/libnetworking/lib/tftpDriver.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/libnetworking/lib/tftpDriver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libnetworking/lib/tftpDriver.c b/cpukit/libnetworking/lib/tftpDriver.c
index 0e284c1e5c..0db4898a93 100644
--- a/cpukit/libnetworking/lib/tftpDriver.c
+++ b/cpukit/libnetworking/lib/tftpDriver.c
@@ -1051,7 +1051,7 @@ static const rtems_filesystem_file_handlers_r rtems_tftp_handlers = {
.lseek_h = rtems_filesystem_default_lseek,
.fstat_h = rtems_filesystem_default_fstat,
.ftruncate_h = rtems_tftp_ftruncate,
- .fsync_h = rtems_filesystem_default_fsync,
- .fdatasync_h = rtems_filesystem_default_fdatasync,
+ .fsync_h = rtems_filesystem_default_fsync_or_fdatasync,
+ .fdatasync_h = rtems_filesystem_default_fsync_or_fdatasync,
.fcntl_h = rtems_filesystem_default_fcntl
};