Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

popt/poptconfig.c File Reference

More...

#include "system.h"
#include "poptint.h"

Go to the source code of this file.

Functions

void configLine (poptContext con, char *line)
int poptReadConfigFile (poptContext con, const char *fn)
int poptReadDefaultConfig (poptContext con, int useEnv)


Detailed Description

Definition in file poptconfig.c.


Function Documentation

void configLine poptContext    con,
char *    line
[static]
 

Definition at line 13 of file poptconfig.c.

References alloca(), poptContext_s::appName, poptItem_s::argc, poptOption::argDescrip, poptOption::argInfo, poptItem_s::argv, poptOption::descrip, poptOption::longName, poptItem_s::option, POPT_ARG_STRING, POPT_ARGFLAG_DOC_HIDDEN, poptAddItem(), poptParseArgvString(), and poptOption::shortName.

Referenced by poptReadConfigFile().

int poptReadConfigFile poptContext    con,
const char *    fn
 

Read configuration file.

Parameters:
con  context
fn  file name to read
Returns:
0 on success, POPT_ERROR_ERRNO on failure

Definition at line 95 of file poptconfig.c.

References alloca(), configLine(), errno, POPT_ERROR_ERRNO, and SEEK_END.

Referenced by main(), poptReadDefaultConfig(), and rpmcliInit().

int poptReadDefaultConfig poptContext    con,
int    useEnv
 

Read default configuration from /etc/popt and $HOME/.popt.

Parameters:
con  context
useEnv  (unused)
Returns:
0 on success, POPT_ERROR_ERRNO on failure

Definition at line 166 of file poptconfig.c.

References alloca(), poptContext_s::appName, getenv(), and poptReadConfigFile().

Referenced by main(), and rpmcliInit().


Generated on Sun Oct 26 13:02:06 2003 for rpm by doxygen1.2.18