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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libc/] [imfs_init.c] - Rev 623

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

/*
 *  IMFS Initialization
 *
 *  COPYRIGHT (c) 1989-1999.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.OARcorp.com/rtems/license.html.
 *
 *  $Id: imfs_init.c,v 1.2 2001-09-27 12:01:15 chris Exp $
 */
 
#include <sys/types.h>         /* for mkdir */
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
 
#include <assert.h>
 
#include "imfs.h"
#include "libio_.h"
 
#if defined(IMFS_DEBUG)
#include <stdio.h>
#endif
 
/*  
 *  IMFS file system operations table
 */
 
rtems_filesystem_operations_table  IMFS_ops = {
  IMFS_eval_path,
  IMFS_evaluate_for_make,
  IMFS_link,
  IMFS_unlink,
  IMFS_node_type,
  IMFS_mknod,
  IMFS_chown,
  IMFS_freenodinfo,
  IMFS_mount,
  IMFS_initialize,
  IMFS_unmount,
  IMFS_fsunmount,
  IMFS_utime,
  IMFS_evaluate_link,
  IMFS_symlink,
  IMFS_readlink
};
 
/*
 *  IMFS_initialize
 */
 
int IMFS_initialize(
  rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
   IMFS_initialize_support(
     temp_mt_entry,
     &IMFS_ops,
     &IMFS_memfile_handlers,
     &IMFS_directory_handlers
   );
   return 0;
}
 

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

powered by: WebSVN 2.1.0

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