source:
rtems/c/src/libfs/src/imfs/miniimfs_init.c
@
c058578
Last change on this file since c058578 was c058578, checked in by Joel Sherrill <joel.sherrill@…>, on 11/01/00 at 21:02:46 | |
---|---|
|
|
File size: 1.4 KB |
Line | |
---|---|
1 | /* |
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$ |
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 <rtems/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 |
Note: See TracBrowser
for help on using the repository browser.