GnuCOBOL
2.0
A free COBOL compiler
|
#include "isinternal.h"
Go to the source code of this file.
Functions | |
static void | vinitpiduid (void) |
static void | vtranshdr (const char *pctranstype) |
static int | iwritetrans (int itranslength, const int irollback) |
static int | iwritebegin (void) |
static int | idemotelocks (void) |
static int | ivbrollmeback (off_t toffset, const int iinrecover) |
static int | ivbrollmeforward (off_t toffset) |
int | isbegin (void) |
int | iscommit (void) |
int | islogclose (void) |
int | islogopen (const char *pcfilename) |
int | isrollback (void) |
int | ivbtransbuild (const char *pcfilename, const int iminrowlen, const int imaxrowlen, struct keydesc *pskeydesc, const int imode) |
int | ivbtranscreateindex (int const ihandle, struct keydesc *pskeydesc) |
int | ivbtranscluster () |
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) |
Variables | |
int | ivbintrans = 0 |
int | ivblogfilehandle = -1 |
static struct SLOGHDR * | psvblogheader |
static pid_t | tvbpid |
static uid_t | tvbuid |
static char | cvbtransbuffer [65536] |
|
static |
Definition at line 167 of file istrans.c.
References DICTINFO::iisdatalocked, DICTINFO::iisopen, DICTINFO::iopenmode, iserrno, ivbdatalock(), ivbmaxusedhandle, psvbfile, and VBUNLOCK.
Referenced by iscommit(), and isrollback().
int isbegin | ( | void | ) |
Definition at line 448 of file istrans.c.
References iserrno, ivbintrans, ivblogfilehandle, and VBBEGIN.
int iscommit | ( | void | ) |
Definition at line 463 of file istrans.c.
References idemotelocks(), DICTINFO::iisopen, iserrno, ivbclose2(), ivbintrans, ivblogfilehandle, ivbmaxusedhandle, ivbrollmeforward(), iwritetrans(), psvbfile, tvblseek(), VBBEGIN, VBCOMMIT, VBL_COMMIT, VBNOTRANS, vinitpiduid(), and vtranshdr().
int islogclose | ( | void | ) |
Definition at line 509 of file istrans.c.
References iserrno, isrollback(), ivbclose(), ivbintrans, ivblogfilehandle, VBNEEDFLUSH, and VBNOTRANS.
Referenced by iscleanup(), and islogopen().
int islogopen | ( | const char * | pcfilename | ) |
Definition at line 529 of file istrans.c.
References iserrno, islogclose(), ivblogfilehandle, ivbopen(), and O_BINARY.
int isrollback | ( | void | ) |
Definition at line 543 of file istrans.c.
References idemotelocks(), DICTINFO::iisdictlocked, DICTINFO::iisopen, iserrno, ivbclose2(), ivbexit(), ivbintrans, ivblogfilehandle, ivbmaxusedhandle, ivbrollmeback(), iwritetrans(), psvbfile, tvblseek(), VBBEGIN, VBL_ROLLBACK, VBNOTRANS, VBROLLBACK, vinitpiduid(), and vtranshdr().
Referenced by islogclose().
|
static |
Definition at line 195 of file istrans.c.
References SLOGHDR::coperation, SLOGHDR::cpid, cvbtransbuffer, DICTINFO::iisdictlocked, inl_ldint(), inl_ldquad(), isclose(), isdelrec(), iserrno, isopen(), isreclen, isrewrec(), ivbdatafree(), ivbenter(), ivbexit(), ivbforcedataallocate(), ivblogfilehandle, ivbwriterow(), psvbfile, QUADSIZE, DICTINFO::trownumber, tvblseek(), tvbpid, tvbread(), VB_MAX_FILES, VBL_BEGIN, VBL_DELETE, VBL_FILECLOSE, VBL_FILEOPEN, VBL_INSERT, and VBL_UPDATE.
Referenced by isrollback().
|
static |
Definition at line 334 of file istrans.c.
References SLOGHDR::coperation, SLOGHDR::cpid, cvbtransbuffer, DICTINFO::iisdictlocked, inl_ldint(), inl_ldquad(), inl_stquad(), isclose(), isopen(), ivbdatafree(), ivbenter(), ivbexit(), ivblogfilehandle, psvbfile, tvblseek(), tvbpid, tvbread(), VB_MAX_FILES, VBL_BEGIN, VBL_DELETE, VBL_FILECLOSE, VBL_FILEOPEN, and vinitpiduid().
Referenced by iscommit().
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 | ( | int const | 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().
|
static |
Definition at line 136 of file istrans.c.
References iwritetrans(), VBL_BEGIN, and vtranshdr().
Referenced by ivbtransbuild(), ivbtransclose(), ivbtranscreateindex(), ivbtransdelete(), ivbtransdeleteindex(), ivbtranserase(), ivbtransinsert(), ivbtransopen(), ivbtransrename(), ivbtranssetunique(), ivbtransuniqueid(), and ivbtransupdate().
|
static |
Definition at line 89 of file istrans.c.
References SLOGHDR::clastlength, SLOGHDR::clastposn, cvbtransbuffer, inl_stint(), ivbintrans, ivblock(), ivblogfilehandle, tvblseek(), tvbwrite(), VBBEGIN, VBNEEDFLUSH, VBUNLOCK, and VBWRLCKW.
Referenced by iscommit(), isrollback(), ivbtransbuild(), ivbtransclose(), ivbtranscreateindex(), ivbtransdelete(), ivbtransdeleteindex(), ivbtranserase(), ivbtransinsert(), ivbtransopen(), ivbtransrename(), ivbtranssetunique(), ivbtransuniqueid(), ivbtransupdate(), and iwritebegin().
|
static |
Definition at line 34 of file istrans.c.
References iinitialized, tvbpid, and tvbuid.
Referenced by iscommit(), isrollback(), ivbrollmeforward(), and vtranshdr().
|
static |
Definition at line 53 of file istrans.c.
References SLOGHDR::coperation, SLOGHDR::cpid, SLOGHDR::crfu1, SLOGHDR::ctime, SLOGHDR::cuid, cvbtransbuffer, inl_stint(), inl_stlong(), NULL, tvbpid, tvbuid, and vinitpiduid().
Referenced by iscommit(), isrollback(), ivbtransbuild(), ivbtransclose(), ivbtranscreateindex(), ivbtransdelete(), ivbtransdeleteindex(), ivbtranserase(), ivbtransinsert(), ivbtransopen(), ivbtransrename(), ivbtranssetunique(), ivbtransuniqueid(), ivbtransupdate(), and iwritebegin().
|
static |
Definition at line 29 of file istrans.c.
Referenced by ivbrollmeback(), ivbrollmeforward(), ivbtransbuild(), ivbtransclose(), ivbtranscreateindex(), ivbtransdelete(), ivbtransdeleteindex(), ivbtranserase(), ivbtransinsert(), ivbtransopen(), ivbtransrename(), ivbtranssetunique(), ivbtransuniqueid(), ivbtransupdate(), iwritetrans(), and vtranshdr().
int ivbintrans = 0 |
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 = -1 |
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().
|
static |
Definition at line 27 of file istrans.c.
Referenced by ivbrollmeback(), ivbrollmeforward(), vinitpiduid(), and vtranshdr().
|
static |
Definition at line 28 of file istrans.c.
Referenced by vinitpiduid(), and vtranshdr().