source: rtems/c/src/exec/libcsupport/src/fs_null_handlers.c @ 578a415

4.104.114.84.95
Last change on this file since 578a415 was 578a415, checked in by Joel Sherrill <joel.sherrill@…>, on 10/12/99 at 19:08:55

Corrected mistakes in the IMFS file handlers table and added the missing
routine imfs_fcntl.c

  • Property mode set to 100644
File size: 2.0 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
23rtems_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,                /* fpathconf */
34  NULL,                /* fsync */
35  IMFS_fdatasync,
36  IMFS_fcntl
37};
38
39/*
40 *  Set of operations handlers for operations on directories.
41 */
42
43rtems_filesystem_file_handlers_r dir_handlers = {
44  imfs_dir_open,
45  imfs_dir_close,
46  imfs_dir_read,
47  NULL,             /* write */
48  NULL,             /* ioctl */
49  imfs_dir_lseek,
50  imfs_dir_fstat,
51  IMFS_fchmod,
52  NULL,             /* ftruncate */
53  NULL,             /* fpathconf */
54  NULL,             /* fsync */
55  IMFS_fdatasync,
56  IMFS_fcntl
57};
58
59/*
60 *  Handler table for IMFS device nodes
61 */
62
63rtems_filesystem_file_handlers_r device_handlers = {
64  device_open,
65  device_close,
66  device_read,
67  device_write,
68  device_ioctl,
69  device_lseek,
70  IMFS_stat,
71  IMFS_fchmod,
72  NULL,   /* ftruncate */
73  NULL,   /* fpathconf */
74  NULL,   /* fsync */
75  NULL,   /* fdatasync */
76  NULL    /* fcntl */
77};
78
79/*
80 *  Set of null operations handlers.
81 */
82
83rtems_filesystem_file_handlers_r null_handlers = {
84  NULL,       /* open */
85  NULL,       /* close */
86  NULL,       /* read */
87  NULL,       /* write */
88  NULL,       /* ioctl */
89  NULL,       /* lseek */
90  NULL,       /* fstat */
91  NULL,       /* fchmod */
92  NULL,       /* ftruncate */
93  NULL,       /* fpathconf */
94  NULL,       /* fsync */
95  NULL,       /* fdatasync */
96  NULL        /* fcntl */
97};
Note: See TracBrowser for help on using the repository browser.