Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

lib/misc.h File Reference

More...

#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 *filespec)
int rpmvercmp (const char *one, const char *two)
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)
char* currentDirectory (void)
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)


Detailed Description

Definition in file misc.h.


Function Documentation

void buildOrigFileList ( Header h,
const char *** fileListPtr,
int * fileCountPtr )
 

Definition at line 534 of file misc.c.

Referenced by assembleFileList().

void compressFilelist ( Header h )
 

Definition at line 388 of file misc.c.

Referenced by doGetRecord(), hdrCompressFilelist(), hdrLoad(), mungeFilelist(), readPackageHeaders(), rpmReadHeaders(), and writeRPM().

char* currentDirectory ( void )
 

Returns:
cureent working directory (malloc'ed)

Definition at line 364 of file misc.c.

int doputenv ( const char * str )
 

Definition at line 186 of file misc.c.

Referenced by runScript().

int dosetenv ( const char * name,
const char * value,
int overwrite )
 

Definition at line 198 of file misc.c.

Referenced by checkPassPhrase(), makeGPGSignature(), makePGPSignature(), verifyGPGSignature(), and verifyPGPSignature().

void expandFilelist ( Header h )
 

Definition at line 507 of file misc.c.

Referenced by dbiUpdateRecord(), hdrExpandFilelist(), rpmdbAdd(), and writeRPM().

void freeSplitString ( char ** list )
 

Definition at line 57 of file misc.c.

Referenced by parsePrep(), processPackageFiles(), processSourceFiles(), and skipFiles().

int makeTempFile ( const char * prefix,
const char ** fnptr,
FD_t * fdptr )
 

Definition at line 266 of file misc.c.

Referenced by doScript(), manageFile(), runScript(), and writeRPM().

int myGlobPatternP ( const char * patternURL )
 

Definition at line 545 of file misc.c.

Referenced by processBinaryFile(), and rpmGlob().

void providePackageNVR ( Header h )
 

Definition at line 771 of file misc.c.

Referenced by doGetRecord(), hdrLoad(), packageBinaries(), readPackageHeaders(), rpmReadHeaders(), and writeRPM().

int rpmGlob ( const char * patterns,
int * argcPtr,
const char *** argvPtr )
 

Definition at line 577 of file misc.c.

Referenced by processBinaryFile(), rpmInstall(), and rpmQueryVerify().

int rpmfileexists ( const char * filespec )
 

Definition at line 63 of file misc.c.

Referenced by rpmdbMoveDatabase().

int rpmvercmp ( const char * one,
const char * two )
 

char** splitString ( const char * str,
int length,
char sep )
 

Definition at line 21 of file misc.c.

Referenced by parsePrep(), processPackageFiles(), processSourceFiles(), and skipFiles().

char* stripTrailingChar ( char * s,
char c ) [inline, static]
 

Remove occurences of trailing character from string.

Parameters:
s   string
c   character to strip
Returns:
string

Definition at line 32 of file misc.h.

Referenced by readPackageHeaders(), and relocateFileList().


Generated at Mon May 21 08:53:42 2001 for rpm by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001