source: rtems/cpukit/libnetworking/rtems/mkrootfs.h @ c428ec0

4.11
Last change on this file since c428ec0 was c428ec0, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 16, 2010 at 1:50:23 PM

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

PR 1566/filesystem

  • libnetworking/rtems/mkrootfs.c, libnetworking/rtems/mkrootfs.h: Let rtems_rootfs_append_host_rec take an in_addr_t as first arg.
  • libnetworking/rtems/rtems_dhcp.c, libnetworking/nfs/bootp_subr.c: Reflect changes above.
  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[b4d645b]1/**
2 * @file rtems/mkrootfs.h
3 *
4 * RTEMS Root FS creation support.
5 */
[429ba3b]6
[b4d645b]7/*
[d34d2e69]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
[429ba3b]16
[7aa5175]17  http://www.rtems.com/license/LICENSE.
[d34d2e69]18
19  This software with is provided ``as is'' and with NO WARRANTY.
[429ba3b]20
[b4d645b]21  $Id$
[d34d2e69]22*/
23
[c58c2ca]24#ifndef _RTEMS_MKROOTFS_H
25#define _RTEMS_MKROOTFS_H
[d34d2e69]26
[b02f920f]27#include <rtems.h>
28
[4ab3a29]29#ifdef __cplusplus
30extern "C" {
31#endif
32
[d34d2e69]33/*
34 *  Appends the lines to the a file. Create the file
35 *  and builds the path if it does not exist.
36 */
[429ba3b]37
[d34d2e69]38int
39rtems_rootfs_file_append (const char *file,
40                          mode_t     omode,
41                          const int  line_cnt,
42                          const char **lines);
43
44/*
45 *  Helper for bulding an /etc/hosts file.
46 */
47
48int
[c428ec0]49rtems_rootfs_append_host_rec (in_addr_t cip,
[d34d2e69]50                              const char    *cname,
51                              const char    *dname);
52
53/*
54 * Create a few common directories, plus a :
55 * /etc/passwd, /etc/group, /etc/host.conf, and
56 * /etc/hosts file.
57 */
58
59int
[e386ad72]60rtems_create_root_fs ( void );
[d34d2e69]61
[4ab3a29]62#ifdef __cplusplus
63}
64#endif
65
[d34d2e69]66#endif
Note: See TracBrowser for help on using the repository browser.