source: rtems/cpukit/libfs/src/dosfs/msdos_handlers_dir.c @ 0ec9bbc

5
Last change on this file since 0ec9bbc was c6bb1c33, checked in by Kevin Kirspel <kevin-kirspel@…>, on 06/29/17 at 14:36:43

posix/mmap: Add support for file handler and MAP_ANON

Added a mmap file handler to struct _rtems_filesystem_file_handlers_r.
Updated each file handler object to support the default mmap handler.
Updated mmap() to call the mmap handler for MAP_SHARED.
Added a mmap file handler for shm

Added support for MAP_ANON in mmap().

Updates #2859

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @file
3 *
4 * @brief Directory Handlers 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_dir_handlers = {
25  .open_h = rtems_filesystem_default_open,
26  .close_h = rtems_filesystem_default_close,
27  .read_h = msdos_dir_read,
28  .write_h = rtems_filesystem_default_write,
29  .ioctl_h = rtems_filesystem_default_ioctl,
30  .lseek_h = rtems_filesystem_default_lseek_directory,
31  .fstat_h = msdos_dir_stat,
32  .ftruncate_h = rtems_filesystem_default_ftruncate_directory,
33  .fsync_h = msdos_sync,
34  .fdatasync_h = msdos_sync,
35  .fcntl_h = rtems_filesystem_default_fcntl,
36  .kqfilter_h = rtems_filesystem_default_kqfilter,
37  .mmap_h = rtems_filesystem_default_mmap,
38  .poll_h = rtems_filesystem_default_poll,
39  .readv_h = rtems_filesystem_default_readv,
40  .writev_h = rtems_filesystem_default_writev
41};
Note: See TracBrowser for help on using the repository browser.