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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libnetworking/] [rtems/] [mkrootfs.h] - Rev 1774

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

/*
  ------------------------------------------------------------------------
  mkrootfs.h,v 1.2 2001/10/12 21:03:15 joel Exp
  ------------------------------------------------------------------------
 
  Copyright Cybertec Pty Ltd, 2000
  All rights reserved Cybertec Pty Ltd, 2000
 
  COPYRIGHT (c) 1989-1998.
  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.
 
  This software with is provided ``as is'' and with NO WARRANTY.
 
  ------------------------------------------------------------------------
 
  RTEMS Root FS creatation support.
 
*/
 
#ifndef __RTEMS_MKROOTFS_h
#define __RTEMS_MKROOTFS_h
 
#include <rtems.h>
 
/*
 *  Builds the complete path, like "mkdir -p".
 */
 
int
rtems_rootfs_mkdir (const char *path, mode_t omode);
 
/*
 *  Appends the lines to the a file. Create the file
 *  and builds the path if it does not exist.
 */
 
int
rtems_rootfs_file_append (const char *file,
                          mode_t     omode,
                          const int  line_cnt,
                          const char **lines);
 
/*
 *  Helper for bulding an /etc/hosts file.
 */
 
int
rtems_rootfs_append_host_rec (unsigned long cip,
                              const char    *cname,
                              const char    *dname);
 
/*
 * Create a few common directories, plus a :
 * /etc/passwd, /etc/group, /etc/host.conf, and
 * /etc/hosts file.
 */
 
int
rtems_create_root_fs ();
 
#endif
 

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.