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

4.104.114.84.95
Last change on this file since d6b1d73 was d6b1d73, checked in by Joel Sherrill <joel.sherrill@…>, on 01/22/01 at 14:05:14

2001-01-22 Ralf Corsepius <corsepiu@…>

  • configure.in: Add src/imfs/config.h
  • src/imfs/Makefile.am: Add INCLUDES += -I. to pickup config.h
  • src/imfs/.cvsignore: Add config.h and stamp-h
  • src/imfs/*.c: Add config.h support.
  • 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   IMFS_initialize_support(
64     temp_mt_entry,
65     &IMFS_ops,
66     &IMFS_linearfile_handlers,
67     &IMFS_memfile_handlers,
68     &IMFS_directory_handlers
69   );
70   return 0;
71}
Note: See TracBrowser for help on using the repository browser.