RTEMS CPU Kit with SuperCore  4.11.3
mkrootfs.h
Go to the documentation of this file.
1 
7 /*
8  Copyright Cybertec Pty Ltd, 2000
9  All rights reserved Cybertec Pty Ltd, 2000
10 
11  COPYRIGHT (c) 1989-1998.
12  On-Line Applications Research Corporation (OAR).
13 
14  The license and distribution terms for this file may be
15  found in the file LICENSE in this distribution or at
16  http://www.rtems.org/license/LICENSE.
17 
18  This software with is provided ``as is'' and with NO WARRANTY.
19 */
20 
21 #ifndef _RTEMS_MKROOTFS_H
22 #define _RTEMS_MKROOTFS_H
23 
24 #include <arpa/inet.h> /* in_addr_t */
25 
26 #include <rtems.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
44 int
45 rtems_rootfs_file_append (const char *file,
46  mode_t omode,
47  const int line_cnt,
48  const char **lines);
49 
60 int
61 rtems_rootfs_append_host_rec (in_addr_t cip,
62  const char *cname,
63  const char *dname);
64 
73 int
74 rtems_create_root_fs ( void );
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 #endif
int rtems_rootfs_append_host_rec(in_addr_t cip, const char *cname, const char *dname)
Helper for bulding an /etc/hosts file.
Definition: mkrootfs.c:168
int rtems_rootfs_file_append(const char *file, mode_t omode, const int line_cnt, const char **lines)
Appends the lines to the a file.
Definition: mkrootfs.c:76
int rtems_create_root_fs(void)
Create a few common directories, plus a: /etc/passwd, /etc/group, /etc/host.conf, and /etc/hosts file...
Definition: mkrootfs.c:211
Definition: mongoose.c:439