Man page - rc_config_value(3)
Packages contas this manual
- rc_runlevel_get(3)
- rc_stringlist(3)
- rc_stringlist_sort(3)
- rc_stringlist_addu(3)
- rc_deptree_free(3)
- rc_deptree_update_needed(3)
- rc_services_scheduled_by(3)
- rc_stringlist_add(3)
- rc_config_list(3)
- rc_stringlist_delete(3)
- rc_runlevel_list(3)
- rc_stringlist_free(3)
- rc_service(3)
- rc_service_description(3)
- rc_service_resolve(3)
- rc_runlevel_starting(3)
- rc_config(3)
- rc_services_scheduled(3)
- rc_service_value_set(3)
- rc_service_started_daemon(3)
- rc_deptree_depend(3)
- rc_plugin_hook(3)
- rc_services_in_runlevel(3)
- rc_service_daemons_crashed(3)
- rc_service_delete(3)
- rc_service_exists(3)
- rc_deptree_update(3)
- rc_service_extra_commands(3)
- rc_service_schedule_start(3)
- rc_deptree_depends(3)
- rc_service_value_get(3)
- rc_config_value(3)
- rc_runlevel_stopping(3)
- rc_runlevel_exists(3)
- rc_deptree(3)
- rc_runlevel_set(3)
- rc_yesno(3)
- rc_deptree_order(3)
- rc_service_state(3)
- rc_deptree_load(3)
- rc_service_schedule_clear(3)
- rc_service_mark(3)
- rc_service_plugable(3)
- rc_service_add(3)
- rc_config_load(3)
- rc_service_daemon_set(3)
- rc_stringlist_new(3)
- rc_services_in_state(3)
- rc_service_in_runlevel(3)
- rc_find_pids(3)
- rc_runlevel(3)
apt-get install librc-dev
Manual
| RC_CONFIG(3) | Library Functions Manual (smm) | RC_CONFIG(3) |
NAME
rc_config_list,
rc_config_load,
rc_config_value, rc_yesno
— functions to query OpenRC service
configurations
LIBRARY
Run Command library (librc, -lrc)
SYNOPSIS
#include
<rc.h>
RC_STRINGLIST *
rc_config_list(const
char *file);
RC_STRINGLIST *
rc_config_load(const
char *file);
char *
rc_config_value(const
char *const *list, const
char *entry);
bool
rc_yesno(const
char *value);
DESCRIPTION
These functions provide an easy means of querying OpenRC configuration files.
rc_config_list()
returns a list of non comment lines in file.
rc_config_load()
does the same, but attempts to parse the line as if it was a shell
assignment.
rc_config_value()
returns the value of entry found in
list.
Each list should be freed using
rc_stringlist_free()
when done.
rc_yesno()
returns if value is true, yes, on or 1 regardless of
case, otherwise false. If value is also not false, no,
off or 0 regardless of case then errno is set to
EINVAL.
SEE ALSO
AUTHORS
Roy Marples <roy@marples.name>
| March 17, 2008 | OpenRC |