Other functions

CONFIG_FILE::editpath()

	PUBLIC int CONFIG_FILE::editpath(
		void)
	

CONFIG_FILE::fixpath()

	PRIVATE void CONFIG_FILE::fixpath(
		void) const
	
	

CONFIG_FILE::fopen_ok()

Open the configuration file without permission checking.

	PUBLIC FILE *CONFIG_FILE::fopen_ok(
		const char *mode) const
	
	

CONFIG_FILE::fopen_tmp()

Open a temporary file using the configuration and adding .tmp to its

name.

	PUBLIC FILE *CONFIG_FILE::fopen_tmp(
		PRIVILEGE *priv,
		const char *mode) const
	
	

CONFIG_FILE::gethelp()

Return the path of the help for that configuration file

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

CONFIG_FILE::init()

	PRIVATE void CONFIG_FILE::init(
		const char *_path,
		int _status,
		const char *_owner,
		const char *_group,
		int _perm,
		const char *_subsys)
	

CONFIG_FILE::is_erased()

Return != 0 if the configuration file is erased at boot time

	PUBLIC int CONFIG_FILE::is_erased(
		void) const
	
	

CONFIG_FILE::is_generated()

Return != 0 if the configuration file is generated by linuxconf.

	PUBLIC int CONFIG_FILE::is_generated(
		void) const
	
	

CONFIG_FILE::is_managed()

Return != 0 if the configuration file is managed by linuxconf.

Some configuration file are only read (expect to be there and probably never edited by the user.

	PUBLIC int CONFIG_FILE::is_managed(
		void) const
	
	

CONFIG_FILE::is_optionnal()

Return != 0 if the configuration file is optionnal.

	PUBLIC int CONFIG_FILE::is_optionnal(
		void) const
	
	

CONFIG_FILE::is_probed()

Return != 0 if the configuration file is probed by linuxconf.

probing is simply to check its modification time.

	PUBLIC int CONFIG_FILE::is_probed(
		void) const
	
	

CONFIG_FILE::relink_tmp()

Rename to original to .OLD, rename the tmp to the original

(This function assumes that fopen_tmp() has been used to update the configuration file) return -1 if any error.

	PUBLIC int CONFIG_FILE::relink_tmp(
		void)
	

CONFIG_FILE::setperm()

Set the permissions and owner of a file to the same value as

the configuration file, if it has such a requirement. Return -1 if any error.

	PUBLIC int CONFIG_FILE::setperm(
		const char *fpath) const
	
	

CONFIG_FILE::sign()

	PRIVATE void CONFIG_FILE::sign(
		FILE *fout,
		const char *mode) const
	
	

CONFIG_FILE::unlink()

Erase a configuration file

	PUBLIC int CONFIG_FILE::unlink(
		void) const