#include <unistd.h>
#include <sys/types.h>
#include "header.h"
#include "ugid.h"
Go to the source code of this file.
Functions | |
char** | splitString (const char *str, int length, char sep) |
void | freeSplitString (char **list) |
char* | stripTrailingChar (char *s, char c) |
Remove occurences of trailing character from string. More... | |
int | rpmfileexists (const char *urlfn) |
int | dosetenv (const char *name, const char *value, int overwrite) |
int | doputenv (const char *str) |
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) |
void | expandFilelist (Header h) |
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) |
Definition in file misc.h.
|
Definition at line 455 of file misc.c. Referenced by psmStage().
|
|
Definition at line 289 of file misc.c. Referenced by doGetRecord(), genCpioListAndHeader(), hdrCompressFilelist(), hdrLoad(), mungeFilelist(), readPackageHeaders(), and rpmReadHeaders().
|
|
Return (malloc'd) current working directory.
|
|
Definition at line 97 of file misc.c. Referenced by runScript().
|
|
Definition at line 107 of file misc.c. Referenced by checkPassPhrase(), makeGPGSignature(), makePGPSignature(), verifyGPGSignature(), and verifyPGPSignature().
|
|
Definition at line 426 of file misc.c. Referenced by dbiUpdateRecord(), genCpioListAndHeader(), hdrExpandFilelist(), and rpmdbAdd().
|
|
Definition at line 60 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 167 of file misc.c. Referenced by doScript(), manageFile(), runScript(), verifyGPGSignature(), verifyPGPSignature(), and writeRPM().
|
|
Definition at line 466 of file misc.c. Referenced by processBinaryFile(), and rpmGlob().
|
|
Definition at line 694 of file misc.c. Referenced by doGetRecord(), hdrLoad(), packageBinaries(), readPackageHeaders(), rpmReadHeaders(), and writeRPM().
|
|
Definition at line 498 of file misc.c. Referenced by IDTXglob(), processBinaryFile(), rpmInstall(), rpmQueryVerify(), and rpmReadPackageManifest().
|
|
Definition at line 68 of file misc.c. Referenced by rpmdbMoveDatabase(), and rpmdbRemoveDatabase().
|
|
Definition at line 24 of file misc.c. Referenced by parsePrep(), processPackageFiles(), processSourceFiles(), and skipFiles().
|
|
Remove occurences of trailing character from string.
Definition at line 36 of file misc.h. Referenced by readPackageHeaders(), and relocateFileList().
|