source: rtems/cpukit/libfs/src/dosfs/msdos_handlers_dir.c @ 2f68778

4.115
Last change on this file since 2f68778 was 2f68778, checked in by Sebastian Huber <sebastian.huber@…>, on 12/16/13 at 12:44:13

Filesystem: Add readv/writev handlers

The readv() and writev() support was implemented in terms of multiple
calls to the read and write handlers. This imposes a problem on device
files which use an IO vector as single request entity. For example a
low-level network device (e.g. BPF(4)) may use an IO vector to create
one frame from multiple protocol layers each with its own IO vector
entry.

  • Property mode set to 100644
File size: 1.0 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.com/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  .readv_h = rtems_filesystem_default_readv,
37  .writev_h = rtems_filesystem_default_writev
38};
Note: See TracBrowser for help on using the repository browser.