summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/dosfs/msdos_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libfs/src/dosfs/msdos_init.c')
-rw-r--r--cpukit/libfs/src/dosfs/msdos_init.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/cpukit/libfs/src/dosfs/msdos_init.c b/cpukit/libfs/src/dosfs/msdos_init.c
index 67b16b64ed..2ea3c025c7 100644
--- a/cpukit/libfs/src/dosfs/msdos_init.c
+++ b/cpukit/libfs/src/dosfs/msdos_init.c
@@ -11,10 +11,10 @@
* Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
*
* Modifications to support reference counting in the file system are
- * Copyright (c) 2012 embedded brains GmbH.
+ * Copyright (c) 2012 embedded brains GmbH & Co. KG
*
* Modifications to support UTF-8 in the file system are
- * Copyright (c) 2013 embedded brains GmbH.
+ * Copyright (c) 2013 embedded brains GmbH & Co. KG
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
@@ -36,18 +36,17 @@ static int msdos_clone_node_info(rtems_filesystem_location_info_t *loc)
return fat_file_reopen(fat_fd);
}
-static int msdos_utime(
+static int msdos_utimens(
const rtems_filesystem_location_info_t *loc,
- time_t actime,
- time_t modtime
+ struct timespec times[2]
)
{
fat_file_fd_t *fat_fd = loc->node_access;
- if (actime != modtime)
+ if (times[0].tv_sec != times[1].tv_sec)
rtems_set_errno_and_return_minus_one( ENOTSUP );
- fat_file_set_mtime(fat_fd, modtime);
+ fat_file_set_mtime(fat_fd, times[1].tv_sec);
return RC_OK;
}
@@ -67,7 +66,7 @@ const rtems_filesystem_operations_table msdos_ops = {
.mount_h = rtems_filesystem_default_mount,
.unmount_h = rtems_filesystem_default_unmount,
.fsunmount_me_h = msdos_shut_down,
- .utime_h = msdos_utime,
+ .utimens_h = msdos_utimens,
.symlink_h = rtems_filesystem_default_symlink,
.readlink_h = rtems_filesystem_default_readlink,
.rename_h = msdos_rename,
@@ -92,7 +91,7 @@ void msdos_unlock(const rtems_filesystem_mount_table_entry_t *mt_entry)
* temp_mt_entry - mount table entry
*
* RETURNS:
- * RC_OK on success, or -1 if error occured (errno set apropriately).
+ * RC_OK on success, or -1 if error occurred (errno set apropriately).
*
*/
int rtems_dosfs_initialize(