Back to index

cell-binutils  2.17cvs20070401
Classes | Defines | Enumerations | Functions
gdbm.h File Reference

Go to the source code of this file.

Classes

struct  datum
struct  GDBM_FILE

Defines

#define GDBM_READER   0
#define GDBM_WRITER   1
#define GDBM_WRCREAT   2
#define GDBM_NEWDB   3
#define GDBM_INSERT   0
#define GDBM_REPLACE   1

Enumerations

enum  gdbm_error {
  NO_ERROR, MALLOC_ERROR, BLOCK_SIZE_ERROR, FILE_OPEN_ERROR,
  FILE_WRITE_ERROR, FILE_SEEK_ERROR, FILE_READ_ERROR, BAD_MAGIC_NUMBER,
  EMPTY_DATABASE, CANT_BE_READER, CANT_BE_WRITER, READER_CANT_RECOVER,
  READER_CANT_DELETE, READER_CANT_STORE, READER_CANT_REORGANIZE, UNKNOWN_UPDATE,
  ITEM_NOT_FOUND, REORGANIZE_FAILED, CANNOT_REPLACE
}

Functions

GDBM_FILE gdbm_open ()
void gdbm_close ()
datum gdbm_fetch ()
int gdbm_store ()
int gdbm_delete ()
datum gdbm_firstkey ()
datum gdbm_nextkey ()
int gdbm_reorganize ()

Class Documentation

struct datum

Definition at line 42 of file gdbm.h.

Class Members
char * dptr
int dsize
struct GDBM_FILE

Definition at line 49 of file gdbm.h.

Class Members
int dummy

Define Documentation

#define GDBM_INSERT   0

Definition at line 37 of file gdbm.h.

#define GDBM_NEWDB   3

Definition at line 34 of file gdbm.h.

#define GDBM_READER   0

Definition at line 31 of file gdbm.h.

#define GDBM_REPLACE   1

Definition at line 38 of file gdbm.h.

#define GDBM_WRCREAT   2

Definition at line 33 of file gdbm.h.

#define GDBM_WRITER   1

Definition at line 32 of file gdbm.h.


Enumeration Type Documentation

enum gdbm_error
Enumerator:
NO_ERROR 
MALLOC_ERROR 
BLOCK_SIZE_ERROR 
FILE_OPEN_ERROR 
FILE_WRITE_ERROR 
FILE_SEEK_ERROR 
FILE_READ_ERROR 
BAD_MAGIC_NUMBER 
EMPTY_DATABASE 
CANT_BE_READER 
CANT_BE_WRITER 
READER_CANT_RECOVER 
READER_CANT_DELETE 
READER_CANT_STORE 
READER_CANT_REORGANIZE 
UNKNOWN_UPDATE 
ITEM_NOT_FOUND 
REORGANIZE_FAILED 
CANNOT_REPLACE 

Definition at line 72 of file gdbm.h.


Function Documentation

void gdbm_close ( )