source: rtems/cpukit/libfs/src/dosfs/msdos_handlers_file.c @ 665f03a

5
Last change on this file since 665f03a was a7eaaae8, checked in by Sebastian Huber <sebastian.huber@…>, on 10/20/14 at 07:33:34

dosfs: Support ctime and mtime

Implement ctime and mtime updates according to POSIX. The ctime is
mapped to the FAT create time and date. The mtime is mapped to the FAT
last modified time and date. For the atime use the mtime for
simplicity.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 * @file
3 *
4 * @brief File Operations Table for MSDOS FileSystem
5 * @ingroup libfs
6 */
7
8/*
9 *  Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
10 *  Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/libio.h>
22#include "msdos.h"
23
24const rtems_filesystem_file_handlers_r msdos_file_handlers = {
25  .open_h = rtems_filesystem_default_open,
26  .close_h = rtems_filesystem_default_close,
27  .read_h = msdos_file_read,
28  .write_h = msdos_file_write,
29  .ioctl_h = rtems_filesystem_default_ioctl,
30  .lseek_h = rtems_filesystem_default_lseek_file,
31  .fstat_h = msdos_file_stat,
32  .ftruncate_h = msdos_file_ftruncate,
33  .fsync_h = msdos_file_sync,
34  .fdatasync_h = msdos_sync,
35  .fcntl_h = rtems_filesystem_default_fcntl,
36  .kqfilter_h = rtems_filesystem_default_kqfilter,
37  .poll_h = rtems_filesystem_default_poll,
38  .readv_h = rtems_filesystem_default_readv,
39  .writev_h = rtems_filesystem_default_writev
40};
Note: See TracBrowser for help on using the repository browser.