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

4.115
Last change on this file since f785492 was f785492, checked in by Sebastian Huber <sebastian.huber@…>, on 02/14/15 at 19:07:19

IMFS: Add CONFIGURE_IMFS_DISABLE_READDIR

  • Property mode set to 100644
File size: 1.4 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 "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  .poll_h = rtems_filesystem_default_poll,
36  .readv_h = rtems_filesystem_default_readv,
37  .writev_h = rtems_filesystem_default_writev
38};
39
40const IMFS_mknod_control IMFS_mknod_control_dir_minimal = {
41  {
42    .handlers = &IMFS_dir_minimal_handlers,
43    .node_initialize = IMFS_node_initialize_directory,
44    .node_remove = IMFS_node_remove_directory,
45    .node_destroy = IMFS_node_destroy_default
46  },
47  .node_size = sizeof( IMFS_directory_t )
48};
Note: See TracBrowser for help on using the repository browser.