rpmlib.h File Reference

In Memoriam: Steve Taylor <staylor@redhat.com> was here, now he's not. More...

#include <popt.h>
#include <rpm/rpmio.h>
#include <rpm/header.h>
#include <rpm/rpmtag.h>
#include <rpm/rpmds.h>
#include <rpm/rpmpgp.h>

Include dependency graph for rpmlib.h:

Go to the source code of this file.

Functions

void headerMergeLegacySigs (Header h, const Header sigh)
 Translate and merge legacy signature tags into header.
Header headerRegenSigHeader (const Header h, int noArchiveSize)
 Regenerate signature header.

Variables

struct rpmMacroContext_s * rpmGlobalMacroContext
struct rpmMacroContext_s * rpmCLIMacroContext
const char *const RPMVERSION
const char *const rpmNAME
const char *const rpmEVR
const int rpmFLAGS


Detailed Description

In Memoriam: Steve Taylor <staylor@redhat.com> was here, now he's not.

Definition in file rpmlib.h.


Define Documentation

#define RPM_MACHTABLE_COUNT   4

No. of arch/os tables.

Definition at line 68 of file rpmlib.h.


Function Documentation

void rpmFreeFilesystems ( void   ) 

Release storage used by file system usage cache.

Referenced by main().

int rpmGetFilesystemList ( const char ***  listptr,
unsigned int *  num 
)

Return (cached) file system mount points.

Return values:
listptr addess of file system names (or NULL)
num address of number of file systems (or NULL)
Returns:
0 on success, 1 on error

int rpmGetFilesystemUsage ( const char **  fileList,
rpm_loff_t fssizes,
unsigned int  numFiles,
rpm_loff_t **  usagesPtr,
int  flags 
)

Determine per-file system usage for a list of files.

Parameters:
fileList array of absolute file names
fssizes array of file sizes
numFiles number of files in list
Return values:
usagesPtr address of per-file system usage array (or NULL)
Parameters:
flags (unused)
Returns:
0 on success, 1 on error

rpmRC rpmInstallSourcePackage ( rpmts  ts,
FD_t  fd,
char **  specFilePtr,
char **  cookie 
)

Install source package.

Parameters:
ts transaction set
fd file handle
Return values:
specFilePtr address of spec file name (or NULL)
cookie address of cookie pointer (or NULL)
Returns:
rpmRC return code

int rpmvercmp ( const char *  a,
const char *  b 
)

Segmented string compare for version or release strings.

Parameters:
a 1st string
b 2nd string
Returns:
+1 if a is "newer", 0 if equal, -1 if b is "newer"

int rpmVersionCompare ( Header  first,
Header  second 
)

Compare headers to determine which header is "newer".

Parameters:
first 1st header
second 2nd header
Returns:
result of comparison


Variable Documentation

struct rpmMacroContext_s* rpmCLIMacroContext

const char* const rpmEVR

Referenced by printVersion().

const int rpmFLAGS

struct rpmMacroContext_s* rpmGlobalMacroContext

const char* const rpmNAME

const char* const RPMVERSION


Generated on Sat Apr 18 17:12:59 2009 for rpm by  doxygen 1.5.7.1