Main Page   Modules   Data Structures   File List   Data Fields   Globals   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 547 of file misc.c.

Referenced by psmStage().

void compressFilelist ( Header h )
 

Definition at line 396 of file misc.c.

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

char* currentDirectory ( void )
 

Returns:
cureent working directory (malloc'ed)

Definition at line 372 of file misc.c.

int doputenv ( const char * str )
 

Definition at line 196 of file misc.c.

Referenced by runScript().

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

Definition at line 208 of file misc.c.

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

void expandFilelist ( Header h )
 

Definition at line 520 of file misc.c.

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

void freeSplitString ( char ** list )
 

Definition at line 67 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 276 of file misc.c.

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

int myGlobPatternP ( const char * patternURL )
 

Definition at line 558 of file misc.c.

Referenced by processBinaryFile(), and rpmGlob().

void providePackageNVR ( Header h )
 

Definition at line 783 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 590 of file misc.c.

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

int rpmfileexists ( const char * filespec )
 

Definition at line 73 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 31 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 33 of file misc.h.

Referenced by readPackageHeaders(), and relocateFileList().


Generated at Thu Apr 19 15:29:47 2001 for rpm by doxygen1.2.6-20010408 written by Dimitri van Heesch, © 1997-2001