OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libfs/] [src/] [imfs/] [miniimfs_init.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  Mini-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
 *  miniimfs_init.c,v 1.7 2001/01/22 14:05:14 joel Exp
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
 *  miniIMFS file system operations table
34
 */
35
 
36
rtems_filesystem_operations_table  miniIMFS_ops = {
37
  IMFS_eval_path,
38
  IMFS_evaluate_for_make,
39
  NULL, /* XXX IMFS_link, */
40
  NULL, /* XXX IMFS_unlink, */
41
  IMFS_node_type,
42
  IMFS_mknod,
43
  NULL, /* XXX IMFS_chown, */
44
  NULL, /* XXX IMFS_freenodinfo, */
45
  NULL, /* XXX IMFS_mount, */
46
  miniIMFS_initialize,
47
  NULL, /* XXX IMFS_unmount, */
48
  NULL, /* XXX IMFS_fsunmount, */
49
  NULL, /* XXX IMFS_utime, */
50
  NULL, /* XXX IMFS_evaluate_link, */
51
  NULL, /* XXX IMFS_symlink, */
52
  NULL  /* XXX IMFS_readlink */
53
};
54
 
55
/*
56
 *  miniIMFS_initialize
57
 */
58
 
59
int miniIMFS_initialize(
60
  rtems_filesystem_mount_table_entry_t *temp_mt_entry
61
)
62
{
63
   IMFS_initialize_support(
64
      temp_mt_entry,
65
      &miniIMFS_ops,
66
      &rtems_filesystem_null_handlers,  /* for linearfiles */
67
      &rtems_filesystem_null_handlers,  /* for memfiles */
68
      &rtems_filesystem_null_handlers   /* for directories */
69
   );
70
   return 0;
71
}
72
 
73
 
74
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.