50 sprintf (cbuffer,
"%s.idx", pcfilename);
52 sprintf (cbuffer,
"%s.dat", pcfilename);
67 if (!psvbptr || psvbptr->
iisopen) {
90 if (!psvbptr || psvbptr->
iisopen) {
107 if (!psvbptr || psvbptr->
iisopen) {
135 if (!psvbptr || psvbptr->
iisopen) {
156 if (!psvbptr || psvbptr->
iisopen) {
171 char cbuffer[2][1024];
173 sprintf (cbuffer[0],
"%s.idx", pcoldname);
174 sprintf (cbuffer[1],
"%s.idx", pcnewname);
175 iresult = rename (cbuffer[0], cbuffer[1]);
179 sprintf (cbuffer[0],
"%s.dat", pcoldname);
180 sprintf (cbuffer[1],
"%s.dat", pcnewname);
181 iresult = rename (cbuffer[0], cbuffer[1]);
183 sprintf (cbuffer[0],
"%s.idx", pcoldname);
184 sprintf (cbuffer[1],
"%s.idx", pcnewname);
185 rename (cbuffer[1], cbuffer[0]);
199 int iresult, iresult2;
211 if (tuniqueid > tvalue) {
251 *ptuniqueid = tvalue;
265 if (!psvbptr || psvbptr->
iisopen) {
282 if (!psvbptr || psvbptr->
iisopen) {
299 if (!psvbptr || psvbptr->
iisopen) {
316 if (!psvbptr || psvbptr->
iisopen) {
333 if (!psvbptr || psvbptr->
iisopen) {
350 if (!psvbptr || psvbptr->
iisopen) {
361 struct keydesc *keydptr;
368 if (!psvbptr || psvbptr->
iisopen) {
372 keydptr =
pvvbmalloc (
sizeof(
struct keydesc));
375 sizeof(
struct keydesc));
381 ldchar (
char *pcsource,
int ilength,
char *pcdestination)
385 memcpy ((
void *)pcdestination, (
void *)pcsource, (
size_t)ilength);
386 for (pcdst = pcdestination + ilength - 1; pcdst >= (
char *)pcdestination; pcdst--) {
397 stchar (
char *pcsource,
char *pcdestination,
int ilength)
403 pcdst = pcdestination;
404 for (icount = ilength; icount && *pcsrc; icount--, pcsrc++, pcdst++) {
407 for (; icount; icount--, pcdst++) {
415 #ifndef WORDS_BIGENDIAN
416 return (
int)
VB_BSWAP_16 (*(
unsigned short *)pclocation);
419 unsigned char *pctemp = (
unsigned char *)&ivalue;
420 unsigned char *pctemp2 = (
unsigned char *)pclocation;
422 *(pctemp + 0) = *(pctemp2 + 0);
423 *(pctemp + 1) = *(pctemp2 + 1);
429 stint (
int ivalue,
void *pclocation)
431 #ifndef WORDS_BIGENDIAN
432 *(
unsigned short *)pclocation =
VB_BSWAP_16 ((
unsigned short)ivalue);
434 unsigned char *pctemp = (
unsigned char *)&ivalue;
436 *((
unsigned char *)pclocation + 0) = *(pctemp + 0 + INTSIZE);
437 *((
unsigned char *)pclocation + 1) = *(pctemp + 1 + INTSIZE);
444 #ifndef WORDS_BIGENDIAN
449 memcpy ((
unsigned char *)&lvalue, (
unsigned char *)pclocation, 4);
457 #ifndef WORDS_BIGENDIAN
458 *(
unsigned int *)pclocation =
VB_BSWAP_32 ((
unsigned int)lvalue);
460 memcpy ((
unsigned char *)pclocation, (
unsigned char *)&lvalue, 4);
470 memcpy (&ffloat, pclocation, FLOATSIZE);
472 return (
double)ddouble;
481 memcpy (pcdestination, &ffloat, FLOATSIZE);
491 return (
double)dvalue;
495 stfltnull (
double dsource,
void *pcdestination,
int inullflag)
500 stfloat (dsource, pcdestination);
508 memcpy (&ddouble, pclocation, DOUBLESIZE);
513 stdbl (
double dsource,
void *pcdestination)
515 memcpy (pcdestination, &dsource, DOUBLESIZE);
522 return (
lddbl (pclocation));
526 stdblnull (
double dsource,
void *pcdestination,
int inullflag)
531 stdbl (dsource, pcdestination);
int isdi_curidx(const int ihandle)
int ivbtranserase(const char *pcfilename)
int isdi_idxfd(const int ihandle)
void ldchar(char *pcsource, int ilength, char *pcdestination)
int ivbtranssetunique(const int ihandle, const off_t tuniqueid)
int islock(const int ihandle)
double lddblnull(void *pclocation, short *pinullflag)
void stdbl(double dsource, void *pcdestination)
int isrelcurr(const int ihandle)
void stlong(int lvalue, void *pclocation)
int isrename(char *pcoldname, char *pcnewname)
int isuniqueid(const int ihandle, long long *ptuniqueid)
int isrelrec(const int ihandle, const long long trownumber)
void stdblnull(double dsource, void *pcdestination, int inullflag)
int iserase(char *pcfilename)
int ivbenter(const int ihandle, const unsigned int imodifying, const unsigned int ispecial)
int ivbtransrename(char *pcoldname, char *pcnewname)
int isdi_datfd(const int ihandle)
void ivbclose3(const int ihandle)
struct keydesc * isdi_kdsc(const int ihandle)
double ldfltnull(void *pclocation, short *pinullflag)
void stchar(char *pcsource, char *pcdestination, int ilength)
int isunlock(const int ihandle)
void stfloat(double dsource, void *pcdestination)
unsigned char iisdictlocked
EC ARGUMENT EC EC BOUND EC BOUND EC BOUND EC BOUND TABLE EC DATA EC DATA EC DATA PTR NULL
double lddbl(void *pclocation)
int ivbdatalock(const int ihandle, const int imode, const off_t trownumber)
struct DICTNODE sdictnode
int ivbtransuniqueid(const int ihandle, const off_t tuniqueid)
void stfltnull(double dsource, void *pcdestination, int inullflag)
char * isdi_name(const int ihandle)
void * pvvbmalloc(const size_t size)
double ldfloat(void *pclocation)
int ldlong(void *pclocation)
struct DICTINFO * psvbfile[128+1]
int issetunique(const int ihandle, const long long tuniqueid)
int iscluster(const int ihandle, struct keydesc *pskeydesc)
int ivbexit(const int ihandle)
int isclose(const int ihandle)
static void inl_stquad(off_t tvalue, void *pclocation)
int isflush(const int ihandle)
int isdi_datlen(const int ihandle)
int ldint(void *pclocation)
void stint(int ivalue, void *pclocation)
struct keydesc * pskeydesc[32]
static off_t inl_ldquad(void *pclocation)
int isrelease(const int ihandle)