GnuCOBOL
2.0
A free COBOL compiler
|
#include "config.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <limits.h>
#include <float.h>
#include "vbisam.h"
#include "byteswap.h"
Go to the source code of this file.
Data Structures | |
struct | VBLOCK |
struct | VBKEY |
struct | VBTREE |
struct | DICTNODE |
struct | DICTINFO |
struct | VBFILE |
struct | SLOGHDR |
Macros | |
#define | _LFS64_LARGEFILE 1 |
#define | _LFS64_STDIO 1 |
#define | _FILE_OFFSET_BITS 64 |
#define | _LARGEFILE64_SOURCE 1 |
#define | __USE_LARGEFILE64 1 |
#define | __USE_FILE_OFFSET64 1 |
#define | QUADSIZE 8 |
#define | VB_OFFLEN_7F 0x7fffffffffffffffLL |
#define | VB_OFFLEN_3F 0x3fffffffffffffffLL |
#define | VB_OFFLEN_40 0x4000000000000000LL |
#define | MAXSUBS 32 /* Maximum number of indexes per table */ |
#define | VB_MAX_FILES 128 /* Maximum number of open VBISAM files */ |
#define | VBISAM_LIB |
#define | VB_HIDDEN |
#define | O_BINARY 0 |
#define | likely(x) (x) |
#define | unlikely(x) (x) |
#define | MISALIGNED |
#define | MAX_NODE_LENGTH 4096 |
#define | VB_NODE_MAX 4096 |
#define | MAX_ISREC_LENGTH 32511 |
#define | MAX_RESERVED_LENGTH 32768 /* Greater then MAX_ISREC_LENGTH */ |
#define | MAX_BUFFER_LENGTH 65536 |
#define | VBUNLOCK 0 /* Unlock */ |
#define | VBRDLOCK 1 /* A simple read lock, non-blocking */ |
#define | VBRDLCKW 2 /* A simple read lock, blocking */ |
#define | VBWRLOCK 3 /* An exclusive write lock, non-blocking */ |
#define | VBWRLCKW 4 /* An exclusive write lock, blocking */ |
#define | RECOV_C 0x00 /* Boring old buggy C-ISAM mode */ |
#define | RECOV_VB 0x01 /* New, improved error detection */ |
#define | RECOV_LK 0x02 /* Use locks in isrecover (See documentation) */ |
#define | VBNOTRANS 0 /* NOT in a transaction at all */ |
#define | VBBEGIN 1 /* An isbegin has been issued but no more */ |
#define | VBNEEDFLUSH 2 /* Something BEYOND just isbegin has been issued */ |
#define | VBCOMMIT 3 /* We're in 'iscommit' mode */ |
#define | VBROLLBACK 4 /* We're in 'isrollback' mode */ |
#define | VBRECOVER 5 /* We're in 'isrecover' mode */ |
#define | VBL_BUILD ("BU") |
#define | VBL_BEGIN ("BW") |
#define | VBL_CREINDEX ("CI") |
#define | VBL_CLUSTER ("CL") |
#define | VBL_COMMIT ("CW") |
#define | VBL_DELETE ("DE") |
#define | VBL_DELINDEX ("DI") |
#define | VBL_FILEERASE ("ER") |
#define | VBL_FILECLOSE ("FC") |
#define | VBL_FILEOPEN ("FO") |
#define | VBL_INSERT ("IN") |
#define | VBL_RENAME ("RE") |
#define | VBL_ROLLBACK ("RW") |
#define | VBL_SETUNIQUE ("SU") |
#define | VBL_UNIQUEID ("UN") |
#define | VBL_UPDATE ("UP") |
Typedefs | |
typedef unsigned char * | ucharptr |
Functions | |
static int | inl_ldint (void *pclocation) |
static void | inl_stint (int ivalue, void *pclocation) |
static int | inl_ldlong (void *pclocation) |
static void | inl_stlong (int lvalue, void *pclocation) |
static off_t | inl_ldquad (void *pclocation) |
static void | inl_stquad (off_t tvalue, void *pclocation) |
int | ivbforceexit (const int ihandle) |
int | ivbclose2 (const int ihandle) |
void | ivbclose3 (const int ihandle) |
int | ivbcheckkey (const int ihandle, struct keydesc *pskey, const int imode, int irowlength, const int iisbuild) |
int | ivbtransbuild (const char *pcfilename, const int iminrowlen, const int imaxrowlen, struct keydesc *pskeydesc, const int imode) |
int | ivbtranscreateindex (const int ihandle, struct keydesc *pskeydesc) |
int | ivbtranscluster (void) |
int | ivbtransdelete (const int ihandle, off_t trownumber, int irowlength) |
int | ivbtransdeleteindex (const int ihandle, struct keydesc *pskeydesc) |
int | ivbtranserase (const char *pcfilename) |
int | ivbtransclose (const int ihandle, const char *pcfilename) |
int | ivbtransopen (const int ihandle, const char *pcfilename) |
int | ivbtransinsert (const int ihandle, const off_t trownumber, int irowlength, char *pcrow) |
int | ivbtransrename (char *pcoldname, char *pcnewname) |
int | ivbtranssetunique (const int ihandle, const off_t tuniqueid) |
int | ivbtransuniqueid (const int ihandle, const off_t tuniqueid) |
int | ivbtransupdate (const int ihandle, const off_t trownumber, const int ioldrowlen, const int inewrowlen, const char *pcrow) |
int | ivbwriterow (const int ihandle, char *pcrow, const off_t trownumber) |
int | ivbdataread (const int ihandle, char *pcbuffer, int *pideletedrow, const off_t trownumber) |
int | ivbdatawrite (const int ihandle, char *pcbuffer, int ideletedrow, const off_t trownumber) |
off_t | tvbnodecountgetnext (const int ihandle) |
int | ivbnodefree (const int ihandle, const off_t tnodenumber) |
int | ivbdatafree (const int ihandle, const off_t trownumber) |
off_t | tvbnodeallocate (const int ihandle) |
off_t | tvbdataallocate (const int ihandle) |
int | ivbforcedataallocate (const int ihandle, const off_t trownumber) |
void | vvbmakekey (const struct keydesc *pskeydesc, char *pcrow_buffer, unsigned char *pckeyvalue) |
int | ivbkeysearch (const int ihandle, const int imode, const int ikeynumber, int ilength, unsigned char *pckeyvalue, off_t tdupnumber) |
int | ivbkeylocaterow (const int ihandle, const int ikeynumber, off_t trownumber) |
int | ivbkeyload (const int ihandle, const int ikeynumber, const int imode, const int isetcurr, struct VBKEY **ppskey) |
void | vvbkeyvalueset (const int ihigh, struct keydesc *pskeydesc, unsigned char *pckeyvalue) |
int | ivbkeyinsert (const int ihandle, struct VBTREE *pstree, const int ikeynumber, unsigned char *pckeyvalue, off_t trownode, off_t tdupnumber, struct VBTREE *pschild) |
int | ivbkeydelete (const int ihandle, const int ikeynumber) |
int | ivbkeycompare (const int ihandle, const int ikeynumber, int ilength, unsigned char *pckey1, unsigned char *pckey2) |
int | ivbenter (const int ihandle, const unsigned int imodifying, const unsigned int ispecial) |
int | ivbexit (const int ihandle) |
int | ivbfileopenlock (const int ihandle, const int imode) |
int | ivbdatalock (const int ihandle, const int imode, const off_t trownumber) |
int | ivbopen (const char *pcfilename, const int iflags, const mode_t tmode) |
int | ivbclose (const int ihandle) |
off_t | tvblseek (const int ihandle, off_t toffset, const int iwhence) |
ssize_t | tvbread (const int ihandle, void *pvbuffer, const size_t tcount) |
ssize_t | tvbwrite (const int ihandle, const void *pvbuffer, const size_t tcount) |
int | ivbblockread (const int ihandle, const int iisindex, const off_t tblocknumber, char *cbuffer) |
int | ivbblockwrite (const int ihandle, const int iisindex, const off_t tblocknumber, const char *cbuffer) |
int | ivblock (const int ihandle, const off_t toffset, const off_t tlength, const int imode) |
struct VBLOCK * | psvblockallocate (const int ihandle) |
void | vvblockfree (struct VBLOCK *pslock) |
struct VBTREE * | psvbtreeallocate (const int ihandle) |
void | vvbtreeallfree (const int ihandle, const int ikeynumber, struct VBTREE *pstree) |
struct VBKEY * | psvbkeyallocate (const int ihandle, const int ikeynumber) |
void | vvbkeyallfree (const int ihandle, const int ikeynumber, struct VBTREE *pstree) |
void | vvbkeyfree (const int ihandle, const int ikeynumber, struct VBKEY *pskey) |
void | vvbkeyunmalloc (const int ihandle, const int ikeynumber) |
void * | pvvbmalloc (const size_t size) |
void | vvbfree (void *mptr) |
void | vvbunmalloc (void) |
int | ivbnodeload (const int ihandle, const int ikeynumber, struct VBTREE *pstree, const off_t tnodenumber, const int iprevlvl) |
int | ivbnodesave (const int ihandle, const int ikeynumber, struct VBTREE *pstree, const off_t tnodenumber, const int imode, const int iposn) |
Variables | |
int | ivbintrans |
int | ivblogfilehandle |
int | ivbmaxusedhandle |
struct DICTINFO * | psvbfile [128+1] |
struct VBFILE | svbfile [128 *3] |
#define __USE_FILE_OFFSET64 1 |
Definition at line 36 of file isinternal.h.
#define __USE_LARGEFILE64 1 |
Definition at line 35 of file isinternal.h.
#define _FILE_OFFSET_BITS 64 |
Definition at line 33 of file isinternal.h.
#define _LARGEFILE64_SOURCE 1 |
Definition at line 34 of file isinternal.h.
#define _LFS64_LARGEFILE 1 |
Definition at line 31 of file isinternal.h.
#define _LFS64_STDIO 1 |
Definition at line 32 of file isinternal.h.
#define likely | ( | x | ) | (x) |
Definition at line 146 of file isinternal.h.
#define MAX_BUFFER_LENGTH 65536 |
Definition at line 291 of file isinternal.h.
Referenced by ircvchecktrans(), and isrecover().
#define MAX_ISREC_LENGTH 32511 |
Definition at line 289 of file isinternal.h.
#define MAX_NODE_LENGTH 4096 |
Definition at line 283 of file isinternal.h.
Referenced by isbuild(), isopen(), and ttailnode().
#define MAX_RESERVED_LENGTH 32768 /* Greater then MAX_ISREC_LENGTH */ |
Definition at line 290 of file isinternal.h.
Referenced by iprocessdelete(), isbuild(), isopen(), ivbdataread(), and ivbdatawrite().
#define MAXSUBS 32 /* Maximum number of indexes per table */ |
Definition at line 119 of file isinternal.h.
Referenced by iindexcheck(), ipostamble(), irowdelete(), irowinsert(), isaddindex(), isdelindex(), isopen(), ivbclose2(), ivbclose3(), ivbenter(), and vrebuildkeys().
#define MISALIGNED |
Definition at line 157 of file isinternal.h.
Referenced by inl_ldint(), inl_ldlong(), inl_ldquad(), inl_stint(), inl_stlong(), and inl_stquad().
#define O_BINARY 0 |
Definition at line 133 of file isinternal.h.
#define QUADSIZE 8 |
Definition at line 108 of file isinternal.h.
Referenced by iaddkeydescriptor(), idatafreecheck(), idelnodes(), iindexfreecheck(), ipreamble(), iquicknodesave(), ircvdelete(), ircvinsert(), ircvupdate(), isbuild(), isopen(), ivbcheckkey(), ivbdatafree(), ivbdataread(), ivbdatawrite(), ivbforcedataallocate(), ivbkeycompare(), ivbnodefree(), ivbnodeload(), ivbnodesave(), ivbrollmeback(), ivbtransdelete(), ivbtransinsert(), ivbtranssetunique(), ivbtransuniqueid(), ivbtransupdate(), ivbvarlendelete(), tdelkeydescriptor(), ttailnode(), tvbdataallocate(), tvbnodeallocate(), and vvbkeyvalueset().
#define RECOV_C 0x00 /* Boring old buggy C-ISAM mode */ |
Definition at line 301 of file isinternal.h.
#define RECOV_LK 0x02 /* Use locks in isrecover (See documentation) */ |
Definition at line 303 of file isinternal.h.
#define RECOV_VB 0x01 /* New, improved error detection */ |
Definition at line 302 of file isinternal.h.
Referenced by ircvchecktrans().
#define unlikely | ( | x | ) | (x) |
Definition at line 147 of file isinternal.h.
#define VB_HIDDEN |
Definition at line 129 of file isinternal.h.
#define VB_MAX_FILES 128 /* Maximum number of open VBISAM files */ |
Definition at line 120 of file isinternal.h.
Referenced by ircvcommit(), isbuild(), isopen(), isrecover(), ivbopen(), ivbrollmeback(), ivbrollmeforward(), and vcloseall().
#define VB_NODE_MAX 4096 |
Definition at line 288 of file isinternal.h.
Referenced by iaddkeydescriptor(), idelnodes(), iindexcheck(), ipreamble(), isbuild(), isopen(), ivbdatafree(), ivbdataread(), ivbdatawrite(), ivbenter(), ivbexit(), ivbfileopenlock(), ivbforceexit(), ivbnodefree(), ivbnodesave(), tdelkeydescriptor(), and ttailnode().
#define VB_OFFLEN_3F 0x3fffffffffffffffLL |
Definition at line 110 of file isinternal.h.
Referenced by ivbdatalock(), ivbenter(), and ivbexit().
#define VB_OFFLEN_40 0x4000000000000000LL |
Definition at line 111 of file isinternal.h.
Referenced by ivbdatalock().
#define VB_OFFLEN_7F 0x7fffffffffffffffLL |
Definition at line 109 of file isinternal.h.
Referenced by ivbfileopenlock().
Definition at line 307 of file isinternal.h.
Referenced by isbegin(), isclose(), iscommit(), isrollback(), ivbtransbuild(), ivbtransclose(), ivbtranscreateindex(), ivbtransdelete(), ivbtransdeleteindex(), ivbtranserase(), ivbtransinsert(), ivbtransopen(), ivbtransrename(), ivbtranssetunique(), ivbtransuniqueid(), ivbtransupdate(), and iwritetrans().
Definition at line 309 of file isinternal.h.
Referenced by iprocessdelete(), iscommit(), and ivbenter().
#define VBISAM_LIB |
Definition at line 122 of file isinternal.h.
#define VBL_BEGIN ("BW") |
Definition at line 469 of file isinternal.h.
Referenced by ircvchecktrans(), isrecover(), ivbrollmeback(), ivbrollmeforward(), and iwritebegin().
#define VBL_BUILD ("BU") |
Definition at line 468 of file isinternal.h.
Referenced by isrecover(), and ivbtransbuild().
#define VBL_CLUSTER ("CL") |
Definition at line 471 of file isinternal.h.
Referenced by isrecover().
#define VBL_COMMIT ("CW") |
Definition at line 472 of file isinternal.h.
Referenced by ircvchecktrans(), iscommit(), and isrecover().
#define VBL_CREINDEX ("CI") |
Definition at line 470 of file isinternal.h.
Referenced by isrecover(), and ivbtranscreateindex().
#define VBL_DELETE ("DE") |
Definition at line 473 of file isinternal.h.
Referenced by isrecover(), ivbrollmeback(), ivbrollmeforward(), and ivbtransdelete().
#define VBL_DELINDEX ("DI") |
Definition at line 474 of file isinternal.h.
Referenced by isrecover(), and ivbtransdeleteindex().
#define VBL_FILECLOSE ("FC") |
Definition at line 476 of file isinternal.h.
Referenced by isrecover(), ivbrollmeback(), ivbrollmeforward(), and ivbtransclose().
#define VBL_FILEERASE ("ER") |
Definition at line 475 of file isinternal.h.
Referenced by isrecover(), and ivbtranserase().
#define VBL_FILEOPEN ("FO") |
Definition at line 477 of file isinternal.h.
Referenced by isrecover(), ivbrollmeback(), ivbrollmeforward(), and ivbtransopen().
#define VBL_INSERT ("IN") |
Definition at line 478 of file isinternal.h.
Referenced by isrecover(), ivbrollmeback(), and ivbtransinsert().
#define VBL_RENAME ("RE") |
Definition at line 479 of file isinternal.h.
Referenced by isrecover(), and ivbtransrename().
#define VBL_ROLLBACK ("RW") |
Definition at line 480 of file isinternal.h.
Referenced by ircvchecktrans(), isrecover(), and isrollback().
#define VBL_SETUNIQUE ("SU") |
Definition at line 481 of file isinternal.h.
Referenced by isrecover(), and ivbtranssetunique().
#define VBL_UNIQUEID ("UN") |
Definition at line 482 of file isinternal.h.
Referenced by isrecover(), and ivbtransuniqueid().
#define VBL_UPDATE ("UP") |
Definition at line 483 of file isinternal.h.
Referenced by isrecover(), ivbrollmeback(), and ivbtransupdate().
Definition at line 308 of file isinternal.h.
Referenced by isclose(), islogclose(), ivbtransbuild(), ivbtranscreateindex(), ivbtransdelete(), ivbtransdeleteindex(), ivbtranserase(), ivbtransinsert(), ivbtransopen(), ivbtransrename(), ivbtranssetunique(), ivbtransuniqueid(), ivbtransupdate(), and iwritetrans().
Definition at line 306 of file isinternal.h.
Referenced by iprocessdelete(), iscommit(), islogclose(), isopen(), isrelcurr(), isrelease(), isrollback(), and ivbenter().
#define VBRDLCKW 2 /* A simple read lock, blocking */ |
Definition at line 296 of file isinternal.h.
Referenced by ivblock().
#define VBRDLOCK 1 /* A simple read lock, non-blocking */ |
Definition at line 295 of file isinternal.h.
Referenced by ivbenter(), ivbfileopenlock(), and ivblock().
Definition at line 311 of file isinternal.h.
Referenced by isclose(), and isrecover().
#define VBROLLBACK 4 /* We're in 'isrollback' mode */ |
Definition at line 310 of file isinternal.h.
Referenced by iprocessdelete(), isrollback(), ivbenter(), and ivbtransclose().
#define VBUNLOCK 0 /* Unlock */ |
Definition at line 294 of file isinternal.h.
Referenced by idemotelocks(), isrelcurr(), isrelease(), isrelrec(), isunlock(), ivbdatalock(), ivbexit(), ivbfileopenlock(), ivblock(), ivbwriterow(), and iwritetrans().
#define VBWRLCKW 4 /* An exclusive write lock, blocking */ |
Definition at line 298 of file isinternal.h.
Referenced by isread(), istartrownumber(), ivblock(), and iwritetrans().
#define VBWRLOCK 3 /* An exclusive write lock, non-blocking */ |
Definition at line 297 of file isinternal.h.
Referenced by iprocessdelete(), islock(), isread(), isrewcurr(), isrewrec(), isrewrite(), istartrownumber(), ivbenter(), ivbfileopenlock(), ivblock(), and ivbwriterow().
typedef unsigned char* ucharptr |
Definition at line 150 of file isinternal.h.
|
inlinestatic |
Definition at line 170 of file isinternal.h.
References MISALIGNED, and VB_BSWAP_16.
Referenced by iaddkeydescriptor(), idatafreecheck(), idelnodes(), iindexfreecheck(), iquicknodesave(), ircvbegin(), ircvbuild(), ircvchecktrans(), ircvcluster(), ircvcommit(), ircvcreateindex(), ircvdelete(), ircvdeleteindex(), ircvfileclose(), ircvfileerase(), ircvfileopen(), ircvfilerename(), ircvinsert(), ircvrollback(), ircvsetunique(), ircvuniqueid(), ircvupdate(), isopen(), isrecover(), ivbdatafree(), ivbdataread(), ivbdatawrite(), ivbforcedataallocate(), ivbkeycompare(), ivbnodefree(), ivbnodeload(), ivbrollmeback(), ivbrollmeforward(), ivbvarlendelete(), ivbvarlenread(), ivbvarlenwrite(), tdelkeydescriptor(), ttailnode(), tvbdataallocate(), and tvbnodeallocate().
|
inlinestatic |
Definition at line 209 of file isinternal.h.
References MISALIGNED, and VB_BSWAP_32.
Referenced by ivbkeycompare().
|
inlinestatic |
Definition at line 238 of file isinternal.h.
References MISALIGNED, VB_BSWAP_32, and VB_BSWAP_64.
Referenced by iaddkeydescriptor(), icheckkeydesc(), idatafreecheck(), idelnodes(), iindexfreecheck(), imakekeysfromdata(), ircvdelete(), ircvinsert(), ircvsetunique(), ircvuniqueid(), ircvupdate(), isopen(), issetunique(), istartrownumber(), isuniqueid(), ivbdatafree(), ivbdataread(), ivbenter(), ivbexit(), ivbforcedataallocate(), ivbkeycompare(), ivbnodefree(), ivbnodeload(), ivbnodesave(), ivbrollmeback(), ivbrollmeforward(), ivbvarlendelete(), ivbvarlenread(), tdelkeydescriptor(), ttailnode(), tvbdataallocate(), tvbdatacountgetnext(), tvbnodeallocate(), tvbnodecountgetnext(), and vrebuildindexfree().
|
inlinestatic |
Definition at line 190 of file isinternal.h.
References MISALIGNED, and VB_BSWAP_16.
Referenced by iaddkeydescriptor(), iindexcheck(), iquicknodesave(), irollbackall(), isaddindex(), isbuild(), isdelindex(), ivbdatafree(), ivbdatawrite(), ivbforcedataallocate(), ivbnodefree(), ivbnodesave(), ivbtransbuild(), ivbtransclose(), ivbtranscreateindex(), ivbtransdelete(), ivbtransdeleteindex(), ivbtransinsert(), ivbtransopen(), ivbtransrename(), ivbtranssetunique(), ivbtransuniqueid(), ivbtransupdate(), ivbvarlendelete(), ivbvarlenwrite(), iwritetrans(), tdelkeydescriptor(), ttailnode(), tvbdataallocate(), tvbnodeallocate(), vtranshdr(), and vvbkeyvalueset().
|
inlinestatic |
Definition at line 226 of file isinternal.h.
References MISALIGNED, and VB_BSWAP_32.
Referenced by vtranshdr(), and vvbkeyvalueset().
|
inlinestatic |
Definition at line 260 of file isinternal.h.
References MISALIGNED, VB_BSWAP_32, and VB_BSWAP_64.
Referenced by iaddkeydescriptor(), idatafreecheck(), iindexfreecheck(), ipostamble(), iquicknodesave(), isbuild(), issetunique(), isuniqueid(), ivbdatafree(), ivbdatawrite(), ivbexit(), ivbforcedataallocate(), ivbnodefree(), ivbnodesave(), ivbrollmeforward(), ivbtransdelete(), ivbtransinsert(), ivbtranssetunique(), ivbtransuniqueid(), ivbtransupdate(), ivbvarlendelete(), ivbvarlenwrite(), ttailnode(), tvbdataallocate(), tvbdatacountgetnext(), tvbnodeallocate(), tvbnodecountgetnext(), and vrebuildindexfree().
int ivbblockread | ( | const int | ihandle, |
const int | iisindex, | ||
const off_t | tblocknumber, | ||
char * | cbuffer | ||
) |
Definition at line 137 of file vblowlevel.c.
References DICTINFO::idatahandle, DICTINFO::iindexhandle, DICTINFO::inodesize, tvblseek(), and tvbread().
Referenced by iaddkeydescriptor(), icheckkey(), icheckkeydesc(), idatafreecheck(), idelnodes(), iindexfreecheck(), iquicknodesave(), isopen(), ivbdatafree(), ivbdataread(), ivbdatawrite(), ivbenter(), ivbfileopenlock(), ivbforcedataallocate(), ivbnodefree(), ivbnodeload(), ivbvarlendelete(), ivbvarlenread(), tdelkeydescriptor(), ttailnode(), tvbdataallocate(), and tvbnodeallocate().
int ivbblockwrite | ( | const int | ihandle, |
const int | iisindex, | ||
const off_t | tblocknumber, | ||
const char * | cbuffer | ||
) |
Definition at line 167 of file vblowlevel.c.
References DICTINFO::idatahandle, DICTINFO::iindexhandle, DICTINFO::inodesize, tvblseek(), and tvbwrite().
Referenced by iaddkeydescriptor(), iindexcheck(), iquicknodesave(), isbuild(), ivbdatafree(), ivbdatawrite(), ivbexit(), ivbforcedataallocate(), ivbforceexit(), ivbnodefree(), ivbnodesave(), ivbvarlendelete(), ivbvarlenwrite(), tdelkeydescriptor(), ttailnode(), tvbdataallocate(), and tvbnodeallocate().
int ivbcheckkey | ( | const int | ihandle, |
struct keydesc * | pskey, | ||
const int | imode, | ||
int | irowlength, | ||
const int | iisbuild | ||
) |
Definition at line 124 of file isread.c.
References DICTINFO::iminrowlength, DICTINFO::inkeys, iserrno, DICTINFO::pskeydesc, psvbfile, and QUADSIZE.
Referenced by isaddindex(), isbuild(), isdelindex(), and isstart().
int ivbclose | ( | const int | ihandle | ) |
Definition at line 93 of file vblowlevel.c.
References VBFILE::irefcount, and svbfile.
Referenced by isbuild(), islogclose(), isopen(), and ivbclose2().
int ivbclose2 | ( | const int | ihandle | ) |
Definition at line 83 of file isopen.c.
References DICTINFO::cfilename, DICTINFO::idatahandle, DICTINFO::iindexhandle, DICTINFO::iisopen, iserrno, isrelease(), DICTINFO::itransyet, ivbclose(), ivbtransclose(), MAXSUBS, NULL, DICTINFO::pskeycurr, VBFILE::pslockhead, VBFILE::pslocktail, VBLOCK::psnext, psvbfile, svbfile, DICTINFO::tdupnumber, DICTINFO::trownumber, and vvblockfree().
Referenced by iscleanup(), isclose(), iscommit(), and isrollback().
void ivbclose3 | ( | const int | ihandle | ) |
Definition at line 125 of file isopen.c.
References DICTINFO::cfilename, MAXSUBS, NULL, DICTINFO::ppcrowbuffer, DICTINFO::pskeydesc, DICTINFO::pstree, psvbfile, vvbfree(), vvbkeyunmalloc(), and vvbtreeallfree().
Referenced by isbuild(), iscleanup(), iserase(), and isfullclose().
int ivbdatafree | ( | const int | ihandle, |
const off_t | trownumber | ||
) |
Definition at line 150 of file vbindexio.c.
References DICTNODE::cdatacount, DICTNODE::cdatafree, cvbnodetmp, DICTINFO::iisdictlocked, inl_ldint(), inl_ldquad(), inl_stint(), inl_stquad(), DICTINFO::inodesize, iserrno, ivbblockread(), ivbblockwrite(), psvbfile, QUADSIZE, DICTINFO::sdictnode, tvbnodeallocate(), and VB_NODE_MAX.
Referenced by iprocessdelete(), iswrcurr(), iswrite(), ivbforcedataallocate(), ivbrollmeback(), ivbrollmeforward(), and vrebuilddatafree().
int ivbdatalock | ( | const int | ihandle, |
const int | imode, | ||
const off_t | trownumber | ||
) |
Definition at line 432 of file vblocking.c.
References VBLOCK::ihandle, DICTINFO::iindexhandle, DICTINFO::iisdatalocked, ilockdelete(), ilockinsert(), DICTINFO::iopenmode, ivblock(), ivbmaxusedhandle, VBFILE::pslockhead, VBLOCK::psnext, psvbfile, svbfile, VBLOCK::trownumber, unlikely, VB_OFFLEN_3F, VB_OFFLEN_40, and VBUNLOCK.
Referenced by idemotelocks(), iprocessdelete(), islock(), isread(), isrelcurr(), isrelease(), isrelrec(), isrewcurr(), isrewrec(), isrewrite(), istartrownumber(), isunlock(), and ivbwriterow().
int ivbdataread | ( | const int | ihandle, |
char * | pcbuffer, | ||
int * | pideletedrow, | ||
const off_t | trownumber | ||
) |
Definition at line 493 of file vbdataio.c.
References cvbnodetmp, DICTINFO::idatahandle, DICTINFO::iminrowlength, inl_ldint(), inl_ldquad(), DICTINFO::inodesize, DICTINFO::iopenmode, iserrno, isreclen, DICTINFO::ivarlenlength, DICTINFO::ivarlenslot, ivbblockread(), ivbmaxusedhandle, ivbvarlenread(), MAX_RESERVED_LENGTH, psvbfile, QUADSIZE, DICTINFO::tvarlennode, tvblseek(), tvbread(), unlikely, and VB_NODE_MAX.
Referenced by idatacheck(), imakekeysfromdata(), iprocessdelete(), isread(), isrewcurr(), isrewrec(), isrewrite(), istartrownumber(), and vrebuildkeys().
int ivbdatawrite | ( | const int | ihandle, |
char * | pcbuffer, | ||
int | ideletedrow, | ||
const off_t | trownumber | ||
) |
Definition at line 611 of file vbdataio.c.
References cvbnodetmp, DICTINFO::idatahandle, DICTINFO::iminrowlength, inl_ldint(), inl_stint(), inl_stquad(), DICTINFO::inodesize, DICTINFO::iopenmode, iserrno, isreclen, DICTINFO::ivarlenlength, DICTINFO::ivarlenslot, ivbblockread(), ivbblockwrite(), ivbmaxusedhandle, ivbvarlendelete(), ivbvarlenwrite(), MAX_RESERVED_LENGTH, pcwritebuffer, psvbfile, QUADSIZE, DICTINFO::tvarlennode, tvblseek(), tvbwrite(), unlikely, and VB_NODE_MAX.
Referenced by iprocessdelete(), isrewcurr(), isrewrec(), isrewrite(), and ivbwriterow().
int ivbenter | ( | const int | ihandle, |
const unsigned int | imodifying, | ||
const unsigned int | ispecial | ||
) |
Definition at line 178 of file vblocking.c.
References DICTNODE::ctransnumber, cvbnodetmp, DICTINFO::iindexchanged, DICTINFO::iindexhandle, DICTINFO::iisdictlocked, DICTINFO::iisopen, inl_ldquad(), DICTINFO::iopenmode, iserrno, ivbblockread(), ivbexit(), ivbintrans, ivblock(), ivbmaxusedhandle, MAXSUBS, NULL, DICTINFO::pskeycurr, DICTINFO::pstree, psvbfile, DICTINFO::sdictnode, VBKEY::trownode, DICTINFO::ttranslast, unlikely, VB_NODE_MAX, VB_OFFLEN_3F, VBCOMMIT, VBNOTRANS, VBRDLOCK, VBROLLBACK, VBWRLOCK, and vvbtreeallfree().
Referenced by ircvinsert(), isaddindex(), ischeck(), isdelcurr(), isdelete(), isdelindex(), isdelrec(), isindexinfo(), isopen(), isread(), isrewcurr(), isrewrec(), isrewrite(), issetunique(), isstart(), isuniqueid(), iswrcurr(), iswrite(), ivbrollmeback(), and ivbrollmeforward().
int ivbexit | ( | const int | ihandle | ) |
Definition at line 290 of file vblocking.c.
References DICTNODE::ctransnumber, cvbnodetmp, DICTINFO::iindexhandle, DICTINFO::iisdictlocked, DICTINFO::inkeys, inl_ldquad(), inl_stquad(), DICTINFO::iopenmode, iserrno, ivbblockwrite(), IVBBUFFERLEVEL, ivblock(), NULL, VBKEY::pschild, VBTREE::pskeycurr, DICTINFO::pskeycurr, VBTREE::pskeyfirst, VBKEY::psnext, VBKEY::psparent, VBTREE::psparent, psvbfile, DICTINFO::sdictnode, DICTINFO::ttranslast, VB_NODE_MAX, VB_OFFLEN_3F, VBUNLOCK, and vvbtreeallfree().
Referenced by ircvinsert(), isaddindex(), ischeck(), isdelcurr(), isdelete(), isdelindex(), isdelrec(), isindexinfo(), isopen(), isread(), isrewcurr(), isrewrec(), isrewrite(), isrollback(), issetunique(), isstart(), isuniqueid(), iswrcurr(), iswrite(), ivbenter(), ivbrollmeback(), and ivbrollmeforward().
int ivbfileopenlock | ( | const int | ihandle, |
const int | imode | ||
) |
Definition at line 380 of file vblocking.c.
References cvbnodetmp, DICTINFO::iindexhandle, ivbblockread(), ivblock(), ivbmaxusedhandle, psvbfile, DICTINFO::sdictnode, unlikely, VB_NODE_MAX, VB_OFFLEN_7F, VBRDLOCK, VBUNLOCK, and VBWRLOCK.
Referenced by ircvcreateindex(), ircvdeleteindex(), isbuild(), and isopen().
int ivbforcedataallocate | ( | const int | ihandle, |
const off_t | trownumber | ||
) |
Definition at line 355 of file vbindexio.c.
References DICTNODE::cdatacount, DICTNODE::cdatafree, cvbnodetmp, DICTINFO::iisdictlocked, inl_ldint(), inl_ldquad(), inl_stint(), inl_stquad(), DICTINFO::inodesize, iserrno, ivbblockread(), ivbblockwrite(), ivbdatafree(), ivbnodefree(), psvbfile, QUADSIZE, and DICTINFO::sdictnode.
Referenced by ircvinsert(), and ivbrollmeback().
int ivbforceexit | ( | const int | ihandle | ) |
Definition at line 50 of file isopen.c.
References cvbnodetmp, DICTINFO::iisdictlocked, iserrno, ivbblockwrite(), psvbfile, DICTINFO::sdictnode, and VB_NODE_MAX.
Referenced by isclose().
int ivbkeycompare | ( | const int | ihandle, |
const int | ikeynumber, | ||
int | ilength, | ||
unsigned char * | pckey1, | ||
unsigned char * | pckey2 | ||
) |
Definition at line 230 of file vbkeysio.c.
References inl_ldint(), inl_ldlong(), inl_ldquad(), lddbl(), ldfloat(), DICTINFO::pskeydesc, psvbfile, and QUADSIZE.
Referenced by ichecktree(), itreeload(), and ivbkeylocaterow().
int ivbkeydelete | ( | const int | ihandle, |
const int | ikeynumber | ||
) |
Definition at line 777 of file vbkeysio.c.
References VBKEY::iisdummy, VBTREE::iiseof, VBKEY::iishigh, VBTREE::iisroot, VBTREE::iistof, VBTREE::ikeysinnode, VBTREE::ilevel, ivbnodefree(), ivbnodeload(), ivbnodesave(), NULL, VBKEY::pschild, VBTREE::pskeycurr, DICTINFO::pskeycurr, DICTINFO::pskeydesc, VBTREE::pskeyfirst, VBTREE::pskeylist, VBKEY::psnext, VBKEY::psparent, VBTREE::psparent, VBKEY::psprev, DICTINFO::pstree, psvbfile, VBKEY::tdupnumber, VBTREE::tnodenumber, VBKEY::trownode, vvbkeyfree(), and vvbtreeallfree().
Referenced by irowdelete(), and irowupdate().
int ivbkeyinsert | ( | const int | ihandle, |
struct VBTREE * | pstree, | ||
const int | ikeynumber, | ||
unsigned char * | pckeyvalue, | ||
off_t | trownode, | ||
off_t | tdupnumber, | ||
struct VBTREE * | pschild | ||
) |
Definition at line 727 of file vbkeysio.c.
References VBKEY::ckey, VBKEY::iisnew, VBTREE::ikeysinnode, ivbnodesave(), VBKEY::pschild, VBTREE::pskeycurr, DICTINFO::pskeycurr, DICTINFO::pskeydesc, VBTREE::pskeyfirst, VBTREE::pskeylist, VBKEY::psnext, VBKEY::psparent, VBKEY::psprev, psvbfile, psvbkeyallocate(), VBKEY::tdupnumber, VBTREE::tnodenumber, and VBKEY::trownode.
Referenced by imakekeysfromdata(), inodesplit(), irowinsert(), irowupdate(), and vaddkeyforrow().
int ivbkeyload | ( | const int | ihandle, |
const int | ikeynumber, | ||
const int | imode, | ||
const int | isetcurr, | ||
struct VBKEY ** | ppskey | ||
) |
Definition at line 503 of file vbkeysio.c.
References DICTINFO::iindexchanged, VBKEY::iisdummy, VBTREE::iiseof, VBTREE::iistof, VBTREE::ilevel, ivbnodeload(), NULL, VBKEY::pschild, VBTREE::pskeycurr, DICTINFO::pskeycurr, VBTREE::pskeyfirst, VBTREE::pskeylast, VBKEY::psnext, VBKEY::psparent, VBTREE::psparent, VBKEY::psprev, psvbfile, psvbtreeallocate(), VBKEY::trownode, and vvbtreeallfree().
Referenced by imakekeysfromdata(), irowinsert(), irowupdate(), isread(), isstart(), ivbkeylocaterow(), ivbkeysearch(), and vaddkeyforrow().
int ivbkeylocaterow | ( | const int | ihandle, |
const int | ikeynumber, | ||
off_t | trownumber | ||
) |
Definition at line 435 of file vbkeysio.c.
References VBKEY::ckey, iserrno, ivbkeycompare(), ivbkeyload(), ivbkeysearch(), DICTINFO::ppcrowbuffer, VBKEY::pschild, VBTREE::pskeycurr, DICTINFO::pskeycurr, DICTINFO::pskeydesc, VBTREE::pskeyfirst, VBKEY::psnext, VBKEY::psparent, VBTREE::psparent, psvbfile, VBKEY::trownode, and vvbmakekey().
Referenced by irowdelete(), irowupdate(), and isread().
int ivbkeysearch | ( | const int | ihandle, |
const int | imode, | ||
const int | ikeynumber, | ||
int | ilength, | ||
unsigned char * | pckeyvalue, | ||
off_t | tdupnumber | ||
) |
Definition at line 372 of file vbkeysio.c.
References iserrno, itreeload(), ivbkeyload(), DICTINFO::pskeydesc, psvbfile, VB_MAX_OFF_T, and vvbkeyvalueset().
Referenced by imakekeysfromdata(), irowinsert(), irowupdate(), isdelete(), isread(), isrewrite(), isstart(), ivbkeylocaterow(), and vaddkeyforrow().
int ivblock | ( | const int | ihandle, |
const off_t | toffset, | ||
const off_t | tlength, | ||
const int | imode | ||
) |
Definition at line 197 of file vblowlevel.c.
References svbfile, VBRDLCKW, VBRDLOCK, VBUNLOCK, VBWRLCKW, and VBWRLOCK.
Referenced by ivbdatalock(), ivbenter(), ivbexit(), ivbfileopenlock(), and iwritetrans().
int ivbnodefree | ( | const int | ihandle, |
const off_t | tnodenumber | ||
) |
Definition at line 67 of file vbindexio.c.
References DICTNODE::cnodefree, cvbnodetmp, DICTINFO::iisdictlocked, inl_ldint(), inl_ldquad(), inl_stint(), inl_stquad(), DICTINFO::inodesize, iserrno, ivbblockread(), ivbblockwrite(), psvbfile, QUADSIZE, DICTINFO::sdictnode, and VB_NODE_MAX.
Referenced by idelnodes(), ivbforcedataallocate(), ivbkeydelete(), ivbvarlendelete(), tvbdataallocate(), and vrebuildindexfree().
int ivbnodeload | ( | const int | ihandle, |
const int | ikeynumber, | ||
struct VBTREE * | pstree, | ||
const off_t | tnodenumber, | ||
const int | iprevlvl | ||
) |
Definition at line 285 of file vbnodememio.c.
References VBKEY::ckey, cvbnodetmp, VBKEY::iisdummy, VBKEY::iishigh, VBTREE::ikeysinnode, VBTREE::ilevel, inl_ldint(), inl_ldquad(), DICTINFO::inodesize, ivbblockread(), NULL, VBKEY::pschild, VBTREE::pskeycurr, DICTINFO::pskeydesc, VBTREE::pskeyfirst, VBTREE::pskeylast, VBTREE::pskeylist, VBKEY::psnext, VBKEY::psparent, VBKEY::psprev, psvbfile, psvbkeyallocate(), QUADSIZE, TCC, VBKEY::tdupnumber, VBTREE::tnodenumber, VBKEY::trownode, VBTREE::ttransnumber, vvbkeyfree(), vvbkeyvalueset(), and vvbtreeallfree().
Referenced by ichecktree(), itreeload(), ivbkeydelete(), and ivbkeyload().
int ivbnodesave | ( | const int | ihandle, |
const int | ikeynumber, | ||
struct VBTREE * | pstree, | ||
const off_t | tnodenumber, | ||
const int | imode, | ||
const int | iposn | ||
) |
Definition at line 416 of file vbnodememio.c.
References VBKEY::ckey, DICTNODE::ctransnumber, cvbnodetmp, VBKEY::iisdummy, VBKEY::iishigh, VBKEY::iisnew, VBTREE::ikeysinnode, VBTREE::ilevel, inl_ldquad(), inl_stint(), inl_stquad(), DICTINFO::inodesize, inodesplit(), iquicknodesave(), ivbblockwrite(), NULL, DICTINFO::pskeydesc, VBTREE::pskeyfirst, VBTREE::pskeylast, VBTREE::pskeylist, VBKEY::psnext, VBKEY::psprev, psvbfile, QUADSIZE, DICTINFO::sdictnode, TCC, VBKEY::tdupnumber, VBKEY::trownode, and VB_NODE_MAX.
Referenced by inewroot(), inodesplit(), ivbkeydelete(), and ivbkeyinsert().
int ivbopen | ( | const char * | pcfilename, |
const int | iflags, | ||
const mode_t | tmode | ||
) |
Definition at line 32 of file vblowlevel.c.
References VBFILE::ihandle, iinitialized, VBFILE::irefcount, O_BINARY, svbfile, VBFILE::tdevice, VBFILE::tinode, and VB_MAX_FILES.
Referenced by isbuild(), islogopen(), and isopen().
int ivbtransbuild | ( | const char * | pcfilename, |
const int | iminrowlen, | ||
const int | imaxrowlen, | ||
struct keydesc * | pskeydesc, | ||
const int | imode | ||
) |
Definition at line 599 of file istrans.c.
References cvbtransbuffer, inl_stint(), iserrno, ivbintrans, ivblogfilehandle, iwritebegin(), iwritetrans(), VBBEGIN, VBL_BUILD, VBNEEDFLUSH, and vtranshdr().
Referenced by isbuild().
int ivbtransclose | ( | const int | ihandle, |
const char * | pcfilename | ||
) |
Definition at line 806 of file istrans.c.
References cvbtransbuffer, inl_stint(), DICTINFO::iopenmode, iserrno, DICTINFO::itransyet, ivbintrans, iwritebegin(), iwritetrans(), psvbfile, VBBEGIN, VBL_FILECLOSE, VBROLLBACK, and vtranshdr().
Referenced by ivbclose2().
int ivbtranscluster | ( | void | ) |
int ivbtranscreateindex | ( | const int | ihandle, |
struct keydesc * | pskeydesc | ||
) |
Definition at line 648 of file istrans.c.
References cvbtransbuffer, inl_stint(), iserrno, ivbintrans, ivblogfilehandle, iwritebegin(), iwritetrans(), psvbfile, VBBEGIN, VBL_CREINDEX, VBNEEDFLUSH, and vtranshdr().
Referenced by isaddindex().
int ivbtransdelete | ( | const int | ihandle, |
off_t | trownumber, | ||
int | irowlength | ||
) |
Definition at line 698 of file istrans.c.
References DICTINFO::cfilename, cvbtransbuffer, inl_stint(), inl_stquad(), DICTINFO::iopenmode, iserrno, DICTINFO::itransyet, ivbintrans, ivbtransopen(), iwritebegin(), iwritetrans(), DICTINFO::ppcrowbuffer, psvbfile, QUADSIZE, VBBEGIN, VBL_DELETE, VBNEEDFLUSH, and vtranshdr().
Referenced by iprocessdelete().
int ivbtransdeleteindex | ( | const int | ihandle, |
struct keydesc * | pskeydesc | ||
) |
Definition at line 734 of file istrans.c.
References cvbtransbuffer, inl_stint(), iserrno, ivbintrans, ivblogfilehandle, iwritebegin(), iwritetrans(), psvbfile, VBBEGIN, VBL_DELINDEX, VBNEEDFLUSH, and vtranshdr().
Referenced by isdelindex().
int ivbtranserase | ( | const char * | pcfilename | ) |
Definition at line 777 of file istrans.c.
References cvbtransbuffer, iserrno, ivbintrans, ivblogfilehandle, iwritebegin(), iwritetrans(), VBBEGIN, VBL_FILEERASE, VBNEEDFLUSH, and vtranshdr().
Referenced by iserase().
int ivbtransinsert | ( | const int | ihandle, |
const off_t | trownumber, | ||
int | irowlength, | ||
char * | pcrow | ||
) |
Definition at line 878 of file istrans.c.
References DICTINFO::cfilename, cvbtransbuffer, inl_stint(), inl_stquad(), DICTINFO::iopenmode, iserrno, DICTINFO::itransyet, ivbintrans, ivbtransopen(), iwritebegin(), iwritetrans(), psvbfile, QUADSIZE, VBBEGIN, VBL_INSERT, VBNEEDFLUSH, and vtranshdr().
Referenced by ivbwriterow().
int ivbtransopen | ( | const int | ihandle, |
const char * | pcfilename | ||
) |
Definition at line 843 of file istrans.c.
References cvbtransbuffer, inl_stint(), DICTINFO::iopenmode, iserrno, DICTINFO::itransyet, ivbintrans, iwritebegin(), iwritetrans(), psvbfile, VBBEGIN, VBL_FILEOPEN, VBNEEDFLUSH, and vtranshdr().
Referenced by isopen(), ivbtransdelete(), ivbtransinsert(), ivbtranssetunique(), ivbtransuniqueid(), and ivbtransupdate().
int ivbtransrename | ( | char * | pcoldname, |
char * | pcnewname | ||
) |
Definition at line 914 of file istrans.c.
References cvbtransbuffer, inl_stint(), iserrno, ivbintrans, ivblogfilehandle, iwritebegin(), iwritetrans(), VBBEGIN, VBL_RENAME, VBNEEDFLUSH, and vtranshdr().
Referenced by isrename().
int ivbtranssetunique | ( | const int | ihandle, |
const off_t | tuniqueid | ||
) |
Definition at line 948 of file istrans.c.
References DICTINFO::cfilename, cvbtransbuffer, inl_stint(), inl_stquad(), DICTINFO::iopenmode, iserrno, DICTINFO::itransyet, ivbintrans, ivbtransopen(), iwritebegin(), iwritetrans(), psvbfile, QUADSIZE, VBBEGIN, VBL_SETUNIQUE, VBNEEDFLUSH, and vtranshdr().
Referenced by issetunique().
int ivbtransuniqueid | ( | const int | ihandle, |
const off_t | tuniqueid | ||
) |
Definition at line 981 of file istrans.c.
References DICTINFO::cfilename, cvbtransbuffer, inl_stint(), inl_stquad(), DICTINFO::iopenmode, iserrno, DICTINFO::itransyet, ivbintrans, ivblogfilehandle, ivbtransopen(), iwritebegin(), iwritetrans(), psvbfile, QUADSIZE, VBBEGIN, VBL_UNIQUEID, VBNEEDFLUSH, and vtranshdr().
Referenced by isuniqueid().
int ivbtransupdate | ( | const int | ihandle, |
const off_t | trownumber, | ||
const int | ioldrowlen, | ||
const int | inewrowlen, | ||
const char * | pcrow | ||
) |
Definition at line 1014 of file istrans.c.
References DICTINFO::cfilename, cvbtransbuffer, inl_stint(), inl_stquad(), DICTINFO::iopenmode, iserrno, DICTINFO::itransyet, ivbintrans, ivblogfilehandle, ivbtransopen(), iwritebegin(), iwritetrans(), DICTINFO::ppcrowbuffer, psvbfile, QUADSIZE, VBBEGIN, VBL_UPDATE, VBNEEDFLUSH, and vtranshdr().
Referenced by isrewcurr(), isrewrec(), and isrewrite().
int ivbwriterow | ( | const int | ihandle, |
char * | pcrow, | ||
const off_t | trownumber | ||
) |
Definition at line 85 of file iswrite.c.
References DICTINFO::iminrowlength, DICTINFO::iopenmode, irowinsert(), iserrno, isreclen, isrecnum, ivbdatalock(), ivbdatawrite(), ivbtransinsert(), psvbfile, DICTINFO::trownumber, DICTINFO::tvarlennode, VBUNLOCK, and VBWRLOCK.
Referenced by ircvinsert(), iswrcurr(), iswrite(), and ivbrollmeback().
struct VBKEY* psvbkeyallocate | ( | const int | ihandle, |
const int | ikeynumber | ||
) |
Definition at line 120 of file vbmemio.c.
References NULL, DICTINFO::pskeydesc, DICTINFO::pskeyfree, VBKEY::psnext, psvbfile, pvvbmalloc(), VBKEY::trownode, and vb_error.
Referenced by inodesplit(), ivbkeyinsert(), and ivbnodeload().
struct VBLOCK* psvblockallocate | ( | const int | ihandle | ) |
Definition at line 67 of file vbmemio.c.
References NULL, pslockfree, VBLOCK::psnext, and pvvbmalloc().
Referenced by ilockinsert().
struct VBTREE* psvbtreeallocate | ( | const int | ihandle | ) |
Definition at line 88 of file vbmemio.c.
References NULL, VBTREE::psnext, pstreefree, pvvbmalloc(), VBTREE::tnodenumber, and vb_error.
Referenced by inodesplit(), itreeload(), and ivbkeyload().
void* pvvbmalloc | ( | const size_t | size | ) |
Definition at line 45 of file vbmemio.c.
References unlikely.
Referenced by ipreamble(), iprocessdelete(), ircvbegin(), ircvchecktrans(), ircvfileopen(), isaddindex(), isbuild(), isdi_kdsc(), isopen(), isrecover(), psvbkeyallocate(), psvblockallocate(), and psvbtreeallocate().
off_t tvbdataallocate | ( | const int | ihandle | ) |
Definition at line 284 of file vbindexio.c.
References DICTNODE::cdatafree, cvbnodetmp, DICTINFO::iisdictlocked, inl_ldint(), inl_ldquad(), inl_stint(), inl_stquad(), DICTINFO::inodesize, iserrno, ivbblockread(), ivbblockwrite(), ivbnodefree(), psvbfile, QUADSIZE, DICTINFO::sdictnode, and tvbdatacountgetnext().
Referenced by iswrcurr(), and iswrite().
off_t tvblseek | ( | const int | ihandle, |
off_t | toffset, | ||
const int | iwhence | ||
) |
Definition at line 107 of file vblowlevel.c.
References svbfile, and unlikely.
Referenced by ircvchecktrans(), iscommit(), isrecover(), isrollback(), ivbblockread(), ivbblockwrite(), ivbdataread(), ivbdatawrite(), ivbrollmeback(), ivbrollmeforward(), and iwritetrans().
off_t tvbnodeallocate | ( | const int | ihandle | ) |
Definition at line 221 of file vbindexio.c.
References DICTNODE::cnodefree, cvbnodetmp, DICTINFO::iisdictlocked, inl_ldint(), inl_ldquad(), inl_stint(), inl_stquad(), DICTINFO::inodesize, iserrno, ivbblockread(), ivbblockwrite(), psvbfile, QUADSIZE, DICTINFO::sdictnode, and tvbnodecountgetnext().
Referenced by inodesplit(), and ivbdatafree().
off_t tvbnodecountgetnext | ( | const int | ihandle | ) |
Definition at line 48 of file vbindexio.c.
References DICTNODE::cnodecount, DICTINFO::iisdictlocked, inl_ldquad(), inl_stquad(), iserrno, psvbfile, and DICTINFO::sdictnode.
Referenced by iaddkeydescriptor(), ivbvarlenwrite(), ttailnode(), and tvbnodeallocate().
ssize_t tvbread | ( | const int | ihandle, |
void * | pvbuffer, | ||
const size_t | tcount | ||
) |
Definition at line 117 of file vblowlevel.c.
References svbfile, and unlikely.
Referenced by ircvchecktrans(), isrecover(), ivbblockread(), ivbdataread(), ivbrollmeback(), and ivbrollmeforward().
ssize_t tvbwrite | ( | const int | ihandle, |
const void * | pvbuffer, | ||
const size_t | tcount | ||
) |
Definition at line 127 of file vblowlevel.c.
References svbfile, and unlikely.
Referenced by ivbblockwrite(), ivbdatawrite(), and iwritetrans().
void vvbfree | ( | void * | mptr | ) |
Definition at line 59 of file vbmemio.c.
Referenced by ipostamble(), ircvcommit(), ircvfileopen(), ircvrollback(), isbuild(), isdelindex(), isopen(), isrecover(), ivbclose3(), and vvbkeyunmalloc().
void vvbkeyallfree | ( | const int | ihandle, |
const int | ikeynumber, | ||
struct VBTREE * | pstree | ||
) |
Definition at line 143 of file vbmemio.c.
References VBTREE::ikeysinnode, NULL, VBKEY::pschild, VBTREE::pskeycurr, VBTREE::pskeyfirst, DICTINFO::pskeyfree, VBTREE::pskeylast, VBKEY::psnext, psvbfile, VBKEY::trownode, vb_error, and vvbtreeallfree().
Referenced by ichecktree(), and vvbtreeallfree().
void vvbkeyfree | ( | const int | ihandle, |
const int | ikeynumber, | ||
struct VBKEY * | pskey | ||
) |
Definition at line 172 of file vbmemio.c.
References NULL, VBKEY::pschild, DICTINFO::pskeyfree, VBKEY::psnext, VBKEY::psprev, psvbfile, VBKEY::trownode, vb_error, and vvbtreeallfree().
Referenced by ivbkeydelete(), and ivbnodeload().
void vvbkeyunmalloc | ( | const int | ihandle, |
const int | ikeynumber | ||
) |
Definition at line 196 of file vbmemio.c.
References DICTINFO::pskeyfree, VBKEY::psnext, psvbfile, and vvbfree().
Referenced by isdelindex(), and ivbclose3().
void vvbkeyvalueset | ( | const int | ihigh, |
struct keydesc * | pskeydesc, | ||
unsigned char * | pckeyvalue | ||
) |
Definition at line 659 of file vbkeysio.c.
References inl_stint(), inl_stlong(), QUADSIZE, stdbl(), and stfloat().
Referenced by inewroot(), ivbkeysearch(), and ivbnodeload().
void vvblockfree | ( | struct VBLOCK * | pslock | ) |
Definition at line 81 of file vbmemio.c.
References pslockfree, and VBLOCK::psnext.
Referenced by ilockdelete(), and ivbclose2().
void vvbmakekey | ( | const struct keydesc * | pskeydesc, |
char * | pcrow_buffer, | ||
unsigned char * | pckeyvalue | ||
) |
Definition at line 212 of file vbkeysio.c.
Referenced by imakekeysfromdata(), irowinsert(), irowupdate(), isdelete(), isread(), isrewrite(), isstart(), ivbkeylocaterow(), and vaddkeyforrow().
void vvbtreeallfree | ( | const int | ihandle, |
const int | ikeynumber, | ||
struct VBTREE * | pstree | ||
) |
Definition at line 105 of file vbmemio.c.
References VBTREE::psnext, pstreefree, VBTREE::tnodenumber, vb_error, and vvbkeyallfree().
Referenced by iindexcheck(), isdelindex(), itreeload(), ivbclose3(), ivbenter(), ivbexit(), ivbkeydelete(), ivbkeyload(), ivbnodeload(), vvbkeyallfree(), and vvbkeyfree().
void vvbunmalloc | ( | void | ) |
int ivbintrans |
Definition at line 23 of file istrans.c.
Referenced by iprocessdelete(), isbegin(), isclose(), iscommit(), islogclose(), isopen(), isrecover(), isrelcurr(), isrelease(), isrollback(), ivbenter(), ivbtransbuild(), ivbtransclose(), ivbtranscreateindex(), ivbtransdelete(), ivbtransdeleteindex(), ivbtranserase(), ivbtransinsert(), ivbtransopen(), ivbtransrename(), ivbtranssetunique(), ivbtransuniqueid(), ivbtransupdate(), and iwritetrans().
int ivblogfilehandle |
Definition at line 24 of file istrans.c.
Referenced by ircvchecktrans(), isbegin(), iscleanup(), iscommit(), islogclose(), islogopen(), isopen(), isrecover(), isrollback(), ivbrollmeback(), ivbrollmeforward(), ivbtransbuild(), ivbtranscreateindex(), ivbtransdeleteindex(), ivbtranserase(), ivbtransrename(), ivbtransuniqueid(), ivbtransupdate(), and iwritetrans().
int ivbmaxusedhandle |
Definition at line 26 of file vblocking.c.
Referenced by idemotelocks(), isaudit(), isbuild(), iscleanup(), isclose(), iscluster(), iscommit(), isdi_curidx(), isdi_datfd(), isdi_datlen(), isdi_idxfd(), isdi_kdsc(), isdi_name(), iserase(), isflush(), isfullclose(), isindexinfo(), islock(), isopen(), isrelcurr(), isrelease(), isrelrec(), isrollback(), issetcollate(), isunlock(), ivbdatalock(), ivbdataread(), ivbdatawrite(), ivbenter(), and ivbfileopenlock().
struct DICTINFO* psvbfile[128+1] |
Definition at line 23 of file vblowlevel.c.
Referenced by iaddkeydescriptor(), icheckkey(), icheckkeydesc(), idatafreecheck(), idelnodes(), idemotelocks(), iindexcheck(), iindexfreecheck(), ilockdelete(), ilockinsert(), imakekeysfromdata(), inewroot(), inodesplit(), ipostamble(), ipreamble(), iprocessdelete(), iquicknodesave(), ircvcreateindex(), ircvdeleteindex(), ircvinsert(), ircvuniqueid(), irowdelete(), irowinsert(), irowupdate(), isaddindex(), isbuild(), ischeck(), iscleanup(), isclose(), iscommit(), isdelcurr(), isdelete(), isdelindex(), isdelrec(), isdi_curidx(), isdi_datfd(), isdi_datlen(), isdi_idxfd(), isdi_kdsc(), isdi_name(), iserase(), isflush(), isindexinfo(), islock(), isopen(), isread(), isrecover(), isrelcurr(), isrelease(), isrelrec(), isrewcurr(), isrewrec(), isrewrite(), isrollback(), issetcollate(), issetunique(), isstart(), istartrownumber(), isuniqueid(), isunlock(), iswrcurr(), iswrite(), itreeload(), ivbcheckkey(), ivbclose2(), ivbclose3(), ivbdatafree(), ivbdatalock(), ivbdataread(), ivbdatawrite(), ivbenter(), ivbexit(), ivbfileopenlock(), ivbforcedataallocate(), ivbforceexit(), ivbkeycompare(), ivbkeydelete(), ivbkeyinsert(), ivbkeyload(), ivbkeylocaterow(), ivbkeysearch(), ivbnodefree(), ivbnodeload(), ivbnodesave(), ivbrollmeback(), ivbrollmeforward(), ivbtransclose(), ivbtranscreateindex(), ivbtransdelete(), ivbtransdeleteindex(), ivbtransinsert(), ivbtransopen(), ivbtranssetunique(), ivbtransuniqueid(), ivbtransupdate(), ivbvarlendelete(), ivbvarlenread(), ivbvarlenwrite(), ivbwriterow(), psvbkeyallocate(), tdelkeydescriptor(), ttailnode(), tvbdataallocate(), tvbdatacountgetnext(), tvbnodeallocate(), tvbnodecountgetnext(), vaddkeyforrow(), vcloseall(), vrebuildindexfree(), vvbkeyallfree(), vvbkeyfree(), and vvbkeyunmalloc().
struct VBFILE svbfile[128 *3] |
Definition at line 24 of file vblowlevel.c.
Referenced by ilockdelete(), ilockinsert(), ipreamble(), ivbclose(), ivbclose2(), ivbdatalock(), ivblock(), ivbopen(), tvblseek(), tvbread(), and tvbwrite().