source: rtems/cpukit/libfs/src/defaults/default_handlers.c @ 3c96bee

4.115
Last change on this file since 3c96bee was 4116fce6, checked in by Sebastian Huber <sebastian.huber@…>, on 02/24/12 at 16:39:27

Filesystem: New defaults fsync_h and fdatasync_h

New defaults rtems_filesystem_default_fsync_or_fdatasync() and
rtems_filesystem_default_fsync_or_fdatasync_success() for fsync_h and
fdatasync_h. The rtems_filesystem_default_fsync_or_fdatasync() sets now
errno to EINVAL according to POSIX.

  • Property mode set to 100644
File size: 1.0 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup LibIO
5 *
6 * @brief rtems_filesystem_handlers_default definition.
7 */
8
9/*
10 * Copyright (c) 2010
11 * embedded brains GmbH
12 * Obere Lagerstr. 30
13 * D-82178 Puchheim
14 * Germany
15 * <rtems@embedded-brains.de>
16 *
17 * The license and distribution terms for this file may be
18 * found in the file LICENSE in this distribution or at
19 * http://www.rtems.com/license/LICENSE.
20 */
21
22#include <rtems/libio.h>
23
24const rtems_filesystem_file_handlers_r rtems_filesystem_handlers_default = {
25  .open_h = rtems_filesystem_default_open,
26  .close_h = rtems_filesystem_default_close,
27  .read_h = rtems_filesystem_default_read,
28  .write_h = rtems_filesystem_default_write,
29  .ioctl_h = rtems_filesystem_default_ioctl,
30  .lseek_h = rtems_filesystem_default_lseek,
31  .fstat_h = rtems_filesystem_default_fstat,
32  .ftruncate_h = rtems_filesystem_default_ftruncate,
33  .fsync_h = rtems_filesystem_default_fsync_or_fdatasync,
34  .fdatasync_h = rtems_filesystem_default_fsync_or_fdatasync,
35  .fcntl_h = rtems_filesystem_default_fcntl
36};
Note: See TracBrowser for help on using the repository browser.