source: rtems/cpukit/libnetworking/rtems/mkrootfs.h @ 432c4f0

4.11
Last change on this file since 432c4f0 was 432c4f0, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 18, 2010 at 10:03:40 AM

2010-06-18 Ralf Corsépius <ralf.corsepius@…>

  • libnetworking/rtems/mkrootfs.h: doxygen cosmetics.
  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file rtems/mkrootfs.h
3 *
4 * RTEMS Root FS creation support.
5 */
6
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
17  http://www.rtems.com/license/LICENSE.
18
19  This software with is provided ``as is'' and with NO WARRANTY.
20
21  $Id$
22*/
23
24#ifndef _RTEMS_MKROOTFS_H
25#define _RTEMS_MKROOTFS_H
26
27#include <rtems.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33/**
34 *  Appends the lines to the a file. Create the file
35 *  and builds the path if it does not exist.
36 *
37 *  @param file
38 *  @param omode
39 *  @param line_cnt
40 *  @param lines
41 *
42 *  @return 0 on success, -1 on error
43 */
44
45int
46rtems_rootfs_file_append (const char *file,
47                          mode_t     omode,
48                          const int  line_cnt,
49                          const char **lines);
50
51/**
52 *  @brief Helper for bulding an /etc/hosts file.
53 *
54 *  @param cip
55 *  @param cname
56 *  @param dname
57 *
58 *  @return 0 on success, -1 on error
59 */
60
61int
62rtems_rootfs_append_host_rec (in_addr_t cip,
63                              const char    *cname,
64                              const char    *dname);
65
66/**
67 * Create a few common directories, plus a:
68 * /etc/passwd, /etc/group, /etc/host.conf, and
69 * /etc/hosts file.
70 *
71 * @return 0 on success, -1 on error
72 */
73
74int
75rtems_create_root_fs ( void );
76
77#ifdef __cplusplus
78}
79#endif
80
81#endif
Note: See TracBrowser for help on using the repository browser.