source: rtems/c/src/lib/libc/imfs_init.c @ 0cb7cb9

4.104.114.84.95
Last change on this file since 0cb7cb9 was 4a07d2b, checked in by Jennifer Averett <Jennifer.Averett@…>, on 10/29/99 at 15:19:13

Moved the rmnod callback from the operations table to the handler table.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  IMFS Initialization
3 *
4 *  COPYRIGHT (c) 1989-1998.
5 *  On-Line Applications Research Corporation (OAR).
6 *  Copyright assigned to U.S. Government, 1994.
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15#include <sys/types.h>         /* for mkdir */
16#include <fcntl.h>
17#include <unistd.h>
18#include <stdlib.h>
19
20#include <assert.h>
21
22#include "imfs.h"
23#include "libio_.h"
24
25#if defined(IMFS_DEBUG)
26#include <stdio.h>
27#endif
28
29/* 
30 *  IMFS file system operations table
31 */
32
33rtems_filesystem_operations_table  IMFS_ops = {
34  IMFS_eval_path,
35  IMFS_evaluate_for_make,
36  IMFS_link,
37  IMFS_unlink,
38  IMFS_node_type,
39  IMFS_mknod,
40  IMFS_chown,
41  IMFS_freenodinfo,
42  IMFS_mount,
43  IMFS_initialize,
44  IMFS_unmount,
45  IMFS_fsunmount,
46  IMFS_utime,
47  IMFS_evaluate_link,
48  IMFS_symlink,
49  IMFS_readlink
50};
51
52/*
53 *  IMFS_initialize
54 */
55
56int IMFS_initialize(
57  rtems_filesystem_mount_table_entry_t *temp_mt_entry
58)
59{
60   IMFS_initialize_support(
61     temp_mt_entry,
62     &IMFS_ops,
63     &IMFS_memfile_handlers,
64     &IMFS_directory_handlers
65   );
66   return 0;
67}
Note: See TracBrowser for help on using the repository browser.