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

Last change on this file was feea03b6, checked in by Sebastian Huber <sebastian.huber@…>, on Feb 27, 2019 at 9:53:30 AM

Remove explicit file names from @file

This makes the @file documentation independent of the actual file name.

Update #3707.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/**
2 * @file
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  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 <sys/types.h> /* in_addr_t */
25
26#include <rtems.h>
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/**
33 *  Appends the lines to the a file. Create the file
34 *  and builds the path if it does not exist.
35 *
36 *  @param file
37 *  @param omode
38 *  @param line_cnt
39 *  @param lines
40 *
41 *  @return 0 on success, -1 on error
42 */
43
44int
45rtems_rootfs_file_append (const char *file,
46                          mode_t     omode,
47                          const int  line_cnt,
48                          const char **lines);
49
50/**
51 *  @brief Helper for bulding an /etc/hosts file.
52 *
53 *  @param cip
54 *  @param cname
55 *  @param dname
56 *
57 *  @return 0 on success, -1 on error
58 */
59
60int
61rtems_rootfs_append_host_rec (in_addr_t cip,
62                              const char    *cname,
63                              const char    *dname);
64
65/**
66 * Create a few common directories, plus a:
67 * /etc/passwd, /etc/group, /etc/host.conf, and
68 * /etc/hosts file.
69 *
70 * @return 0 on success, -1 on error
71 */
72
73int
74rtems_create_root_fs ( void );
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif
Note: See TracBrowser for help on using the repository browser.