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

DB1.


Files

file  db1.c
file  falloc.c
 The entire file space is thus divided into blocks with a "struct fablock" at the header of each.

file  falloc.h
 File space allocation routines.

file  rpmdb.h
 Access RPM indices using Berkeley db[123] interface.


Defines

#define FA_MAGIC   0x02050920

Functions

FD_t fadOpen (const char *path, int flags, mode_t perms)
unsigned int fadAlloc (FD_t fd, unsigned int size)
void fadFree (FD_t fd, unsigned int offset)
int fadFirstOffset (FD_t fd)
int fadNextOffset (FD_t fd, unsigned int lastoff)
char* db1basename (int rpmtag)

Variables

struct _dbiVec db1vec

Define Documentation

#define FA_MAGIC   0x02050920
 

Definition at line 22 of file falloc.c.


Function Documentation

char* db1basename ( int rpmtag )
 

Return base file name for db1 database (legacy).

Parameters:
rpmtag   rpm tag
Returns:
base file name of db1 database

Definition at line 2072 of file rpmdb.c.

Referenced by db1close(), db1open(), rpmdbMoveDatabase(), and rpmdbRemoveDatabase().

unsigned int fadAlloc ( FD_t fd,
unsigned int size )
 

Parameters:
fd   file handle

Definition at line 104 of file falloc.c.

Referenced by db1cget().

int fadFirstOffset ( FD_t fd )
 

Parameters:
fd   file handle

Definition at line 375 of file falloc.c.

Referenced by db1cget().

void fadFree ( FD_t fd,
unsigned int offset )
 

Parameters:
fd   file handle

Definition at line 292 of file falloc.c.

Referenced by db1cdel().

int fadNextOffset ( FD_t fd,
unsigned int lastoff )
 

Parameters:
fd   file handle

Definition at line 380 of file falloc.c.

Referenced by db1cget(), and fadFirstOffset().

FD_t fadOpen ( const char * path,
int flags,
mode_t perms )
 

Definition at line 52 of file falloc.c.

Referenced by db1open().


Variable Documentation

struct _dbiVec db1vec
 

Initial value:

 {
     1 ,  85 ,  0 ,
    db1open, db1close, db1sync, db1copen, db1cclose, db1cdel, db1cget, db1cput,
    db1byteswapped
}

Definition at line 489 of file db1.c.


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