Go to the source code of this file.
Functions | |
char** | splitString (const char *str, int length, char sep) |
Split string into fields separated by a character. More... | |
void | freeSplitString (char **list) |
Free split string argv array. More... | |
char* | stripTrailingChar (char *s, char c) |
Remove occurences of trailing character from string. More... | |
int | dosetenv (const char *name, const char *value, int overwrite) |
Like the libc function, but malloc()'s the space needed. More... | |
int | doputenv (const char *str) |
Like the libc function, but malloc()'s the space needed. More... | |
int | makeTempFile (const char *prefix, const char **fnptr, FD_t *fdptr) |
Return file handle for a temporaray file. More... | |
char* | currentDirectory (void) |
Return (malloc'd) current working directory. More... | |
void | compressFilelist (Header h) |
Convert absolute path tag to (dirname,basename,dirindex) tags. More... | |
void | expandFilelist (Header h) |
Convert (dirname,basename,dirindex) tags to absolute path tag. More... | |
void | buildOrigFileList (Header h, const char ***fileListPtr, int *fileCountPtr) |
int | myGlobPatternP (const char *patternURL) |
int | rpmGlob (const char *patterns, int *argcPtr, const char ***argvPtr) |
void | providePackageNVR (Header h) |
Retrofit a Provides: name = version-release dependency into legacy packages. More... | |
int | domd5 (const char *fn, unsigned char *digest, int asAscii) |
Calculate MD5 sum for file. More... | |
int | mdfile (const char *fn, unsigned char *digest) |
Return MD5 sum of file as ASCII string. More... | |
int | mdbinfile (const char *fn, unsigned char *bindigest) |
Return MD5 sum of file as binary data. More... |
Definition in file misc.h.
|
Definition at line 465 of file misc.c. Referenced by psmStage(). |
|
Convert absolute path tag to (dirname,basename,dirindex) tags.
Definition at line 298 of file misc.c. Referenced by doGetRecord(), genCpioListAndHeader(), and readPackageHeaders(). |
|
Return (malloc'd) current working directory.
|
|
Calculate MD5 sum for file.
Definition at line 791 of file misc.c. Referenced by decideFileFate(), genCpioListAndHeader(), mdbinfile(), mdfile(), and rpmVerifyFile(). |
|
Like the libc function, but malloc()'s the space needed.
Definition at line 98 of file misc.c. Referenced by runScript(). |
|
Like the libc function, but malloc()'s the space needed.
Definition at line 108 of file misc.c. Referenced by checkPassPhrase(), makeGPGSignature(), makePGPSignature(), verifyGPGSignature(), and verifyPGPSignature(). |
|
Convert (dirname,basename,dirindex) tags to absolute path tag.
Definition at line 436 of file misc.c. Referenced by dbiUpdateRecord(), genCpioListAndHeader(), and rpmdbAdd(). |
|
Free split string argv array.
Definition at line 59 of file misc.c. Referenced by parsePrep(), processPackageFiles(), processSourceFiles(), and skipFiles(). |
|
Return file handle for a temporaray file. A unique temporaray file path will be generated using rpmGenPath(prefix, "%{_tmppath}/", "rpm-tmp.XXXXX") where "XXXXXX" is filled in using rand(3). The file is opened, and the link count and (dev,ino) location are verified after opening. The file name and the open file handle are returned.
Definition at line 170 of file misc.c. Referenced by doScript(), manageFile(), runScript(), verifyGPGSignature(), verifyPGPSignature(), and writeRPM(). |
|
Return MD5 sum of file as binary data.
Definition at line 175 of file misc.h. Referenced by rpmAddSignature(). |
|
Return MD5 sum of file as ASCII string.
|
|
Definition at line 476 of file misc.c. Referenced by processBinaryFile(), and rpmGlob(). |
|
Retrofit a Provides: name = version-release dependency into legacy packages.
Definition at line 712 of file misc.c. Referenced by doGetRecord(), packageBinaries(), readPackageHeaders(), and writeRPM(). |
|
Definition at line 508 of file misc.c. Referenced by IDTXglob(), processBinaryFile(), rpmInstall(), rpmQueryVerify(), and rpmReadPackageManifest(). |
|
Split string into fields separated by a character.
Definition at line 23 of file misc.c. Referenced by parsePrep(), processPackageFiles(), processSourceFiles(), and skipFiles(). |
|
Remove occurences of trailing character from string.
Definition at line 37 of file misc.h. Referenced by readPackageHeaders(), and relocateFileList(). |