List of function not covered

CONFIG_FILE::archive()

Archive the config file if configured

	PUBLIC VIRTUAL int CONFIG_FILE::archive(
		void)
	

CONFIG_FILE::create()

Create the file empty with proper permission and ownership.

Return -1 if any error

	PUBLIC int CONFIG_FILE::create(
		void) const
	
	

CONFIG_FILE::extract()

	PUBLIC VIRTUAL int CONFIG_FILE::extract(
		SSTREAM&ss)
	

CONFIG_FILE::fclose()

	PUBLIC int CONFIG_FILE::fclose(
		FILE *fout)
	

CONFIG_FILE::forgetpath()

	PUBLIC void CONFIG_FILE::forgetpath(
		void)
	

CONFIG_FILE::getnext()

All config files are connected in a linked list.

Return the next member

	PUBLIC CONFIG_FILE *CONFIG_FILE::getnext(
		void) const
	
	

CONFIG_FILE::getsubsys()

Return the name of the subsystem owning that config file

	PUBLIC const char *CONFIG_FILE::getsubsys(
		void) const
	
	

CONFIG_FILE::is_archived()

Return != 0 if the configuration file is archived (or may be archived)

	PUBLIC int CONFIG_FILE::is_archived(
		void) const
	
	

CONFIG_FILE::is_virtual()

Return != 0 if the configuration file is virtual

	PUBLIC int CONFIG_FILE::is_virtual(
		void) const
	
	

CONFIG_FILE::md5sum()

Compute the md5 checksum of the current configuration file

	PUBLIC VIRTUAL int CONFIG_FILE::md5sum(
		char *sum)
	

CONFIG_FILE::~CONFIG_FILE()

	PUBLIC VIRTUAL CONFIG_FILE::~CONFIG_FILE(
		void)
	

CONFIG_FILE_LISTER::CONFIG_FILE_LISTER()

	PUBLIC CONFIG_FILE_LISTER::CONFIG_FILE_LISTER(
		void(*f)())
	

configf_archive()

	int configf_archive(
		const SSTRINGS&tb,
		const char *command,	// Archiving command (just the name)
		// normally cfgarchive
		const char *arg,	// First argument of the command
		// normally --arch
		SSTREAM&ssout,
		bool verbose)
	

configf_booterase()

Erase some config file at boot time.

	void configf_booterase(
		void)
	

configf_extract()

Extract all the file of the current configuration

	int configf_extract(
		const SSTRINGS&tb,
		const char *command,	// Archiving command (just the name)
		// normally cfgarchive
		const char *arg)	// First argument of the command
		// normally --extr
	

configf_forgetpath()

Forget the realpath of every config file.

This function is called after a context switch to make sure the realpath of the config files will be computed with the new basepath. See CONFIG_FILE::fixpath().

	void configf_forgetpath(
		void)
	

configf_getsubsyslist()

Obtain the list of all subsystems associated with configuration files

The list is added to the tb object. Return the number of subsystem added to tb.

	int configf_getsubsyslist(
		SSTRINGS&tb)
	

configf_locate()

Locate a CONFIG_FILE based on its real (fixed) path

Return NULL if it does not exist

	CONFIG_FILE *configf_locate(
		const char *path)

configf_md5sum()

Do the md5 check sum all the file of the current configuration

	int configf_md5sum(
		const SSTRINGS&tb,
		SSTREAM&ss)
	

configf_sendexist()

Send the heading line telling that the file exist and the rest is

following. This function must be used by all variation of the CONFIG_FILE::archive() function

	void configf_sendexist(
		SSTREAM&ss,
		bool do_exist)
	

configf_show()

List all config file managed by this system

	void configf_show(
		void)
	

file_create()

Create a file with proper permission set.

Request root privilege to do this

	int file_create(
		const char *path,
		const char *owner,
		const char *group,
		int perm)
	

file_date()

Return the modification date of a file

	long file_date(
		const char *path)
	

file_exist()

Check if the file or directory exist.

Return != 0 if yes.

	int file_exist(
		const char *path)
	

file_type()

Check the type of a file or directory.

Return -1 if the path does not exist. Return 0 if this is a file 1 if this is a directory 2 if this is a device 3 if this is a symbolic link 4 if this is a fifo

	int file_type(
		const char *path)