source: rtems/cpukit/libfs/src/imfs/imfs_init.c @ 1e4d4f85

4.104.114.84.95
Last change on this file since 1e4d4f85 was 1e4d4f85, checked in by Jennifer Averett <Jennifer.Averett@…>, on 07/24/03 at 19:54:55

2003-07-24 jennifer averett <jennifer.averett@…>

PR 434/filesystem

  • src/imfs/imfs_init.c: Modified to return error code
  • src/imfs/miniimfs_init.c: Modified to return error code
  • src/imfs/imfs_initsup.c: Modified to set error upon memory failure.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  IMFS Initialization
3 *
4 *  COPYRIGHT (c) 1989-1999.
5 *  On-Line Applications Research Corporation (OAR).
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 <sys/types.h>         /* for mkdir */
19#include <fcntl.h>
20#include <unistd.h>
21#include <stdlib.h>
22
23#include <assert.h>
24
25#include "imfs.h"
26#include <rtems/libio_.h>
27
28#if defined(IMFS_DEBUG)
29#include <stdio.h>
30#endif
31
32/* 
33 *  IMFS file system operations table
34 */
35
36rtems_filesystem_operations_table  IMFS_ops = {
37  IMFS_eval_path,
38  IMFS_evaluate_for_make,
39  IMFS_link,
40  IMFS_unlink,
41  IMFS_node_type,
42  IMFS_mknod,
43  IMFS_chown,
44  IMFS_freenodinfo,
45  IMFS_mount,
46  IMFS_initialize,
47  IMFS_unmount,
48  IMFS_fsunmount,
49  IMFS_utime,
50  IMFS_evaluate_link,
51  IMFS_symlink,
52  IMFS_readlink
53};
54
55/*
56 *  IMFS_initialize
57 */
58
59int IMFS_initialize(
60  rtems_filesystem_mount_table_entry_t *temp_mt_entry
61)
62{
63   return IMFS_initialize_support(
64     temp_mt_entry,
65     &IMFS_ops,
66     &IMFS_linearfile_handlers,
67     &IMFS_memfile_handlers,
68     &IMFS_directory_handlers
69   );
70}
Note: See TracBrowser for help on using the repository browser.