|
rpm
4.8.1
|
In Memoriam: Steve Taylor staylor@redhat.com was here, now he's not. More...
#include <popt.h>#include <rpm/rpmio.h>#include <rpm/header.h>#include <rpm/rpmtag.h>#include <rpm/rpmds.h>#include <rpm/rpmpgp.h>
Go to the source code of this file.
Functions | |
| void | headerMergeLegacySigs (Header h, const Header sigh) |
| Translate and merge legacy signature tags into header. More... | |
| Header | headerRegenSigHeader (const Header h, int noArchiveSize) |
| Regenerate signature header. More... | |
Variables | |
| struct rpmMacroContext_s * | rpmGlobalMacroContext |
| struct rpmMacroContext_s * | rpmCLIMacroContext |
| const char *const | RPMVERSION |
| const char *const | rpmNAME |
| const char *const | rpmEVR |
| const int | rpmFLAGS |
RPMRC | |
| #define | RPM_MACHTABLE_COUNT 4 |
| 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. More... | |
| void | rpmGetArchInfo (const char **name, int *num) |
| Return current arch name and/or number. More... | |
| void | rpmGetOsInfo (const char **name, int *num) |
| Return current os name and/or number. More... | |
| int | rpmMachineScore (int type, const char *name) |
| Return arch/os score of a name. More... | |
| int | rpmShowRC (FILE *fp) |
| Display current rpmrc (and macro) configuration. More... | |
| void | rpmSetTables (int archTable, int osTable) |
| void | rpmFreeRpmrc (void) |
| Destroy rpmrc arch/os compatibility tables. More... | |
| int | rpmVersionCompare (Header first, Header second) |
| Compare headers to determine which header is "newer". More... | |
| rpmRC | headerCheckPayloadFormat (Header h) |
| Check for supported payload format in header. More... | |
| rpmRC | headerCheck (rpmts ts, const void *uh, size_t uc, char **msg) |
| Check header consistency, performing headerGetEntry() the hard way. More... | |
| rpmRC | rpmReadHeader (rpmts ts, FD_t fd, Header *hdrp, char **msg) |
| Return checked and loaded header. More... | |
| rpmRC | rpmReadPackageFile (rpmts ts, FD_t fd, const char *fn, Header *hdrp) |
| Return package header from file handle, verifying digests/signatures. More... | |
| rpmRC | rpmInstallSourcePackage (rpmts ts, FD_t fd, char **specFilePtr, char **cookie) |
| Install source package. More... | |
| int | rpmvercmp (const char *a, const char *b) |
| Segmented string compare for version or release strings. More... | |
| void | rpmFreeFilesystems (void) |
| Release storage used by file system usage cache. More... | |
| int | rpmGetFilesystemList (const char ***listptr, unsigned int *num) |
| Return (cached) file system mount points. More... | |
| int | rpmGetFilesystemUsage (const char **fileList, rpm_loff_t *fssizes, unsigned int numFiles, rpm_loff_t **usagesPtr, int flags) |
| Determine per-file system usage for a list of files. More... | |
In Memoriam: Steve Taylor staylor@redhat.com was here, now he's not.
Definition in file rpmlib.h.
| enum rpm_machtable_e |
Build and install arch/os table identifiers.
Check header consistency, performing headerGetEntry() the hard way.
Sanity checks on the header are performed while looking for a header-only digest or signature to verify the blob. If found, the digest or signature is verified.
| ts | transaction set |
| uh | unloaded header blob |
| uc | no. of bytes in blob (or 0 to disable) |
| *msg | verification error message (or NULL) |
Check for supported payload format in header.
| h | header to check |
Translate and merge legacy signature tags into header.
| h | header |
| sigh | signature header |
Regenerate signature header.
| h | header |
| noArchiveSize | don't copy archive size tag (pre rpm-4.1) |
| void rpmFreeFilesystems | ( | void | ) |
Release storage used by file system usage cache.
Referenced by main().
| void rpmFreeRpmrc | ( | void | ) |
| void rpmGetArchInfo | ( | const char ** | name, |
| int * | num | ||
| ) |
Return current arch name and/or number.
| name | address of arch name (or NULL) |
| num | address of arch number (or NULL) |
| int rpmGetFilesystemList | ( | const char *** | listptr, |
| unsigned int * | num | ||
| ) |
Return (cached) file system mount points.
| listptr | addess of file system names (or NULL) |
| num | address of number of file systems (or NULL) |
| int rpmGetFilesystemUsage | ( | const char ** | fileList, |
| rpm_loff_t * | fssizes, | ||
| unsigned int | numFiles, | ||
| rpm_loff_t ** | usagesPtr, | ||
| int | flags | ||
| ) |
Determine per-file system usage for a list of files.
| fileList | array of absolute file names |
| fssizes | array of file sizes |
| numFiles | number of files in list |
| usagesPtr | address of per-file system usage array (or NULL) |
| flags | (unused) |
| void rpmGetOsInfo | ( | const char ** | name, |
| int * | num | ||
| ) |
Return current os name and/or number.
| name | address of os name (or NULL) |
| num | address of os number (or NULL) |
Install source package.
| ts | transaction set |
| fd | file handle |
| specFilePtr | address of spec file name (or NULL) |
| cookie | address of cookie pointer (or NULL) |
| 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.
| type | any of the RPM_MACHTABLE_* constants |
| name | name |
| int rpmReadConfigFiles | ( | const char * | file, |
| const char * | target | ||
| ) |
Return checked and loaded header.
| ts | transaction set |
| fd | file handle |
| hdrp | address of header (or NULL) |
| *msg | verification error message (or NULL) |
Return package header from file handle, verifying digests/signatures.
| ts | transaction set |
| fd | file handle |
| fn | file name |
| hdrp | address of header (or NULL) |
Referenced by main().
| void rpmSetTables | ( | int | archTable, |
| int | osTable | ||
| ) |
| archTable | |
| osTable |
Referenced by buildForTarget().
| int rpmShowRC | ( | FILE * | fp | ) |
Display current rpmrc (and macro) configuration.
| fp | output file handle |
| int rpmvercmp | ( | const char * | a, |
| const char * | b | ||
| ) |
Segmented string compare for version or release strings.
| a | 1st string |
| b | 2nd string |
Compare headers to determine which header is "newer".
| first | 1st header |
| second | 2nd header |
| struct rpmMacroContext_s* rpmCLIMacroContext |
| const char* const rpmEVR |
Referenced by printVersion().
| const int rpmFLAGS |
| struct rpmMacroContext_s* rpmGlobalMacroContext |
| const char* const rpmNAME |
| const char* const RPMVERSION |
1.8.13