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... | |
const char * | rpmGetVar (int var) |
Return value of an rpmrc variable. | |
void | rpmSetVar (int var, const char *val) |
Set value of an rpmrc variable. | |
int | rpmReadConfigFiles (const char *file, const char *target) |
Read macro configuration file(s) for a target. | |
void | rpmGetArchInfo (const char **name, int *num) |
Return current arch name and/or number. | |
void | rpmGetOsInfo (const char **name, int *num) |
Return current os name and/or number. | |
int | rpmMachineScore (int type, const char *name) |
Return arch/os score of a name. | |
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 | rpmGetMachine (const char **arch, const char **os) |
Return current arch/os names. | |
void | rpmFreeRpmrc (void) |
Destroy rpmrc arch/os compatibility tables. | |
Functions | |
static int | rpmReadRC (const char *rcfiles) |
Read rpmrc (and macro) configuration file(s). | |
Variables | |
const char * | macrofiles |
List of macro files to read when configuring rpm. |
enum rpm_machtable_e |
Build and install arch/os table identifiers.
void rpmFreeRpmrc | ( | void | ) |
void rpmGetArchInfo | ( | const char ** | name, | |
int * | num | |||
) |
Return current arch name and/or number.
Definition at line 1595 of file rpmrc.c.
Referenced by checkForValidArchitectures(), parseSpec(), readLine(), and writeRPM().
void rpmGetMachine | ( | const char ** | arch, | |
const char ** | os | |||
) |
Return current arch/os names.
Definition at line 1499 of file rpmrc.c.
Referenced by archFilter(), and parseSpec().
void rpmGetOsInfo | ( | const char ** | name, | |
int * | num | |||
) |
Return current os name and/or number.
Definition at line 1600 of file rpmrc.c.
References getMachineInfo().
Referenced by checkForValidArchitectures(), parseSpec(), readLine(), and writeRPM().
const char* rpmGetVar | ( | int | var | ) |
Return value of an rpmrc variable.
Definition at line 1405 of file rpmrc.c.
Referenced by doReadRC(), setPathDefault(), setVarDefault(), and unsatisfiedDepend().
int rpmMachineScore | ( | int | type, | |
const char * | name | |||
) |
Return arch/os score of a name.
An arch/os score measures the "nearness" of a name to the currently running (or defined) platform arch/os. For example, the score of arch "i586" on an i686 platform is (usually) 2. The arch/os score is used to select one of several otherwise identical packages using the arch/os tags from the header as hints of the intended platform for the package.
Definition at line 1493 of file rpmrc.c.
Referenced by addTE(), archFilter(), archOkay(), archScore(), osOkay(), and parseSpec().
int rpmReadConfigFiles | ( | const char * | file, | |
const char * | target | |||
) |
Read macro configuration file(s) for a target.
file | colon separated files to read (NULL uses default) | |
target | target platform (NULL uses default) |
Definition at line 1881 of file rpmrc.c.
Referenced by build(), init_rpm(), main(), and rpmcliConfigured().
static int rpmReadRC | ( | const char * | rcfiles | ) | [static] |
void rpmSetMachine | ( | const char * | arch, | |
const char * | os | |||
) |
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 1508 of file rpmrc.c.
Referenced by archFilter(), and parseSpec().
void rpmSetTables | ( | int | archTable, | |
int | osTable | |||
) |
archTable | ||
osTable |
Definition at line 1474 of file rpmrc.c.
Referenced by archFilter(), and buildForTarget().
void rpmSetVar | ( | int | var, | |
const char * | val | |||
) |
Set value of an rpmrc variable.
Definition at line 1428 of file rpmrc.c.
Referenced by setPathDefault(), and setVarDefault().
int rpmShowRC | ( | FILE * | fp | ) |
Display current rpmrc (and macro) configuration.
fp | output file handle |
Definition at line 1914 of file rpmrc.c.
Referenced by rpmcliAllArgCallback().
const char* macrofiles |