rpm
5.4.14
|
#include <stdlib.h>
#include <sys/types.h>
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. More... | |
typedef unsigned char | rpmuint8_t |
Private int typedefs to avoid C99 portability issues. More... | |
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. More... | |
typedef const void * | fnpyKey |
typedef enum rpmCallbackType_e | rpmCallbackType |
Bit(s) to identify progress callbacks. More... | |
typedef void * | rpmCallbackData |
typedef enum pgpHashAlgo_e | pgpHashAlgo |
9.4. More... | |
typedef enum rpmDigestFlags_e | rpmDigestFlags |
Bit(s) to control digest operation. More... | |
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. More... | |
rpmDigestFlags | rpmDigestF (DIGEST_CTX ctx) |
Return digest flags. More... | |
const char * | rpmDigestName (DIGEST_CTX ctx) |
Return digest name. More... | |
const char * | rpmDigestASN1 (DIGEST_CTX ctx) |
Return digest ASN1 oid string. More... | |
DIGEST_CTX | rpmDigestDup (DIGEST_CTX octx) |
Duplicate a digest context. More... | |
DIGEST_CTX | rpmDigestInit (pgpHashAlgo hashalgo, rpmDigestFlags flags) |
Initialize digest. More... | |
int | rpmDigestUpdate (DIGEST_CTX ctx, const void *data, size_t len) |
Update context with next plain text buffer. More... | |
int | rpmDigestFinal (DIGEST_CTX ctx, void *datap, size_t *lenp, int asAscii) |
Return digest and destroy context. More... | |
int | rpmHmacInit (DIGEST_CTX ctx, const void *key, size_t keylen) |
Compute key material and add to digest context. More... | |
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). More... | |
int | xstrncasecmp (const char *s1, const char *s2, size_t n) |
Locale insensitive strncasecmp(3). More... | |
const char * | xstrtolocale (const char *str) |
Force encoding of string. More... | |
rpmiob | rpmiobUnlink (rpmiob iob) |
Unreference a I/O buffer instance. More... | |
rpmiob | rpmiobLink (rpmiob iob) |
Reference a I/O buffer instance. More... | |
rpmiob | rpmiobFree (rpmiob iob) |
Destroy a I/O buffer instance. More... | |
rpmiob | rpmiobNew (size_t len) |
Create an I/O buffer. More... | |
rpmiob | rpmiobEmpty (rpmiob iob) |
Empty an I/O buffer. More... | |
rpmiob | rpmiobRTrim (rpmiob iob) |
Trim trailing white space. More... | |
rpmiob | rpmiobAppend (rpmiob iob, const char *s, size_t nl) |
Append string to I/O buffer. More... | |
rpmuint8_t * | rpmiobBuf (rpmiob iob) |
Return I/O buffer. More... | |
char * | rpmiobStr (rpmiob iob) |
Return I/O buffer (as string). More... | |
size_t | rpmiobLen (rpmiob iob) |
Return I/O buffer len. More... | |
rpmioP | rpmioPFree (rpmioP P) |
Destroy a rpmioP object. More... | |
rpmRC | rpmioParse (rpmioP *Pptr, const char *str) |
Parse next command out of a string incrementally. More... | |
static void * | _free (const void *p) |
Wrapper to free(3), hides const compilation noise, permit NULL, return NULL. More... | |
Variables | |
size_t | _rpmiob_chunk |
#define rpmiobFree | ( | _iob | ) | ((rpmiob)rpmioFreePoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) |
Definition at line 522 of file rpmiotypes.h.
#define rpmiobLink | ( | _iob | ) | ((rpmiob)rpmioLinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) |
Definition at line 510 of file rpmiotypes.h.
#define rpmiobUnlink | ( | _iob | ) | ((rpmiob)rpmioUnlinkPoolItem((rpmioItem)(_iob), __FUNCTION__, __FILE__, __LINE__)) |
Definition at line 498 of file rpmiotypes.h.
Definition at line 121 of file rpmiotypes.h.
typedef void* rpmCallbackData |
Definition at line 149 of file rpmiotypes.h.
typedef enum rpmCallbackType_e rpmCallbackType |
Bit(s) to identify progress callbacks.
typedef unsigned short rpmuint16_t |
Definition at line 27 of file rpmiotypes.h.
typedef unsigned int rpmuint32_t |
Definition at line 28 of file rpmiotypes.h.
typedef unsigned long long rpmuint64_t |
Definition at line 29 of file rpmiotypes.h.
enum rpmCallbackType_e |
Bit(s) to identify progress callbacks.
Definition at line 127 of file rpmiotypes.h.
Append string to I/O buffer.
iob | I/O buffer |
s | string |
nl | append NL? |
Definition at line 77 of file rpmiob.c.
References _rpmiob_chunk, _rpmiob_debug, assert(), fprintf(), ns, NULL, s, stpcpy(), and xrealloc.
Referenced by addFileToTag(), addFileToTagAux(), checkUnpackagedFiles(), doPatchMacro(), doSetupMacro(), fiIntersect(), getOutputFrom(), initSourceHeader(), parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parseForSimple(), parsePrep(), parseScript(), pkgUnpackagedSubdirs(), processPackageFiles(), readFile(), readLine(), rpmcliEvalSlurp(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), rpmpythonSlurp(), rpmReadPackageFile(), and rpmReadPackageManifest().
rpmuint8_t* rpmiobBuf | ( | rpmiob | iob | ) |
Empty an I/O buffer.
iob | I/O buffer |
Definition at line 57 of file rpmiob.c.
References _rpmiob_debug, assert(), fprintf(), and NULL.
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 122 of file rpmiob.c.
References _rpmiob_debug, fprintf(), and NULL.
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, fprintf(), len, rpmiobGetPool(), rpmiobLink(), and xcalloc().
Referenced by addFileToArrayTag(), addFileToTag(), checkUnpackagedFiles(), doSetupMacro(), fiIntersect(), getOutputFrom(), initSourceHeader(), parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parseForSimple(), parsePrep(), parseScript(), pkgUnpackagedSubdirs(), processSourceFiles(), readFile(), readLine(), 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, assert(), fprintf(), NULL, 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 112 of file rpmiob.c.
References _rpmiob_debug, assert(), fprintf(), and NULL.
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(), and rpmtclRunFile().
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, b, be, c, exit, rpmioP_s::next, NULL, P, rc, RPMRC_FAIL, RPMRC_NOTFOUND, RPMRC_OK, rpmioP_s::str, xcalloc(), xstrdup(), and xx.
Definition at line 440 of file rpmiotypes.h.
References xisalpha(), and xisdigit().
Referenced by _tagCanonicalize(), parseRCPOT(), rdToken(), rpmdsPipe(), rpmdsSysinfoFile(), while(), and xispunct().
Definition at line 434 of file rpmiotypes.h.
References xislower(), and xisupper().
Referenced by dpkgEVRctype(), parseBits(), rdToken(), xisalnum(), and xisrpmalpha().
Definition at line 452 of file rpmiotypes.h.
Referenced by xisgraph(), and xisprint().
Definition at line 443 of file rpmiotypes.h.
Referenced by xisspace().
Definition at line 449 of file rpmiotypes.h.
Definition at line 437 of file rpmiotypes.h.
Referenced by arHeaderRead(), doFoo(), dpkgEVRcmp(), dpkgEVRctype(), getHostAddress(), lookupPackage(), parseForDev(), parseFormat(), rdToken(), rpmdcParseZeroInstall(), rpmds_ParseEVR(), rpmEVRcmp(), rpmnsClassify(), rpnFormat(), unsatisfiedDepend(), while(), and xisalnum().
Definition at line 428 of file rpmiotypes.h.
Referenced by xisalpha(), and xtoupper().
Definition at line 461 of file rpmiotypes.h.
References xisalnum(), and xisgraph().
Referenced by xisrpmalpha().
Definition at line 446 of file rpmiotypes.h.
References xisblank().
Referenced by addChangelog(), copyNextLineFinish(), dbiTagsInit(), doFoo(), findPreambleTag(), isPart(), parseBits(), rdToken(), readLine(), rpmcliAllArgCallback(), rpmdcParseCoreutils(), rpmioAllArgCallback(), rpmiobRTrim(), rpmnsArch(), rpmPlatform(), and rpmsqlRun().
Definition at line 431 of file rpmiotypes.h.
Referenced by xisalpha(), and xtolower().
Definition at line 465 of file rpmiotypes.h.
References xisupper().
Referenced by _tagCanonicalize(), myTagName(), rpmRebuildTargetVars(), xstrcasecmp(), and xstrncasecmp().
Definition at line 468 of file rpmiotypes.h.
References xislower().
Referenced by _tagCanonicalize().