11 #define _RPMTAG_INTERNAL
15 #define _RPMEVR_INTERNAL
95 if (fnames.
ptr == NULL)
141 rpmfiBuildFContexts(h, &he->
p.
argv, &he->
c);
158 rpmfiBuildFSContexts(h, &he->
p.
argv, &he->
c);
175 rpmfiBuildREContexts(h, &he->
p.
argv, &he->
c);
243 if (!(Flags & RPMSENSE_MISSINGOK))
248 nb +=
sizeof(*argv) + strlen(DNEVR+2) + 1;
256 t = (
char *)(argv + argc);
257 for (i = 0; i < argc; i++) {
275 { HEADER_EXT_TAG,
"RPMTAG_ENHANCES",
277 { HEADER_EXT_TAG,
"RPMTAG_FILECLASS",
280 { HEADER_EXT_TAG,
"RPMTAG_FILECONTEXTS",
281 { .tagFunction = filecontextsTag } },
283 { HEADER_EXT_TAG,
"RPMTAG_FILEPROVIDE",
285 { HEADER_EXT_TAG,
"RPMTAG_FILEREQUIRE",
288 { HEADER_EXT_TAG,
"RPMTAG_FSCONTEXTS",
289 { .tagFunction = fscontextsTag } },
291 { HEADER_EXT_TAG,
"RPMTAG_FSNAMES",
293 { HEADER_EXT_TAG,
"RPMTAG_FSSIZES",
296 { HEADER_EXT_TAG,
"RPMTAG_RECONTEXTS",
297 { .tagFunction = recontextsTag } },
299 { HEADER_EXT_TAG,
"RPMTAG_SUGGESTS",
evrFlags rpmdsFlags(const rpmds ds)
Return current dependency flags.
rpmds rpmdsInit(rpmds ds)
Initialize dependency set iterator.
Structure(s) used for file info tag sets.
Access mounted file system information.
const char * rpmdsDNEVR(const rpmds ds)
Return current formatted dependency string.
struct rpmds_s * rpmds
Dependency tag sets from a header, so that a header can be discarded early.
rpmds rpmdsFree(rpmds ds)
Destroy a dependency set.
void * xcalloc(size_t nmemb, size_t size)
unsigned long long rpmuint64_t
ARGV_t argvFree(ARGV_t argv)
Destroy an argv array.
Routines to expand a manifest containing glob expressions into an argv list.
int rpmdsNext(rpmds ds)
Return next dependency set iterator index.
Structure(s) used for dependency tag sets.
int argvAdd(ARGV_t *argvp, ARGstr_t val)
Add a string to an argv array.
const struct headerSprintfExtension_s * headerSprintfExtension
void rpmfiBuildFDeps(Header h, rpmTag tagN, const char ***fdepsp, rpmuint32_t *fcp)
Retrieve per-file dependencies from header.
char * stpcpy(char *dest, const char *src)
int rpmGetFilesystemList(const char ***listptr, rpmuint32_t *num)
Return (cached) file system mount points.
static void * _free(const void *p)
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL.
void rpmfiBuildFClasses(Header h, const char ***fclassp, rpmuint32_t *fcp)
Retrieve file classes from header.
rpmds rpmdsNew(Header h, rpmTag tagN, int flags)
Create and load a dependency set.
int rpmGetFilesystemUsage(const char **fileList, rpmuint32_t *fssizes, int numFiles, rpmuint64_t **usagesPtr, int flags)
Determine per-file system usage for a list of files.
headerSprintfExtension headerCompoundFormats
Supported default header extension/tag output formats.