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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 30 unneback
/*
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: imfs_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
 *  IMFS file system operations table
30
 */
31
 
32
rtems_filesystem_operations_table  IMFS_ops = {
33
  IMFS_eval_path,
34
  IMFS_evaluate_for_make,
35
  IMFS_link,
36
  IMFS_unlink,
37
  IMFS_node_type,
38
  IMFS_mknod,
39
  IMFS_chown,
40
  IMFS_freenodinfo,
41
  IMFS_mount,
42
  IMFS_initialize,
43
  IMFS_unmount,
44
  IMFS_fsunmount,
45
  IMFS_utime,
46
  IMFS_evaluate_link,
47
  IMFS_symlink,
48
  IMFS_readlink
49
};
50
 
51
/*
52
 *  IMFS_initialize
53
 */
54
 
55
int IMFS_initialize(
56
  rtems_filesystem_mount_table_entry_t *temp_mt_entry
57
)
58
{
59
   IMFS_initialize_support(
60
     temp_mt_entry,
61
     &IMFS_ops,
62
     &IMFS_memfile_handlers,
63
     &IMFS_directory_handlers
64
   );
65
   return 0;
66
}

powered by: WebSVN 2.1.0

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