source: rtems/cpukit/libfs/src/dosfs/msdos_init.c @ 7c007cf

4.104.114.95
Last change on this file since 7c007cf was bf95ccb5, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on 05/27/08 at 10:34:15

Added const qualifier to various pointers and data tables to

reduce size of data area.
IMFS: Fixed creation of symbolic links to avoid a compiler warning.
DOSFS: Use LibBlock? instead of read() to read the boot record.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 *  Init routine for MSDOS
3 *
4 *  Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
5 *  Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  @(#) $Id$
12 */
13
14#if HAVE_CONFIG_H
15#include "config.h"
16#endif
17
18#include <rtems/libio_.h>
19#include "msdos.h"
20
21const rtems_filesystem_operations_table  msdos_ops = {
22    msdos_eval_path,
23    msdos_eval4make,
24#if 0
25     NULL,                 /* msdos_link */
26#else
27    msdos_file_link,      /* msdos_link (pseudo-functionality) */
28#endif
29    msdos_file_rmnod,
30    msdos_node_type,
31    msdos_mknod,
32    NULL,                 /* msdos_chown */
33    msdos_free_node_info,
34    NULL,
35    msdos_initialize,
36    NULL,
37    msdos_shut_down,      /* msdos_shut_down */
38    NULL,                 /* msdos_utime */
39    NULL,
40    NULL,
41    NULL
42};
43
44/* msdos_initialize --
45 *     MSDOS filesystem initialization
46 *
47 * PARAMETERS:
48 *     temp_mt_entry - mount table entry
49 *
50 * RETURNS:
51 *     RC_OK on success, or -1 if error occured (errno set apropriately).
52 *
53 */
54int msdos_initialize(rtems_filesystem_mount_table_entry_t *temp_mt_entry)
55{
56    int rc;
57
58    rc = msdos_initialize_support(temp_mt_entry,
59                                  &msdos_ops,
60                                  &msdos_file_handlers,
61                                  &msdos_dir_handlers);
62    return rc;
63}
Note: See TracBrowser for help on using the repository browser.