RC_CONFIG man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

RC_CONFIG(3)		    System Manager's Manual		  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
     malloc(3), rc_stringlist_free(3), sh(1)

AUTHORS
     Roy Marples <roy@marples.name>

OpenRC				 Mar 17, 2008				OpenRC
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net