rpm
5.4.15
|
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, ns, stpcpy(), and xrealloc.
Referenced by addFileToTag(), addFileToTagAux(), checkUnpackagedFiles(), doPatchMacro(), doSetupMacro(), fiIntersect(), getOutputFrom(), initSourceHeader(), parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parseForSimple(), parsePrep(), parseScript(), pkgUnpackagedSubdirs(), processPackageFiles(), readFile(), readLine(), rpmaugFprintf(), rpmcliEvalSlurp(), rpmcudfPrintPreamble(), rpmcudfPrintRequest(), rpmcudfPrintUniverse(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), rpmpythonSlurp(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmsmList(), and rpmsmRun().
rpmuint8_t* rpmiobBuf | ( | rpmiob | iob | ) |
Return I/O buffer.
iob | I/O buffer |
Definition at line 102 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(), rpmficlNew(), and rpmsmRun().
|
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 122 of file rpmiob.c.
References _rpmiob_debug.
Referenced by rpmfcExec(), and rpmsmRun().
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, len, rpmiobGetPool(), rpmiobLink(), and xcalloc().
Referenced by addFileToArrayTag(), addFileToTag(), checkUnpackagedFiles(), doSetupMacro(), fiIntersect(), getOutputFrom(), initSourceHeader(), main(), parseBuildInstallClean(), parseChangelog(), parseDescription(), parseFiles(), parseForSimple(), parsePrep(), parseScript(), pkgUnpackagedSubdirs(), processSourceFiles(), readFile(), readLine(), rpmaugNew(), rpmcliEvalSlurp(), rpmcudfNew(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), rpmkuFindPubkey(), rpmpythonSlurp(), rpmReadPackageFile(), rpmReadPackageManifest(), rpmsmNew(), 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(), rpmsmRun(), and rpmsqlRun().
int rpmiobSlurp | ( | const char * | fn, |
rpmiob * | iobp | ||
) |
Definition at line 129 of file rpmiob.c.
References _free(), b, Fclose(), Ferror(), Fileno(), Fopen(), Fread(), Fstat(), rpmiobGetPool(), xmalloc, and xrealloc.
Referenced by pgpReadPkts(), processMetadataFile(), rpmcliEvalSlurp(), rpmdcParseZeroInstall(), rpmdsCpuinfo(), rpmnsProbeSignature(), rpmPlatform(), rpmpythonSlurp(), and rpmsquirrelRunFile().
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.
Referenced by addChangelog(), addFileToArrayTag(), addFileToTag(), checkUnpackagedFiles(), doSetupMacro(), fiIntersect(), initSourceHeader(), initSourceHeaderScriptlet(), parseDescription(), parsePrep(), parseScript(), pkgUnpackagedSubdirs(), processPackageFiles(), processSourceFiles(), rpmaugRun(), rpmfcExec(), rpmfcGenerateDependsHelper(), rpmfcGenerateScriptletDeps(), rpmfcHelper(), rpmficlNew(), rpmficlRun(), rpmpythonSlurp(), rpmReadPackageManifest(), rpmsmRun(), rpmsqlRun(), rpmsquirrelRun(), rpmsquirrelRunFile(), rpmtclRun(), rpmtclRunFile(), spec_get_build(), spec_get_check(), spec_get_clean(), spec_get_install(), and spec_get_prep().
size_t _rpmiob_chunk = 1024 |
Definition at line 11 of file rpmiob.c.
Referenced by rpmiobAppend(), and rpmiobNew().
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().