source: rtems/c/src/exec/libfs/src/dosfs/msdos_init.c @ f36a7bfc

4.104.114.84.95
Last change on this file since f36a7bfc was f36a7bfc, checked in by Joel Sherrill <joel.sherrill@…>, on 02/28/02 at 20:43:50

2002-02-28 Victor V. Vengerov <vvv@…>

  • DOS filesystem including FAT12, FAT16, and FAT32 support submitted.
  • src/dosfs, src/dosfs/Makefile.am, src/dosfs/stamp-h2.in, src/dosfs/config.h.in, src/dosfs/dosfs.h, src/dosfs/fat.c, src/dosfs/fat.h, src/dosfs/fat_fat_operations.c, src/dosfs/fat_fat_operations.h, src/dosfs/fat_file.c, src/dosfs/fat_file.h, src/dosfs/msdos.h, src/dosfs/msdos_create.c, src/dosfs/msdos_dir.c, src/dosfs/msdos_eval.c, src/dosfs/msdos_file.c, src/dosfs/msdos_free.c, src/dosfs/msdos_fsunmount.c, src/dosfs/msdos_handlers_dir.c, src/dosfs/msdos_handlers_file.c, src/dosfs/msdos_init.c, src/dosfs/msdos_initsupp.c, src/dosfs/msdos_misc.c, src/dosfs/msdos_mknod.c, src/dosfs/msdos_node_type.c, src/dosfs/.cvsignore: New files.
  • configure.ac, src/Makefile.am, wrapup/Makefile.am: Modified to reflect addition.
  • 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.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    NULL,                 /* msdos_link */
25    msdos_file_rmnod,   
26    msdos_node_type,
27    msdos_mknod,
28    NULL,                 /* msdos_chown */
29    msdos_free_node_info,
30    NULL,
31    msdos_initialize,
32    NULL,
33    msdos_shut_down,      /* msdos_shut_down */
34    NULL,                 /* msdos_utime */
35    NULL,
36    NULL,
37    NULL
38};
39
40/* msdos_initialize --
41 *     MSDOS filesystem initialization
42 *
43 * PARAMETERS:
44 *     temp_mt_entry - mount table entry
45 *
46 * RETURNS:
47 *     RC_OK on success, or -1 if error occured (errno set apropriately).
48 *
49 */
50int
51msdos_initialize(rtems_filesystem_mount_table_entry_t *temp_mt_entry)
52{
53    int rc = RC_OK;
54 
55    rc = msdos_initialize_support(temp_mt_entry,
56                                  &msdos_ops,
57                                  &msdos_file_handlers,
58                                  &msdos_dir_handlers);
59    return rc;
60}
Note: See TracBrowser for help on using the repository browser.