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

Last change on this file since c213219 was c213219, checked in by Jennifer Averett <Jennifer.Averett@…>, on 08/05/03 at 14:08:04

2003-08-04 Thomas Doerfler <Thomas.Doerfler@…>

PR 441/filesystem
*src/dosfs/msdos.h: add rename support to DOSFS
*src/dosfs/msdos_create.c: add rename support to DOSFS
*src/dosfs/msdos_file.c: add rename support to DOSFS
*src/dosfs/msdos_init.c: add rename support to DOSFS
*src/dosfs/msdos_mknod.c: add rename support to DOSFS

  • Property mode set to 100644
File size: 1.5 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.OARcorp.com/rtems/license.html.
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
21rtems_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
55msdos_initialize(rtems_filesystem_mount_table_entry_t *temp_mt_entry)
56{
57    int rc = RC_OK;
58 
59    rc = msdos_initialize_support(temp_mt_entry,
60                                  &msdos_ops,
61                                  &msdos_file_handlers,
62                                  &msdos_dir_handlers);
63    return rc;
64}
Note: See TracBrowser for help on using the repository browser.