#include "system.h"
#include <rpmio.h>
#include <rpmcb.h>
#include <rpmmacro.h>
#include <rpmtag.h>
#include <rpmlib.h>
#include <rpmds.h>
#include <rpmfi.h>
#include "legacy.h"
#include "manifest.h"
#include "argv.h"
#include "fs.h"
#include "debug.h"
Go to the source code of this file.
Defines | |
#define | _RPMTAG_INTERNAL |
#define | _RPMEVR_INTERNAL |
Functions | |
static int | fsnamesTag (Header h, HE_t he) |
Retrieve mounted file system paths. | |
static int | fssizesTag (Header h, HE_t he) |
Retrieve mounted file system space. | |
static int | fileclassTag (Header h, HE_t he) |
Retrieve file classes. | |
static int | filecontextsTag (Header h, HE_t he) |
Retrieve file contexts from header. | |
static int | fscontextsTag (Header h, HE_t he) |
Retrieve file contexts from file system. | |
static int | recontextsTag (Header h, HE_t he) |
Retrieve file contexts from policy RE's. | |
static int | fileprovideTag (Header h, HE_t he) |
Retrieve file provides. | |
static int | filerequireTag (Header h, HE_t he) |
Retrieve file requires. | |
static int | missingokTag (Header h, HE_t he) |
Retrieve Requires(missingok): array for Suggests: or Enhances:. | |
Variables | |
static struct headerSprintfExtension_s | _rpmHeaderFormats [] |
headerSprintfExtension | rpmHeaderFormats = &_rpmHeaderFormats[0] |
Table of query format extensions. |
Definition in file formats.c.
Retrieve file classes.
h | header |
*he | tag container |
Definition at line 113 of file formats.c.
References rpmDataType_u::argv, _HE_s::c, _HE_s::freeData, _HE_s::p, RPM_STRING_ARRAY_TYPE, rpmfiBuildFClasses(), and _HE_s::t.
Retrieve file contexts from header.
h | header |
*he | tag container |
Definition at line 130 of file formats.c.
References rpmDataType_u::argv, _HE_s::c, _HE_s::freeData, _HE_s::p, RPM_STRING_ARRAY_TYPE, rpmfiBuildFContexts(), and _HE_s::t.
Retrieve file provides.
h | header |
*he | tag container |
Definition at line 181 of file formats.c.
References rpmDataType_u::argv, _HE_s::c, _HE_s::freeData, _HE_s::p, RPM_STRING_ARRAY_TYPE, rpmfiBuildFDeps(), RPMTAG_PROVIDENAME, and _HE_s::t.
Retrieve file requires.
h | header |
*he | tag container |
Definition at line 198 of file formats.c.
References rpmDataType_u::argv, _HE_s::c, _HE_s::freeData, _HE_s::p, RPM_STRING_ARRAY_TYPE, rpmfiBuildFDeps(), RPMTAG_REQUIRENAME, and _HE_s::t.
Retrieve file contexts from file system.
h | header |
*he | tag container |
Definition at line 147 of file formats.c.
References rpmDataType_u::argv, _HE_s::c, _HE_s::freeData, _HE_s::p, RPM_STRING_ARRAY_TYPE, rpmfiBuildFSContexts(), and _HE_s::t.
Retrieve mounted file system paths.
h | header |
*he | tag container |
Definition at line 34 of file formats.c.
References rpmDataType_u::argv, _HE_s::c, _HE_s::freeData, _HE_s::p, RPM_STRING_ARRAY_TYPE, rpmGetFilesystemList(), and _HE_s::t.
Retrieve mounted file system space.
h | header |
*he | tag container |
Definition at line 56 of file formats.c.
References _free(), rpmDataType_u::argv, _HE_s::c, _HE_s::freeData, headerGet(), _HE_s::p, rpmDataType_u::ptr, RPM_UINT64_TYPE, rpmGetFilesystemList(), rpmGetFilesystemUsage(), RPMTAG_FILEPATHS, RPMTAG_FILESIZES, _HE_s::t, _HE_s::tag, rpmDataType_u::ui32p, rpmDataType_u::ui64p, and xcalloc().
Retrieve Requires(missingok): array for Suggests: or Enhances:.
h | header |
*he | tag container |
Definition at line 215 of file formats.c.
References rpmDataType_u::argv, argvAdd(), argvFree(), _HE_s::c, _HE_s::freeData, _HE_s::p, RPM_STRING_ARRAY_TYPE, rpmdsDNEVR(), rpmdsFlags(), rpmdsFree(), rpmdsInit(), rpmdsNew(), rpmdsNext(), RPMTAG_REQUIRENAME, stpcpy(), _HE_s::t, and xcalloc().
Retrieve file contexts from policy RE's.
h | header |
*he | tag container |
Definition at line 164 of file formats.c.
References rpmDataType_u::argv, _HE_s::c, _HE_s::freeData, _HE_s::p, RPM_STRING_ARRAY_TYPE, rpmfiBuildREContexts(), and _HE_s::t.
struct headerSprintfExtension_s _rpmHeaderFormats[] [static] |
Initial value:
{ { HEADER_EXT_TAG, "RPMTAG_ENHANCES", { .tagFunction = missingokTag } }, { HEADER_EXT_TAG, "RPMTAG_FILECLASS", { .tagFunction = fileclassTag } }, { HEADER_EXT_TAG, "RPMTAG_FILECONTEXTS", { .tagFunction = filecontextsTag } }, { HEADER_EXT_TAG, "RPMTAG_FILEPROVIDE", { .tagFunction = fileprovideTag } }, { HEADER_EXT_TAG, "RPMTAG_FILEREQUIRE", { .tagFunction = filerequireTag } }, { HEADER_EXT_TAG, "RPMTAG_FSCONTEXTS", { .tagFunction = fscontextsTag } }, { HEADER_EXT_TAG, "RPMTAG_FSNAMES", { .tagFunction = fsnamesTag } }, { HEADER_EXT_TAG, "RPMTAG_FSSIZES", { .tagFunction = fssizesTag } }, { HEADER_EXT_TAG, "RPMTAG_RECONTEXTS", { .tagFunction = recontextsTag } }, { HEADER_EXT_TAG, "RPMTAG_SUGGESTS", { .tagFunction = missingokTag } }, { HEADER_EXT_MORE, NULL, { (void *) &headerCompoundFormats } } }
Table of query format extensions.
Definition at line 292 of file formats.c.
Referenced by hdr_subscript(), hdrSprintf(), init_rpm(), packageBinaries(), parseForSimple(), printNewSpecfile(), queryHeader(), rpmcliImportPubkey(), rpmfiNew(), rpmpsmStage(), rpmShowProgress(), rpmtsImportPubkey(), and rpmtsSolve().