citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

database.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CtdlCompressHeader
 

Macros

#define COMPRESS_MAGIC   0xc0ffeeee
 

Functions

void open_databases (void)
 
void close_databases (void)
 
int cdb_store (int cdb, const void *key, int keylen, void *data, int datalen)
 
int cdb_delete (int cdb, void *key, int keylen)
 
struct cdbdatacdb_fetch (int cdb, const void *key, int keylen)
 
void cdb_free (struct cdbdata *cdb)
 
void cdb_rewind (int cdb)
 
struct cdbdatacdb_next_item (int cdb)
 
void cdb_close_cursor (int cdb)
 
void cdb_begin_transaction (void)
 
void cdb_end_transaction (void)
 
void cdb_allocate_tsd (void)
 
void cdb_free_tsd (void)
 
void cdb_check_handles (void)
 
void cdb_trunc (int cdb)
 
void * checkpoint_thread (void *arg)
 
void cdb_chmod_data (void)
 
void cdb_checkpoint (void)
 
void check_handles (void *arg)
 
void cdb_cull_logs (void)
 
void cdb_compact (void)
 
int CheckIfAlreadySeen (StrBuf *guid)
 

Macro Definition Documentation

◆ COMPRESS_MAGIC

#define COMPRESS_MAGIC   0xc0ffeeee

Definition at line 49 of file database.h.

Function Documentation

◆ cdb_allocate_tsd()

void cdb_allocate_tsd ( void  )

◆ cdb_begin_transaction()

void cdb_begin_transaction ( void  )

Definition at line 688 of file database.c.

References bailIfCursor(), cdb_abort(), TSD, and txbegin().

Referenced by check_ref_counts().

◆ cdb_check_handles()

void cdb_check_handles ( void  )

◆ cdb_checkpoint()

void cdb_checkpoint ( void  )

◆ cdb_chmod_data()

void cdb_chmod_data ( void  )

Definition at line 285 of file database.c.

References ctdl_db_dir, CTDLUID, and snprintf().

Referenced by main().

◆ cdb_close_cursor()

void cdb_close_cursor ( int  cdb)

Definition at line 617 of file database.c.

References cclose(), and TSD.

Referenced by cdb_next_item(), and cmd_gnur().

◆ cdb_compact()

void cdb_compact ( void  )

Definition at line 764 of file database.c.

References dbp, and MAXCDB.

Referenced by purge_databases().

◆ cdb_cull_logs()

void cdb_cull_logs ( void  )

◆ cdb_delete()

◆ cdb_end_transaction()

void cdb_end_transaction ( void  )

Definition at line 700 of file database.c.

References cclose(), cdb_abort(), MAXCDB, TSD, and txcommit().

Referenced by check_ref_counts().

◆ cdb_fetch()

◆ cdb_free()

◆ cdb_free_tsd()

void cdb_free_tsd ( void  )

◆ cdb_next_item()

◆ cdb_rewind()

◆ cdb_store()

◆ cdb_trunc()

void cdb_trunc ( int  cdb)

◆ check_handles()

void check_handles ( void *  arg)

◆ CheckIfAlreadySeen()

int CheckIfAlreadySeen ( StrBuf *  guid)

◆ checkpoint_thread()

void * checkpoint_thread ( void *  arg)

◆ close_databases()

void close_databases ( void  )

Definition at line 310 of file database.c.

References dbenv, dbp, and MAXCDB.

Referenced by master_cleanup().

◆ open_databases()

void open_databases ( void  )