Lines Matching refs:conchFile

6942   unixFile *conchFile;         /* Open conch file */  member
7178 unixFile *conchFile = pCtx->conchFile; in proxyBreakConchLock() local
7197 readLen = osPread(conchFile->h, buf, PROXY_MAXCONCHLEN, 0); in proxyBreakConchLock()
7218 robust_close(pFile, conchFile->h, __LINE__); in proxyBreakConchLock()
7219 conchFile->h = fd; in proxyBreakConchLock()
7220 conchFile->openFlags = O_RDWR | O_CREAT; in proxyBreakConchLock()
7238 unixFile *conchFile = pCtx->conchFile; in proxyConchLock() local
7245 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, lockType); in proxyConchLock()
7255 if( osFstat(conchFile->h, &buf) ){ in proxyConchLock()
7274 int len = osPread(conchFile->h, tBuf, PROXY_MAXCONCHLEN, 0); in proxyConchLock()
7296 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, SHARED_LOCK); in proxyConchLock()
7299 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, lockType); in proxyConchLock()
7320 unixFile *conchFile = pCtx->conchFile; in proxyTakeConch() local
7333 OSTRACE(("TAKECONCH %d for %s pid=%d\n", conchFile->h, in proxyTakeConch()
7347 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN); in proxyTakeConch()
7350 storeLastErrno(pFile, conchFile->lastErrno); in proxyTakeConch()
7397 if( (conchFile->openFlags&O_RDWR) == 0 ){ in proxyTakeConch()
7413 futimes(conchFile->h, NULL); in proxyTakeConch()
7415 if( conchFile->pInode && conchFile->pInode->nShared>1 ){ in proxyTakeConch()
7438 robust_ftruncate(conchFile->h, writeSize); in proxyTakeConch()
7439 rc = unixWrite((sqlite3_file *)conchFile, writeBuffer, writeSize, 0); in proxyTakeConch()
7440 full_fsync(conchFile->h,0,0); in proxyTakeConch()
7452 osFchmod(conchFile->h, cmode); in proxyTakeConch()
7455 rc = osFchmod(conchFile->h, cmode); in proxyTakeConch()
7472 conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, SHARED_LOCK); in proxyTakeConch()
7523 conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, NO_LOCK); in proxyTakeConch()
7525 OSTRACE(("TAKECONCH %d %s\n", conchFile->h, in proxyTakeConch()
7539 unixFile *conchFile; /* Name of the conch file */ in proxyReleaseConch() local
7542 conchFile = pCtx->conchFile; in proxyReleaseConch()
7543 OSTRACE(("RELEASECONCH %d for %s pid=%d\n", conchFile->h, in proxyReleaseConch()
7547 rc = conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, NO_LOCK); in proxyReleaseConch()
7550 OSTRACE(("RELEASECONCH %d %s\n", conchFile->h, in proxyReleaseConch()
7697 rc = proxyCreateUnixFile(pCtx->conchFilePath, &pCtx->conchFile, 0); in proxyTransformUnixFile()
7739 if( pCtx->conchFile ){ in proxyTransformUnixFile()
7740 pCtx->conchFile->pMethod->xClose((sqlite3_file *)pCtx->conchFile); in proxyTransformUnixFile()
7741 sqlite3_free(pCtx->conchFile); in proxyTransformUnixFile()
7917 unixFile *conchFile = pCtx->conchFile; in proxyClose() local
7928 if( conchFile ){ in proxyClose()
7933 rc = conchFile->pMethod->xClose((sqlite3_file*)conchFile); in proxyClose()
7935 sqlite3_free(conchFile); in proxyClose()