Files | |
file | rpmlib.h |
In Memoriam: Steve Taylor <staylor@redhat.com> was here, now he's not. | |
file | macro.c |
RPMRC | |
enum | rpm_machtable_e { RPM_MACHTABLE_INSTARCH = 0, RPM_MACHTABLE_INSTOS = 1, RPM_MACHTABLE_BUILDARCH = 2, RPM_MACHTABLE_BUILDOS = 3 } |
Build and install arch/os table identifiers. More... | |
int | rpmReadConfigFiles (const char *file, const char *target) |
Read macro configuration file(s) for a target. | |
void | rpmGetArchInfo (const char **name, int *num) |
void | rpmGetOsInfo (const char **name, int *num) |
int | rpmMachineScore (int type, const char *name) |
int | rpmPlatformScore (const char *platform, void *mi_re, int mi_nre) |
Return score of a platform string. | |
int | rpmShowRC (FILE *fp) |
Display current rpmrc (and macro) configuration. | |
void | rpmSetTables (int archTable, int osTable) |
void | rpmSetMachine (const char *arch, const char *os) |
Set current arch/os names. | |
void | rpmFreeRpmrc (void) |
Destroy rpmrc arch/os compatibility tables. | |
const char * | rpmRcfiles |
The default rpmrc files to be read. | |
Functions | |
static void | rpmSetVar (int var, const char *val) |
Set value of an rpmrc variable. | |
static int | rpmReadRC (const char *rcfiles) |
Read rpmrc (and macro) configuration file(s). | |
Variables | |
const char * | rpmMacrofiles |
List of macro files to read when configuring rpm. |
|
Build and install arch/os table identifiers.
|
|
Destroy rpmrc arch/os compatibility tables.
Definition at line 1804 of file rpmrc.c. References _free(), rpmvarValue::arch, ARCH, tableType_s::cache, machCache_s::cache, tableType_s::canons, tableType_s::canonsLength, machEquivTable_s::count, current, tableType_s::defaults, defaultsInitialized, tableType_s::defaultsLength, defaultEntry_s::defName, tableType_s::equiv, machCacheEntry_s::equivs, machEquivTable_s::list, mireFreeAll(), machEquivInfo_s::name, machCacheEntry_s::name, defaultEntry_s::name, canonEntry_s::name, next, rpmvarValue::next, nplatpat, OS, platpat, canonEntry_s::short_name, machCache_s::size, and rpmvarValue::value. Referenced by build(), rpmcliFini(), and rpmspecQuery(). |
|
Definition at line 1693 of file rpmrc.c. References ARCH, and getMachineInfo(). |
|
Definition at line 1698 of file rpmrc.c. References getMachineInfo(), and OS. |
|
Definition at line 1614 of file rpmrc.c. References machEquivSearch(), and machEquivInfo_s::score. Referenced by archScore(). |
|
Return score of a platform string. A platform score measures the "nearness" of a platform string wrto configured platform patterns. The returned score is the line number of the 1st pattern in /etc/rpm/platform that matches the input string.
Definition at line 1061 of file rpmrc.c. References nplatpat, and platpat. Referenced by rpmtsAddInstallElement(). |
|
Read macro configuration file(s) for a target.
Definition at line 1989 of file rpmrc.c. References _free(), configTarget, rpmExpand(), rpmReadRC(), rpmRebuildTargetVars(), and rpmSetMachine(). Referenced by build(), init_rpm(), rpmcliConfigured(), and rpmspecQuery(). |
|
Read rpmrc (and macro) configuration file(s).
Definition at line 1880 of file rpmrc.c. References _, _free(), defaultsInitialized, doReadRC(), Ferror(), Fopen(), Fstrerror(), getenv(), RPMERR_RPMRC, rpmError, rpmExpand(), rpmGetVarArch(), rpmInitMacros(), rpmMacrofiles, rpmRcfiles, RPMVAR_MACROFILES, setDefaults(), and xstrdup(). Referenced by rpmReadConfigFiles(). |
|
Set current arch/os names. NULL as argument is set to the default value (munged uname()) pushed through a translation table (if appropriate).
Definition at line 1631 of file rpmrc.c. References _free(), ARCH, current, currTables, defaultMachine(), lookupInDefaultTable(), OS, rebuildCompatTables(), and xstrdup(). Referenced by rpmReadConfigFiles(), rpmRebuildTargetVars(), and rpmShowRC(). |
|
Definition at line 1595 of file rpmrc.c. References ARCH, currTables, defaultMachine(), OS, and rebuildCompatTables(). Referenced by buildForTarget(), rpmRebuildTargetVars(), and rpmShowRC(). |
|
Set value of an rpmrc variable.
Definition at line 502 of file rpmrc.c. References freeRpmVar(), rpmvarValue::value, and xstrdup(). Referenced by setPathDefault(), and setVarDefault(). |
|
Display current rpmrc (and macro) configuration.
Definition at line 2026 of file rpmrc.c. References _, _free(), ARCH, current, tableType_s::equiv, machEquivTable_s::list, machEquivInfo_s::name, rpmOption::name, optionTableSize, OS, RPM_MACHTABLE_BUILDARCH, RPM_MACHTABLE_BUILDOS, RPM_MACHTABLE_INSTARCH, RPM_MACHTABLE_INSTOS, rpmcliRcfile, rpmdsCpuinfo(), rpmdsDNEVR(), rpmdsFree(), rpmdsFreePRCO(), rpmdsFromPRCO(), rpmdsGetconf(), rpmdsInit(), rpmdsNewPRCO(), rpmdsNext(), rpmdsRpmlib(), rpmdsSysinfo(), rpmdsUname(), rpmDumpMacroTable(), rpmExpand(), rpmGetVarArch(), rpmIsVerbose, rpmMacrofiles, rpmSetMachine(), rpmSetTables(), RPMTAG_PROVIDENAME, and rpmOption::var. Referenced by rpmcliAllArgCallback(). |
|
List of macro files to read when configuring rpm. This is a colon separated list of files. URI's are permitted as well, identified by the token '://', so file paths must not begin with '//'. Definition at line 45 of file macro.c. Referenced by rpmReadRC(), and rpmShowRC(). |
|
The default rpmrc files to be read.
Definition at line 28 of file rpmrc.c. Referenced by rpmReadRC(). |