RTEMS CPU Kit with SuperCore  4.11.3
Functions
mkrootfs.h File Reference

RTEMS Root FS creation support. More...

#include <arpa/inet.h>
#include <rtems.h>
Include dependency graph for mkrootfs.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

RTEMS Root FS creation support.

Function Documentation

◆ rtems_create_root_fs()

int rtems_create_root_fs ( void  )

Create a few common directories, plus a: /etc/passwd, /etc/group, /etc/host.conf, and /etc/hosts file.

Returns
0 on success, -1 on error

◆ rtems_rootfs_append_host_rec()

int rtems_rootfs_append_host_rec ( in_addr_t  cip,
const char *  cname,
const char *  dname 
)

Helper for bulding an /etc/hosts file.

Parameters
cip
cname
dname
Returns
0 on success, -1 on error

◆ rtems_rootfs_file_append()

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.

Parameters
file
omode
line_cnt
lines
Returns
0 on success, -1 on error