Go to the source code of this file.
Functions | |
rpmRC | rpmMkdirPath (const char *dpath, const char *dname) |
Create directory if it does not exist, and make sure path is writable. More... | |
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... | |
int | myGlobPatternP (const char *patternURL) |
int | rpmGlob (const char *patterns, int *argcPtr, const char ***argvPtr) |
Definition in file misc.h.
|
Return (malloc'd) current working directory.
|
|
Like the libc function, but malloc()'s the space needed.
|
|
Like the libc function, but malloc()'s the space needed.
Definition at line 112 of file misc.c. Referenced by checkPassPhrase, makeGPGSignature, and makePGPSignature. |
|
Free split string argv array.
Definition at line 94 of file misc.c. Referenced by parsePrep, processPackageFiles, and processSourceFiles. |
|
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 124 of file misc.c. Referenced by doScript, makeHDRSignature, manageFile, and writeRPM. |
|
Definition at line 248 of file misc.c. Referenced by initGlobs, processBinaryFile, and rpmGlob. |
|
Definition at line 286 of file misc.c. Referenced by IDTXglob, processBinaryFile, rpmGraph, rpmInstall, rpmQueryVerify, and rpmReadPackageManifest. |
|
Create directory if it does not exist, and make sure path is writable.
Definition at line 24 of file misc.c. Referenced by main. |
|
Split string into fields separated by a character.
Definition at line 57 of file misc.c. Referenced by parsePrep, processPackageFiles, and processSourceFiles. |
|
Remove occurences of trailing character from string.
Definition at line 48 of file misc.h. Referenced by legacyRetrofit. |