4.104.114.84.95
Last change
on this file since fcee56c0 was
49629bd8,
checked in by Jennifer Averett <Jennifer.Averett@…>, on 12/03/98 at 22:17:46
|
Added a imfs fdatasync routine that gets called for fdatasync and datasync.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /* |
---|
2 | * Operations Tables for the IMFS |
---|
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 <errno.h> |
---|
16 | |
---|
17 | #include "imfs.h" |
---|
18 | |
---|
19 | /* |
---|
20 | * Set of operations handlers for operations on memfile entities. |
---|
21 | */ |
---|
22 | |
---|
23 | rtems_filesystem_file_handlers_r memfile_handlers = { |
---|
24 | memfile_open, |
---|
25 | memfile_close, |
---|
26 | memfile_read, |
---|
27 | memfile_write, |
---|
28 | memfile_ioctl, |
---|
29 | memfile_lseek, |
---|
30 | IMFS_stat, |
---|
31 | IMFS_fchmod, |
---|
32 | memfile_ftruncate, |
---|
33 | NULL, |
---|
34 | IMFS_fdatasync, |
---|
35 | IMFS_fdatasync |
---|
36 | }; |
---|
37 | |
---|
38 | /* |
---|
39 | * Set of operations handlers for operations on directories. |
---|
40 | */ |
---|
41 | |
---|
42 | rtems_filesystem_file_handlers_r dir_handlers = { |
---|
43 | imfs_dir_open, |
---|
44 | imfs_dir_close, |
---|
45 | imfs_dir_read, |
---|
46 | NULL, |
---|
47 | NULL, |
---|
48 | imfs_dir_lseek, |
---|
49 | imfs_dir_fstat, |
---|
50 | IMFS_fchmod, |
---|
51 | NULL, |
---|
52 | IMFS_fdatasync, |
---|
53 | IMFS_fdatasync |
---|
54 | }; |
---|
55 | |
---|
56 | /* |
---|
57 | * Handler table for IMFS device nodes |
---|
58 | */ |
---|
59 | |
---|
60 | rtems_filesystem_file_handlers_r device_handlers = { |
---|
61 | device_open, |
---|
62 | device_close, |
---|
63 | device_read, |
---|
64 | device_write, |
---|
65 | device_ioctl, |
---|
66 | device_lseek, |
---|
67 | IMFS_stat, |
---|
68 | IMFS_fchmod, |
---|
69 | NULL, |
---|
70 | NULL, |
---|
71 | NULL, |
---|
72 | NULL |
---|
73 | }; |
---|
74 | |
---|
75 | /* |
---|
76 | * Set of null operations handlers. |
---|
77 | */ |
---|
78 | |
---|
79 | rtems_filesystem_file_handlers_r null_handlers = { |
---|
80 | NULL, |
---|
81 | NULL, |
---|
82 | NULL, |
---|
83 | NULL, |
---|
84 | NULL, |
---|
85 | NULL, |
---|
86 | NULL, |
---|
87 | NULL, |
---|
88 | NULL, |
---|
89 | NULL, |
---|
90 | NULL, |
---|
91 | NULL |
---|
92 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.