summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libnetworking/rtems/mkrootfs.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-09-19 17:29:42 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-09-19 17:29:42 +0000
commitd34d2e695714fcaf3827ac0132d19f5781b986d0 (patch)
tree801edfaeeb00baf764e51a2c48b85e7dcbc7b4c3 /c/src/exec/libnetworking/rtems/mkrootfs.h
parent2001-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-d34d2e695714fcaf3827ac0132d19f5781b986d0.tar.bz2
2001-09-19 Chris Johns <ccj@acm.org>
* Added support for populating the initial "root" filesystem with information obtained via the DHCP response. * rootfs: New directory. * rootfs/.cvsignore, rootfs/Makefile.am, rootfs/mkrootfs.c, rootfs/mkrootfs.h: New files. * configure.in, Makefile.am: Modified to reflect addition.
Diffstat (limited to '')
-rw-r--r--c/src/exec/libnetworking/rtems/mkrootfs.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/c/src/exec/libnetworking/rtems/mkrootfs.h b/c/src/exec/libnetworking/rtems/mkrootfs.h
new file mode 100644
index 0000000000..ac9d697da4
--- /dev/null
+++ b/c/src/exec/libnetworking/rtems/mkrootfs.h
@@ -0,0 +1,67 @@
+/*
+ ------------------------------------------------------------------------
+ $Id$
+ ------------------------------------------------------------------------
+
+ Copyright Cybertec Pty Ltd, 2000
+ All rights reserved Cybertec Pty Ltd, 2000
+
+ COPYRIGHT (c) 1989-1998.
+ On-Line Applications Research Corporation (OAR).
+ Copyright assigned to U.S. Government, 1994.
+
+ 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