diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-24 17:39:27 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-13 12:23:45 +0100 |
commit | 4116fce6290740b1bda8d546472e2f884a35099b (patch) | |
tree | e2382e483adde28c13f3ef058cf15ea44e2c532b /cpukit/libfs/src/devfs | |
parent | bea7043c80a9534c7ad3c0dd3382990915a07a07 (diff) |
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 'cpukit/libfs/src/devfs')
-rw-r--r-- | cpukit/libfs/src/devfs/devfs_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libfs/src/devfs/devfs_init.c b/cpukit/libfs/src/devfs/devfs_init.c index 070aced2a4..db856d21fa 100644 --- a/cpukit/libfs/src/devfs/devfs_init.c +++ b/cpukit/libfs/src/devfs/devfs_init.c @@ -45,8 +45,8 @@ const rtems_filesystem_file_handlers_r devFS_file_handlers = { .lseek_h = rtems_filesystem_default_lseek, .fstat_h = devFS_stat, .ftruncate_h = rtems_filesystem_default_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 }; |