RTEMS CPU Kit with SuperCore
|
RTEMS Root FS creation support. More...
Go to the source code of this file.
Functions | |
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. More... | |
int | rtems_rootfs_append_host_rec (in_addr_t cip, const char *cname, const char *dname) |
Helper for bulding an /etc/hosts file. More... | |
int | rtems_create_root_fs (void) |
Create a few common directories, plus a: /etc/passwd, /etc/group, /etc/host.conf, and /etc/hosts file. More... | |
RTEMS Root FS creation support.
int rtems_create_root_fs | ( | void | ) |
Create a few common directories, plus a: /etc/passwd, /etc/group, /etc/host.conf, and /etc/hosts file.
int rtems_rootfs_append_host_rec | ( | in_addr_t | cip, |
const char * | cname, | ||
const char * | dname | ||
) |
Helper for bulding an /etc/hosts file.
cip | |
cname | |
dname |
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.
Create the file and builds the path if it does not exist.
file | |
omode | |
line_cnt | |
lines |