rpm
5.4.10
|
Go to the source code of this file.
Macros | |
#define | _RPMIOB_INTERNAL |
Functions | |
static void | rpmiobFini (void *_iob) |
static rpmiob | rpmiobGetPool (rpmioPool pool) |
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. | |
int | rpmiobSlurp (const char *fn, rpmiob *iobp) |
Variables | |
size_t | _rpmiob_chunk = 1024 |
int | _rpmiob_debug |
rpmioPool | _rpmiobPool |
Definition in file rpmiob.c.
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().
|
static |
Definition at line 16 of file rpmiob.c.
References _free(), and _rpmiob_debug.
Referenced by rpmiobGetPool().
Definition at line 30 of file rpmiob.c.
References _rpmiob_debug, _rpmiobPool, rpmiobFini(), rpmioGetPool(), and rpmioNewPool().
Referenced by rpmiobNew(), and rpmiobSlurp().
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().
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().
int rpmiobSlurp | ( | const char * | fn, |
rpmiob * | iobp | ||
) |
Definition at line 130 of file rpmiob.c.
References _free(), Fclose(), Ferror(), Fileno(), Fopen(), Fread(), Fstat(), rpmiobGetPool(), xmalloc, and xrealloc.
Referenced by pgpReadPkts(), processMetadataFile(), rpmcliEvalSlurp(), rpmdcParseZeroInstall(), rpmdsCpuinfo(), rpmnsProbeSignature(), rpmPlatform(), and rpmpythonSlurp().
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().
int _rpmiob_debug |
Definition at line 14 of file rpmiob.c.
Referenced by rpmiobAppend(), rpmiobBuf(), rpmiobEmpty(), rpmiobFini(), rpmiobGetPool(), rpmiobLen(), rpmiobNew(), rpmiobRTrim(), and rpmiobStr().
rpmioPool _rpmiobPool |
Definition at line 28 of file rpmiob.c.
Referenced by rpmiobGetPool(), and rpmioClean().