|
Packit Service |
96b5d3 |
.TH optionFileLoad 3 2016-08-29 "" "Programmer's Manual"
|
|
Packit Service |
96b5d3 |
.\" DO NOT EDIT THIS FILE (optionFileLoad.3)
|
|
Packit Service |
96b5d3 |
.\"
|
|
Packit Service |
96b5d3 |
.\" It has been AutoGen-ed
|
|
Packit Service |
96b5d3 |
.\" From the definitions ./funcs.def
|
|
Packit Service |
96b5d3 |
.\" and the template file agman3.tpl
|
|
Packit Service |
96b5d3 |
.SH NAME
|
|
Packit Service |
96b5d3 |
optionFileLoad - Load the locatable config files, in order
|
|
Packit Service |
96b5d3 |
.sp 1
|
|
Packit Service |
96b5d3 |
.SH SYNOPSIS
|
|
Packit Service |
96b5d3 |
|
|
Packit Service |
96b5d3 |
#include <\fIyour-opts.h\fP>
|
|
Packit Service |
96b5d3 |
.br
|
|
Packit Service |
96b5d3 |
cc [...] -o outfile infile.c -l\fBopts\fP [...]
|
|
Packit Service |
96b5d3 |
.sp 1
|
|
Packit Service |
96b5d3 |
int \fBoptionFileLoad\fP(tOptions * \fIopts\fP, char const * \fIprog\fP);
|
|
Packit Service |
96b5d3 |
.sp 1
|
|
Packit Service |
96b5d3 |
.SH DESCRIPTION
|
|
Packit Service |
96b5d3 |
This function looks in all the specified directories for a configuration
|
|
Packit Service |
96b5d3 |
file ("rc" file or "ini" file) and processes any found twice. The first
|
|
Packit Service |
96b5d3 |
time through, they are processed in reverse order (last file first). At
|
|
Packit Service |
96b5d3 |
that time, only "immediate action" configurables are processed. For
|
|
Packit Service |
96b5d3 |
example, if the last named file specifies not processing any more
|
|
Packit Service |
96b5d3 |
configuration files, then no more configuration files will be processed.
|
|
Packit Service |
96b5d3 |
Such an option in the \fBfirst\fP named directory will have no effect.
|
|
Packit Service |
96b5d3 |
|
|
Packit Service |
96b5d3 |
Once the immediate action configurables have been handled, then the
|
|
Packit Service |
96b5d3 |
directories are handled in normal, forward order. In that way, later
|
|
Packit Service |
96b5d3 |
config files can override the settings of earlier config files.
|
|
Packit Service |
96b5d3 |
|
|
Packit Service |
96b5d3 |
See the AutoOpts documentation for a thorough discussion of the
|
|
Packit Service |
96b5d3 |
config file format.
|
|
Packit Service |
96b5d3 |
|
|
Packit Service |
96b5d3 |
Configuration files not found or not decipherable are simply ignored.
|
|
Packit Service |
96b5d3 |
.TP
|
|
Packit Service |
96b5d3 |
.IR opts
|
|
Packit Service |
96b5d3 |
program options descriptor
|
|
Packit Service |
96b5d3 |
.TP
|
|
Packit Service |
96b5d3 |
.IR prog
|
|
Packit Service |
96b5d3 |
program name
|
|
Packit Service |
96b5d3 |
.sp 1
|
|
Packit Service |
96b5d3 |
.SH RETURN VALUE
|
|
Packit Service |
96b5d3 |
0 \-> SUCCESS, \-1 \-> FAILURE
|
|
Packit Service |
96b5d3 |
.sp 1
|
|
Packit Service |
96b5d3 |
.SH ERRORS
|
|
Packit Service |
96b5d3 |
Returns the value, "-1" if the program options descriptor
|
|
Packit Service |
96b5d3 |
is out of date or indecipherable. Otherwise, the value "0" will
|
|
Packit Service |
96b5d3 |
always be returned.
|
|
Packit Service |
96b5d3 |
.SH SEE ALSO
|
|
Packit Service |
96b5d3 |
The \fIinfo\fP documentation for the -l\fIopts\fP library.
|
|
Packit Service |
96b5d3 |
.br
|
|
Packit Service |
96b5d3 |
ao_string_tokenize(3), configFileLoad(3), optionFindNextValue(3), optionFindValue(3), optionFree(3), optionGetValue(3), optionLoadLine(3), optionMemberList(3), optionNextValue(3), optionOnlyUsage(3), optionPrintVersion(3), optionPrintVersionAndReturn(3), optionProcess(3), optionRestore(3), optionSaveFile(3), optionSaveState(3), optionUnloadNested(3), optionVersion(3), strequate(3), streqvcmp(3), streqvmap(3), strneqvcmp(3), strtransform(3),
|