rpm
5.4.10
|
Go to the source code of this file.
Data Structures | |
struct | rpmioItem_s |
struct | rpmioP_s |
Macros | |
#define | rpmiobUnlink(_iob) ((rpmiob)rpmioUnlinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmiobLink(_iob) ((rpmiob)rpmioLinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) |
#define | rpmiobFree(_iob) ((rpmiob)rpmioFreePoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) |
Typedefs | |
typedef enum rpmRC_e | rpmRC |
RPM return codes. | |
typedef unsigned char | rpmuint8_t |
Private int typedefs to avoid C99 portability issues. | |
typedef unsigned short | rpmuint16_t |
typedef unsigned int | rpmuint32_t |
typedef unsigned long long | rpmuint64_t |
typedef int | rpmint32_t |
typedef struct yarnLock_s * | yarnLock |
typedef struct rpmioItem_s * | rpmioItem |
typedef struct rpmioPool_s * | rpmioPool |
typedef struct rpmiob_s * | rpmiob |
typedef struct rpmioP_s * | rpmioP |
typedef struct DIGEST_CTX_s * | DIGEST_CTX |
typedef struct pgpPkt_s * | pgpPkt |
typedef struct pgpDig_s * | pgpDig |
typedef struct pgpDigParams_s * | pgpDigParams |
typedef rpmuint8_t | pgpKeyID_t [8] |
typedef rpmuint8_t | pgpTime_t [4] |
typedef enum pgpVSFlags_e | pgpVSFlags |
Bit(s) to control digest and signature verification. | |
typedef const void * | fnpyKey |
typedef enum rpmCallbackType_e | rpmCallbackType |
Bit(s) to identify progress callbacks. | |
typedef void * | rpmCallbackData |
typedef enum pgpHashAlgo_e | pgpHashAlgo |
9.4. | |
typedef enum rpmDigestFlags_e | rpmDigestFlags |
Bit(s) to control digest operation. | |
typedef void *(* | rpmCallbackFunction )(const void *h, const rpmCallbackType what, const rpmuint64_t amount, const rpmuint64_t total, fnpyKey key, rpmCallbackData data) |
Functions | |
pgpHashAlgo | rpmDigestAlgo (DIGEST_CTX ctx) |
Return digest algorithm identifier. | |
rpmDigestFlags | rpmDigestF (DIGEST_CTX ctx) |
Return digest flags. | |
const char * | rpmDigestName (DIGEST_CTX ctx) |
Return digest name. | |
const char * | rpmDigestASN1 (DIGEST_CTX ctx) |
Return digest ASN1 oid string. | |
DIGEST_CTX | rpmDigestDup (DIGEST_CTX octx) |
Duplicate a digest context. | |
DIGEST_CTX | rpmDigestInit (pgpHashAlgo hashalgo, rpmDigestFlags flags) |
Initialize digest. | |
int | rpmDigestUpdate (DIGEST_CTX ctx, const void *data, size_t len) |
Update context with next plain text buffer. | |
int | rpmDigestFinal (DIGEST_CTX ctx, void *datap, size_t *lenp, int asAscii) |
Return digest and destroy context. | |
int | rpmHmacInit (DIGEST_CTX ctx, const void *key, size_t keylen) |
Compute key material and add to digest context. | |
static int | xislower (int c) |
static int | xisupper (int c) |
static int | xisalpha (int c) |
static int | xisdigit (int c) |
static int | xisalnum (int c) |
static int | xisblank (int c) |
static int | xisspace (int c) |
static int | xiscntrl (int c) |
static int | xisascii (int c) |
static int | xisprint (int c) |
static int | xisgraph (int c) |
static int | xispunct (int c) |
static int | xtolower (int c) |
static int | xtoupper (int c) |
int | xstrcasecmp (const char *s1, const char *s2) |
Locale insensitive strcasecmp(3). | |
int | xstrncasecmp (const char *s1, const char *s2, size_t n) |
Locale insensitive strncasecmp(3). | |
const char * | xstrtolocale (const char *str) |
Force encoding of string. | |
rpmiob | rpmiobUnlink (rpmiob iob) |
Unreference a I/O buffer instance. | |
rpmiob | rpmiobLink (rpmiob iob) |
Reference a I/O buffer instance. | |
rpmiob | rpmiobFree (rpmiob iob) |
Destroy a I/O buffer instance. | |
rpmiob | rpmiobNew (size_t len) |
Create an I/O buffer. | |
rpmiob | rpmiobEmpty (rpmiob iob) |
Empty an I/O buffer. | |
rpmiob | rpmiobRTrim (rpmiob iob) |
Trim trailing white space. | |
rpmiob | rpmiobAppend (rpmiob iob, const char *s, size_t nl) |
Append string to I/O buffer. | |
rpmuint8_t * | rpmiobBuf (rpmiob iob) |
Return I/O buffer. | |
char * | rpmiobStr (rpmiob iob) |
Return I/O buffer (as string). | |
size_t | rpmiobLen (rpmiob iob) |
Return I/O buffer len. | |
rpmioP | rpmioPFree (rpmioP P) |
Destroy a rpmioP object. | |
rpmRC | rpmioParse (rpmioP *Pptr, const char *str) |
Parse next command out of a string incrementally. | |
static void * | _free (const void *p) |
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL. |
Variables | |
size_t | _rpmiob_chunk |
Definition in file rpmiotypes.h.
#define rpmiobFree | ( | _iob | ) | ((rpmiob)rpmioFreePoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) |
Definition at line 519 of file rpmiotypes.h.
#define rpmiobLink | ( | _iob | ) | ((rpmiob)rpmioLinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) |
Definition at line 507 of file rpmiotypes.h.
#define rpmiobUnlink | ( | _iob | ) | ((rpmiob)rpmioUnlinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) |
Definition at line 495 of file rpmiotypes.h.
typedef const void* fnpyKey |
Definition at line 118 of file rpmiotypes.h.
typedef void* rpmCallbackData |
Definition at line 146 of file rpmiotypes.h.
typedef enum rpmCallbackType_e rpmCallbackType |
Bit(s) to identify progress callbacks.
typedef struct rpmioItem_s* rpmioItem |
Definition at line 38 of file rpmiotypes.h.
typedef struct rpmioPool_s* rpmioPool |
Definition at line 53 of file rpmiotypes.h.
typedef unsigned short rpmuint16_t |
Definition at line 24 of file rpmiotypes.h.
typedef unsigned int rpmuint32_t |
Definition at line 25 of file rpmiotypes.h.
typedef unsigned long long rpmuint64_t |
Definition at line 26 of file rpmiotypes.h.
enum rpmCallbackType_e |
Bit(s) to identify progress callbacks.
Definition at line 124 of file rpmiotypes.h.
Append string to I/O buffer.
iob | I/O buffer |
s | string |
nl | append NL? |
Definition at line 78 of file rpmiob.c.
References _rpmiob_chunk, _rpmiob_debug, stpcpy(), and xrealloc.
Referenced by addFileToTag(), addFileToTagAux(), checkUnpackagedFiles(), doPatchMacro(), doSetupMacro(), fiIntersect(), getOutputFrom(), initSourceHeader(), parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parseForSimple(), parsePrep(), parseScript(), pkgUnpackagedSubdirs(), processPackageFiles(), readFile(), rpmcliEvalSlurp(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), rpmpythonSlurp(), rpmReadPackageFile(), and rpmReadPackageManifest().
rpmuint8_t* rpmiobBuf | ( | rpmiob | iob | ) |
Return I/O buffer.
iob | I/O buffer |
Definition at line 103 of file rpmiob.c.
References _rpmiob_debug.
Empty an I/O buffer.
iob | I/O buffer |
Definition at line 57 of file rpmiob.c.
References _rpmiob_debug.
Referenced by rpmfcGenerateScriptletDeps().
Destroy a I/O buffer instance.
iob | I/O buffer |
Referenced by addFileToArrayTag(), addFileToTag(), addFileToTagAux(), checkUnpackagedFiles(), doSetupMacro(), fiIntersect(), getOutputFrom(), initSourceHeader(), parseChangelog(), parseDescription(), parsePrep(), parseScript(), pgpReadPkts(), pkgFini(), pkgUnpackagedSubdirs(), processMetadataFile(), processSourceFiles(), readFile(), rpmcliEvalSlurp(), rpmdcParseZeroInstall(), rpmdsCpuinfo(), rpmfcExec(), rpmfcFini(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), rpmkuFindPubkey(), rpmkuStorePubkey(), rpmnsProbeSignature(), rpmPlatform(), rpmpythonSlurp(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmsqlFini(), rpmsquirrelFini(), rpmtclFini(), specFini(), and tagStoreFree().
size_t rpmiobLen | ( | rpmiob | iob | ) |
Return I/O buffer len.
iob | I/O buffer |
Definition at line 123 of file rpmiob.c.
References _rpmiob_debug.
Referenced by rpmfcExec().
Reference a I/O buffer instance.
iob | I/O buffer |
Referenced by rpmiobNew().
rpmiob rpmiobNew | ( | size_t | len | ) |
Create an I/O buffer.
len | no. of octets to allocate |
Definition at line 44 of file rpmiob.c.
References _rpmiob_chunk, _rpmiob_debug, rpmiobGetPool(), rpmiobLink(), and xcalloc().
Referenced by addFileToArrayTag(), addFileToTag(), checkUnpackagedFiles(), doSetupMacro(), fiIntersect(), getOutputFrom(), initSourceHeader(), parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parseForSimple(), parsePrep(), parseScript(), pkgUnpackagedSubdirs(), processSourceFiles(), readFile(), rpmcliEvalSlurp(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), rpmkuFindPubkey(), rpmpythonSlurp(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmsqlNew(), rpmsquirrelNew(), rpmtclNew(), and rpmtsFindPubkey().
Trim trailing white space.
iob | I/O buffer |
Definition at line 67 of file rpmiob.c.
References _rpmiob_debug, and xisspace().
Referenced by parseDescription(), parseScript(), rpmfcGenerateScriptletDeps(), and rpmsqlRun().
char* rpmiobStr | ( | rpmiob | iob | ) |
Return I/O buffer (as string).
iob | I/O buffer |
Definition at line 113 of file rpmiob.c.
References _rpmiob_debug.
Referenced by addChangelog(), addFileToArrayTag(), addFileToTag(), checkUnpackagedFiles(), doSetupMacro(), fiIntersect(), initSourceHeader(), initSourceHeaderScriptlet(), parseDescription(), parsePrep(), parseScript(), pkgUnpackagedSubdirs(), processPackageFiles(), processSourceFiles(), rpmfcExec(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), rpmpythonSlurp(), rpmReadPackageManifest(), rpmsqlRun(), rpmsquirrelRun(), rpmsquirrelRunFile(), rpmtclRun(), rpmtclRunFile(), spec_get_build(), spec_get_check(), spec_get_clean(), spec_get_install(), and spec_get_prep().
Unreference a I/O buffer instance.
iob | hash table |
Parse next command out of a string incrementally.
*Pptr | parser state |
str | string to parse |
Definition at line 951 of file poptIO.c.
References _free(), rpmioP_s::ac, argvAdd(), argvFree(), rpmioP_s::av, matchchar(), rpmioP_s::next, RPMRC_FAIL, RPMRC_NOTFOUND, RPMRC_OK, rpmioP_s::str, xcalloc(), and xstrdup().
Destroy a rpmioP object.
P | parser state |
Definition at line 941 of file poptIO.c.
References _free(), argvFree(), rpmioP_s::av, and rpmioP_s::str.
|
inlinestatic |
Definition at line 437 of file rpmiotypes.h.
References xisalpha(), and xisdigit().
Referenced by _tagCanonicalize(), expandMacro(), parseRCPOT(), rdToken(), rpmdsPipe(), rpmdsSysinfoFile(), and xispunct().
|
inlinestatic |
Definition at line 431 of file rpmiotypes.h.
References xislower(), and xisupper().
Referenced by doDefine(), doUndefine(), dpkgEVRctype(), parseBits(), rdToken(), xisalnum(), and xisrpmalpha().
|
inlinestatic |
Definition at line 449 of file rpmiotypes.h.
Referenced by xisgraph(), and xisprint().
|
inlinestatic |
Definition at line 440 of file rpmiotypes.h.
Referenced by xisspace().
|
inlinestatic |
Definition at line 446 of file rpmiotypes.h.
|
inlinestatic |
Definition at line 434 of file rpmiotypes.h.
Referenced by arHeaderRead(), doFoo(), dpkgEVRcmp(), dpkgEVRctype(), expandMacro(), getHostAddress(), lookupPackage(), parseForDev(), parseFormat(), rdToken(), rpmdcParseZeroInstall(), rpmds_ParseEVR(), rpmEVRcmp(), rpmnsClassify(), rpnFormat(), unsatisfiedDepend(), and xisalnum().
|
inlinestatic |
|
inlinestatic |
Definition at line 425 of file rpmiotypes.h.
Referenced by xisalpha(), and xtoupper().
|
inlinestatic |
|
inlinestatic |
Definition at line 458 of file rpmiotypes.h.
References xisalnum(), and xisgraph().
Referenced by xisrpmalpha().
|
inlinestatic |
Definition at line 443 of file rpmiotypes.h.
References xisblank().
Referenced by addChangelog(), copyNextLineFinish(), dbiTagsInit(), doFoo(), findPreambleTag(), isPart(), mireLoadPatternFiles(), parseBits(), rdToken(), readLine(), rpmcliAllArgCallback(), rpmdcParseCoreutils(), rpmioAllArgCallback(), rpmiobRTrim(), rpmnsArch(), rpmPlatform(), and rpmsqlRun().
|
inlinestatic |
Definition at line 428 of file rpmiotypes.h.
Referenced by xisalpha(), and xtolower().
|
inlinestatic |
Definition at line 462 of file rpmiotypes.h.
References xisupper().
Referenced by _tagCanonicalize(), myTagName(), rpmRebuildTargetVars(), xstrcasecmp(), and xstrncasecmp().
|
inlinestatic |
Definition at line 465 of file rpmiotypes.h.
References xislower().
Referenced by _tagCanonicalize().