source: rtems/cpukit/libfs/src/imfs/imfs_handlers_memfile.c @ 0ef748fb

4.104.114.84.95
Last change on this file since 0ef748fb was 0ef748fb, checked in by Joel Sherrill <joel.sherrill@…>, on 12/13/00 at 17:53:55

2000-12-12 Jake Janovetz <janovetz@…>

  • src/imfs/linearfile.c, src/imfs/imfs_load_tar.c: New files.
  • src/imfs/Makefile.am, src/imfs/imfs.h, src/imfs/imfs_creat.c, src/imfs/imfs_debug.c, src/imfs/imfs_eval.c, src/imfs/imfs_handlers_memfile.c, src/imfs/imfs_init.c, src/imfs/imfs_initsupp.c, src/imfs/imfs_stat.c, src/imfs/miniimfs_init.c: Added "tarfs". This is not really a tar filesystem. It is a way to load a tar image into the IMFS but actually leave bulky file contents in the original tar image. It essentially adds the linear file type and associated support and a loader routine.
  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  Memfile Operations Tables for the IMFS
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 <errno.h>
15
16#include "imfs.h"
17
18/*
19 *  Set of operations handlers for operations on memfile entities.
20 */
21
22rtems_filesystem_file_handlers_r IMFS_linearfile_handlers = {
23  memfile_open,
24  memfile_close,
25  linearfile_read,
26  NULL,                /* write */
27  memfile_ioctl,
28  linearfile_lseek,
29  IMFS_stat,
30  NULL,                /* chmod */
31  NULL,                /* ftruncate */
32  NULL,                /* fpathconf */
33  IMFS_fdatasync,      /* fsync */
34  IMFS_fdatasync,
35  IMFS_fcntl,
36  NULL                 /* rmnod */
37};
38
39rtems_filesystem_file_handlers_r IMFS_memfile_handlers = {
40  memfile_open,
41  memfile_close,
42  memfile_read,
43  memfile_write,
44  memfile_ioctl,
45  memfile_lseek,
46  IMFS_stat,
47  IMFS_fchmod,
48  memfile_ftruncate,
49  NULL,                /* fpathconf */
50  IMFS_fdatasync,      /* fsync */
51  IMFS_fdatasync,
52  IMFS_fcntl,
53  memfile_rmnod
54};
Note: See TracBrowser for help on using the repository browser.