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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libc/] [miniimfs_init.c] - Blame information for rev 745

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
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
 *  $Id: miniimfs_init.c,v 1.2 2001-09-27 12:01:15 chris Exp $
12
 */
13
 
14
#include <sys/types.h>         /* for mkdir */
15
#include <fcntl.h>
16
#include <unistd.h>
17
#include <stdlib.h>
18
 
19
#include <assert.h>
20
 
21
#include "imfs.h"
22
#include "libio_.h"
23
 
24
#if defined(IMFS_DEBUG)
25
#include <stdio.h>
26
#endif
27
 
28
/*
29
 *  miniIMFS file system operations table
30
 */
31
 
32
rtems_filesystem_operations_table  miniIMFS_ops = {
33
  IMFS_eval_path,
34
  IMFS_evaluate_for_make,
35
  NULL, /* XXX IMFS_link, */
36
  NULL, /* XXX IMFS_unlink, */
37
  IMFS_node_type,
38
  IMFS_mknod,
39
  NULL, /* XXX IMFS_chown, */
40
  NULL, /* XXX IMFS_freenodinfo, */
41
  NULL, /* XXX IMFS_mount, */
42
  miniIMFS_initialize,
43
  NULL, /* XXX IMFS_unmount, */
44
  NULL, /* XXX IMFS_fsunmount, */
45
  NULL, /* XXX IMFS_utime, */
46
  NULL, /* XXX IMFS_evaluate_link, */
47
  NULL, /* XXX IMFS_symlink, */
48
  NULL  /* XXX IMFS_readlink */
49
};
50
 
51
/*
52
 *  miniIMFS_initialize
53
 */
54
 
55
int miniIMFS_initialize(
56
  rtems_filesystem_mount_table_entry_t *temp_mt_entry
57
)
58
{
59
   IMFS_initialize_support(
60
      temp_mt_entry,
61
      &miniIMFS_ops,
62
      &rtems_filesystem_null_handlers,  /* for memfiles */
63
      &rtems_filesystem_null_handlers   /* for directories */
64
   );
65
   return 0;
66
}
67
 
68
 
69
 

powered by: WebSVN 2.1.0

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