4.104.114.84.95
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 | /* |
---|
30 | * Builds the complete path, like "mkdir -p". |
---|
31 | */ |
---|
32 | |
---|
33 | int |
---|
34 | rtems_rootfs_mkdir (const char *path, mode_t omode); |
---|
35 | |
---|
36 | /* |
---|
37 | * Appends the lines to the a file. Create the file |
---|
38 | * and builds the path if it does not exist. |
---|
39 | */ |
---|
40 | |
---|
41 | int |
---|
42 | rtems_rootfs_file_append (const char *file, |
---|
43 | mode_t omode, |
---|
44 | const int line_cnt, |
---|
45 | const char **lines); |
---|
46 | |
---|
47 | /* |
---|
48 | * Helper for bulding an /etc/hosts file. |
---|
49 | */ |
---|
50 | |
---|
51 | int |
---|
52 | rtems_rootfs_append_host_rec (unsigned long cip, |
---|
53 | const char *cname, |
---|
54 | const char *dname); |
---|
55 | |
---|
56 | /* |
---|
57 | * Create a few common directories, plus a : |
---|
58 | * /etc/passwd, /etc/group, /etc/host.conf, and |
---|
59 | * /etc/hosts file. |
---|
60 | */ |
---|
61 | |
---|
62 | int |
---|
63 | rtems_create_root_fs (); |
---|
64 | |
---|
65 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.