#include "system.h"#include "rpmio_internal.h"#include <rpmlib.h>#include <rpmmacro.h>#include <rpmfi.h>#include "legacy.h"#include "manifest.h"#include "misc.h"#include "debug.h"Go to the source code of this file.
Functions | |
| static char * | triggertypeFormat (int_32 type, const void *data, char *formatPrefix, int padding, int element) |
| Identify type of trigger. | |
| static char * | permsFormat (int_32 type, const void *data, char *formatPrefix, int padding, int element) |
| Format file permissions for display. | |
| static char * | fflagsFormat (int_32 type, const void *data, char *formatPrefix, int padding, int element) |
| Format file flags for display. | |
| static char * | armorFormat (int_32 type, const void *data, char *formatPrefix, int padding, int element) |
| Wrap a pubkey in ascii armor for display. | |
| static char * | base64Format (int_32 type, const void *data, char *formatPrefix, int padding, int element) |
| Encode binary data in base64 for display. | |
| static size_t | xmlstrlen (const char *s) |
| static char * | xmlstrcpy (char *t, const char *s) |
| static char * | xmlFormat (int_32 type, const void *data, char *formatPrefix, int padding, int element) |
| Wrap tag data in simple header xml markup. | |
| static char * | pgpsigFormat (int_32 type, const void *data, char *formatPrefix, int padding, int element) |
| Display signature fingerprint and time. | |
| static char * | depflagsFormat (int_32 type, const void *data, char *formatPrefix, int padding, int element) |
| Format dependency flags for display. | |
| static int | fsnamesTag (Header h, int_32 *type, void **data, int_32 *count, int *freeData) |
| Retrieve mounted file system paths. | |
| static int | instprefixTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve install prefixes. | |
| static int | fssizesTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve mounted file system space. | |
| static int | triggercondsTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve trigger info. | |
| static int | triggertypeTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve trigger type info. | |
| static int | filenamesTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve file paths. | |
| static int | fileclassTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve file classes. | |
| static int | filecontextsTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve file contexts from header. | |
| static int | fscontextsTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve file contexts from file system. | |
| static int | recontextsTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve file contexts from policy RE's. | |
| static int | fileprovideTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve file provides. | |
| static int | filerequireTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve file requires. | |
| static int | i18nTag (Header h, int_32 tag, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve i18n text. | |
| static int | summaryTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve summary text. | |
| static int | descriptionTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve description text. | |
| static int | groupTag (Header h, rpmTagType *type, const void **data, int_32 *count, int *freeData) |
| Retrieve group text. | |
Variables | |
| static const char * | language = "LANGUAGE" |
| static const char * | _macro_i18ndomains = "%{?_i18ndomains}" |
| const struct headerSprintfExtension_s | rpmHeaderFormats [] |
| Table of query format extensions. | |
Definition in file formats.c.
|
||||||||||||||||||||||||
|
Wrap a pubkey in ascii armor for display.
Definition at line 150 of file formats.c. References _, PGPARMOR_PUBKEY, PGPARMOR_SIGNATURE, pgpArmorWrap(), RPM_BIN_TYPE, RPM_CHAR_TYPE, RPM_I18NSTRING_TYPE, RPM_INT16_TYPE, RPM_INT32_TYPE, RPM_INT8_TYPE, RPM_NULL_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, and xstrdup(). |
|
||||||||||||||||||||||||
|
Encode binary data in base64 for display.
Definition at line 199 of file formats.c. References _, _free(), RPM_BIN_TYPE, stpcpy(), xmalloc(), and xstrdup(). Referenced by xmlFormat(). |
|
||||||||||||||||||||||||
|
Format dependency flags for display.
Definition at line 516 of file formats.c. References _, RPM_INT32_TYPE, RPMSENSE_EQUAL, RPMSENSE_GREATER, RPMSENSE_LESS, xmalloc(), and xstrdup(). Referenced by triggercondsTag(). |
|
||||||||||||||||||||||||
|
Retrieve description text.
Definition at line 1126 of file formats.c. References i18nTag(), and RPMTAG_DESCRIPTION. |
|
||||||||||||||||||||||||
|
Format file flags for display.
Definition at line 96 of file formats.c. References _, RPM_INT32_TYPE, RPMFILE_CONFIG, RPMFILE_DOC, RPMFILE_GHOST, RPMFILE_LICENSE, RPMFILE_MISSINGOK, RPMFILE_NOREPLACE, RPMFILE_README, RPMFILE_SPECFILE, xmalloc(), and xstrdup(). |
|
||||||||||||||||||||||||
|
Retrieve file classes.
Definition at line 852 of file formats.c. References RPM_STRING_ARRAY_TYPE, and rpmfiBuildFClasses(). |
|
||||||||||||||||||||||||
|
Retrieve file contexts from header.
Definition at line 876 of file formats.c. References RPM_STRING_ARRAY_TYPE, and rpmfiBuildFContexts(). |
|
||||||||||||||||||||||||
|
Retrieve file paths.
Definition at line 830 of file formats.c. References RPM_STRING_ARRAY_TYPE, rpmfiBuildFNames(), and RPMTAG_BASENAMES. |
|
||||||||||||||||||||||||
|
Retrieve file provides.
Definition at line 948 of file formats.c. References RPM_STRING_ARRAY_TYPE, rpmfiBuildFDeps(), and RPMTAG_PROVIDENAME. |
|
||||||||||||||||||||||||
|
Retrieve file requires.
Definition at line 972 of file formats.c. References RPM_STRING_ARRAY_TYPE, rpmfiBuildFDeps(), and RPMTAG_REQUIRENAME. |
|
||||||||||||||||||||||||
|
Retrieve file contexts from file system.
Definition at line 900 of file formats.c. References RPM_STRING_ARRAY_TYPE, and rpmfiBuildFSContexts(). |
|
||||||||||||||||||||||||
|
Retrieve mounted file system paths.
Definition at line 561 of file formats.c. References RPM_STRING_ARRAY_TYPE, and rpmGetFilesystemList(). |
|
||||||||||||||||||||||||
|
Retrieve mounted file system space.
Definition at line 631 of file formats.c. References _free(), headerGetEntryMinMemory(), RPM_INT32_TYPE, rpmfiBuildFNames(), rpmGetFilesystemList(), rpmGetFilesystemUsage(), RPMTAG_BASENAMES, RPMTAG_FILESIZES, and xcalloc(). |
|
||||||||||||||||||||||||
|
Retrieve group text.
Definition at line 1146 of file formats.c. References i18nTag(), and RPMTAG_GROUP. |
|
||||||||||||||||||||||||||||
|
Retrieve i18n text.
Definition at line 1011 of file formats.c. References _free(), _macro_i18ndomains, alloca(), dgettext, getenv(), headerGetEntryMinMemory(), headerNVR(), language, RPM_STRING_TYPE, rpmExpand(), setenv(), tagName(), unsetenv(), xstrdup(), and xstrtolocale(). Referenced by descriptionTag(), groupTag(), and summaryTag(). |
|
||||||||||||||||||||||||
|
Retrieve install prefixes.
Definition at line 593 of file formats.c. References headerFreeData(), headerGetEntryMinMemory(), RPM_STRING_TYPE, RPMTAG_INSTALLPREFIX, RPMTAG_INSTPREFIXES, and xstrdup(). |
|
||||||||||||||||||||||||
|
Format file permissions for display.
Definition at line 62 of file formats.c. References _, _free(), RPM_INT32_TYPE, rpmPermsString(), xmalloc(), and xstrdup(). |
|
||||||||||||||||||||||||
|
Display signature fingerprint and time.
Definition at line 403 of file formats.c. References _, pgpDigParams_s::hash_algo, pgpFreeDig(), pgpGrab(), PGPHASHALGO_MD5, PGPHASHALGO_SHA1, pgpHexStr(), pgpLen(), pgpNewDig(), pgpPrtPkts(), PGPPUBKEYALGO_DSA, PGPPUBKEYALGO_RSA, PGPTAG_SIGNATURE, pgpDigParams_s::pubkey_algo, RPM_BIN_TYPE, pgpDig_s::signature, pgpDigParams_s::signid, snprintf(), stpcpy(), pgpDigParams_s::time, xrealloc(), and xstrdup(). |
|
||||||||||||||||||||||||
|
Retrieve file contexts from policy RE's.
Definition at line 924 of file formats.c. References RPM_STRING_ARRAY_TYPE, and rpmfiBuildREContexts(). |
|
||||||||||||||||||||||||
|
Retrieve summary text.
Definition at line 1106 of file formats.c. References i18nTag(), and RPMTAG_SUMMARY. |
|
||||||||||||||||||||||||
|
Retrieve trigger info.
Definition at line 691 of file formats.c. References _free(), depflagsFormat(), flags, headerFreeData(), headerGetEntryMinMemory(), RPM_INT32_TYPE, RPM_STRING_ARRAY_TYPE, RPMSENSE_SENSEMASK, RPMTAG_TRIGGERFLAGS, RPMTAG_TRIGGERINDEX, RPMTAG_TRIGGERNAME, RPMTAG_TRIGGERSCRIPTS, RPMTAG_TRIGGERVERSION, xmalloc(), xrealloc(), and xstrdup(). |
|
||||||||||||||||||||||||
|
Identify type of trigger.
Definition at line 30 of file formats.c. References _, RPM_INT32_TYPE, RPMSENSE_TRIGGERIN, RPMSENSE_TRIGGERPOSTUN, RPMSENSE_TRIGGERPREIN, RPMSENSE_TRIGGERUN, and xstrdup(). |
|
||||||||||||||||||||||||
|
Retrieve trigger type info.
Definition at line 768 of file formats.c. References flags, headerFreeData(), headerGetEntryMinMemory(), RPM_STRING_ARRAY_TYPE, RPMSENSE_TRIGGERIN, RPMSENSE_TRIGGERPOSTUN, RPMSENSE_TRIGGERPREIN, RPMSENSE_TRIGGERUN, RPMTAG_TRIGGERFLAGS, RPMTAG_TRIGGERINDEX, RPMTAG_TRIGGERSCRIPTS, xmalloc(), and xstrdup(). |
|
||||||||||||||||||||||||
|
Wrap tag data in simple header xml markup.
Definition at line 292 of file formats.c. References _, _free(), alloca(), base64Format(), RPM_BIN_TYPE, RPM_CHAR_TYPE, RPM_I18NSTRING_TYPE, RPM_INT16_TYPE, RPM_INT32_TYPE, RPM_INT8_TYPE, RPM_NULL_TYPE, RPM_STRING_ARRAY_TYPE, RPM_STRING_TYPE, snprintf(), stpcpy(), xmalloc(), xmlstrcpy(), xmlstrlen(), xstrdup(), and xstrtolocale(). |
|
||||||||||||
|
Definition at line 262 of file formats.c. References stpcpy(). Referenced by xmlFormat(). |
|
|
Definition at line 241 of file formats.c. Referenced by xmlFormat(). |
|
|
Definition at line 999 of file formats.c. Referenced by i18nTag(). |
|
|
Definition at line 996 of file formats.c. Referenced by i18nTag(). |
|
1.4.4