source: rtems/cpukit/libfs/src/imfs/imfs_dir_minimal.c @ 0ec9bbc

5
Last change on this file since 0ec9bbc was a397c7d8, checked in by Sebastian Huber <sebastian.huber@…>, on 12/13/17 at 07:00:02

IMFS: Include <rtems/imfs.h>

Prepare for header file move to common include directory.

Update #3254.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup IMFS
5 */
6
7/*
8 *  COPYRIGHT (c) 1989-1999.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.org/license/LICENSE.
14 */
15
16#if HAVE_CONFIG_H
17  #include "config.h"
18#endif
19
20#include <rtems/imfs.h>
21
22static const rtems_filesystem_file_handlers_r IMFS_dir_minimal_handlers = {
23  .open_h = rtems_filesystem_default_open,
24  .close_h = rtems_filesystem_default_close,
25  .read_h = rtems_filesystem_default_read,
26  .write_h = rtems_filesystem_default_write,
27  .ioctl_h = rtems_filesystem_default_ioctl,
28  .lseek_h = rtems_filesystem_default_lseek_directory,
29  .fstat_h = IMFS_stat,
30  .ftruncate_h = rtems_filesystem_default_ftruncate_directory,
31  .fsync_h = rtems_filesystem_default_fsync_or_fdatasync_success,
32  .fdatasync_h = rtems_filesystem_default_fsync_or_fdatasync_success,
33  .fcntl_h = rtems_filesystem_default_fcntl,
34  .kqfilter_h = rtems_filesystem_default_kqfilter,
35  .mmap_h = rtems_filesystem_default_mmap,
36  .poll_h = rtems_filesystem_default_poll,
37  .readv_h = rtems_filesystem_default_readv,
38  .writev_h = rtems_filesystem_default_writev
39};
40
41const IMFS_mknod_control IMFS_mknod_control_dir_minimal = {
42  {
43    .handlers = &IMFS_dir_minimal_handlers,
44    .node_initialize = IMFS_node_initialize_directory,
45    .node_remove = IMFS_node_remove_directory,
46    .node_destroy = IMFS_node_destroy_default
47  },
48  .node_size = sizeof( IMFS_directory_t )
49};
Note: See TracBrowser for help on using the repository browser.