from small one page howto to huge articles all in one place
Last additions:
May 25th. 2007:
April, 26th. 2006:
|
You are here: manpages
RC_CONFIG
Section: C Library Functions (3) Updated: SMM Index
Return to Main Contents
BSD mandoc
OpenRC
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
In rc.h
Ft RC_STRINGLIST * Fn rc_config_list const char *file
Ft RC_STRINGLIST * Fn rc_config_load const char *file
Ft char * Fn rc_config_value const char *const *list const char *entry
Ft bool Fn rc_yesno const char *value
DESCRIPTION
These functions provide an easy means of querying OpenRC configuration files.
Fn rc_config_list
returns a list of non comment lines in
Fa file .
Fn rc_config_load
does the same, but attempts to parse the line as if it was
a shell assignment.
Fn rc_config_value
returns the value of
Fa entry
found in
Fa list .
Each list should be freed using
Fn rc_stringlist_free
when done.
Fn rc_yesno
returns true if
Fa value
is "true", "yes", "y" or "1" regardless of case. Otherwise if
Fa value
is "false", "no", "n" or "0" (regardless of case) returns false. If
Fa value
does not match either, then returns false and sets
errno
to
EINVAL
SEE ALSO
malloc(3),
rc_stringlist_free3,
sh(1)
AUTHORS
An Roy Marples < roy@marples.name>
Index
- NAME
-
- LIBRARY
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- AUTHORS
-
|