rpm
5.4.14
|
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. 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... | |
int | rpmiobSlurp (const char *fn, rpmiob *iobp) |
Variables | |
size_t | _rpmiob_chunk = 1024 |
int | _rpmiob_debug |
rpmioPool | _rpmiobPool |
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().
Definition at line 16 of file rpmiob.c.
References _free(), _rpmiob_debug, and fprintf().
Referenced by rpmiobGetPool().
Definition at line 30 of file rpmiob.c.
References _rpmiob_debug, _rpmiobPool, NULL, 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 122 of file rpmiob.c.
References _rpmiob_debug, fprintf(), and NULL.
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, 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().
Definition at line 129 of file rpmiob.c.
References _free(), b, exit, Fclose(), fd, Ferror(), Fileno(), Fopen(), Fread(), Fstat(), NULL, rc, rpmiobGetPool(), void, xmalloc, xrealloc, and xx.
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 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().
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().