Lines Matching refs:conchFile

45959   unixFile *conchFile;         /* Open conch file */  member
46195 unixFile *conchFile = pCtx->conchFile; in proxyBreakConchLock() local
46214 readLen = osPread(conchFile->h, buf, PROXY_MAXCONCHLEN, 0); in proxyBreakConchLock()
46235 robust_close(pFile, conchFile->h, __LINE__); in proxyBreakConchLock()
46236 conchFile->h = fd; in proxyBreakConchLock()
46237 conchFile->openFlags = O_RDWR | O_CREAT; in proxyBreakConchLock()
46255 unixFile *conchFile = pCtx->conchFile; in proxyConchLock() local
46262 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, lockType); in proxyConchLock()
46272 if( osFstat(conchFile->h, &buf) ){ in proxyConchLock()
46291 int len = osPread(conchFile->h, tBuf, PROXY_MAXCONCHLEN, 0); in proxyConchLock()
46313 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, SHARED_LOCK); in proxyConchLock()
46316 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, lockType); in proxyConchLock()
46337 unixFile *conchFile = pCtx->conchFile; in proxyTakeConch() local
46350 OSTRACE(("TAKECONCH %d for %s pid=%d\n", conchFile->h, in proxyTakeConch()
46364 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN); in proxyTakeConch()
46367 storeLastErrno(pFile, conchFile->lastErrno); in proxyTakeConch()
46414 if( (conchFile->openFlags&O_RDWR) == 0 ){ in proxyTakeConch()
46430 futimes(conchFile->h, NULL); in proxyTakeConch()
46432 if( conchFile->pInode && conchFile->pInode->nShared>1 ){ in proxyTakeConch()
46455 robust_ftruncate(conchFile->h, writeSize); in proxyTakeConch()
46456 rc = unixWrite((sqlite3_file *)conchFile, writeBuffer, writeSize, 0); in proxyTakeConch()
46457 full_fsync(conchFile->h,0,0); in proxyTakeConch()
46469 osFchmod(conchFile->h, cmode); in proxyTakeConch()
46472 rc = osFchmod(conchFile->h, cmode); in proxyTakeConch()
46489 conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, SHARED_LOCK); in proxyTakeConch()
46540 conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, NO_LOCK); in proxyTakeConch()
46542 OSTRACE(("TAKECONCH %d %s\n", conchFile->h, in proxyTakeConch()
46556 unixFile *conchFile; /* Name of the conch file */ in proxyReleaseConch() local
46559 conchFile = pCtx->conchFile; in proxyReleaseConch()
46560 OSTRACE(("RELEASECONCH %d for %s pid=%d\n", conchFile->h, in proxyReleaseConch()
46564 rc = conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, NO_LOCK); in proxyReleaseConch()
46567 OSTRACE(("RELEASECONCH %d %s\n", conchFile->h, in proxyReleaseConch()
46714 rc = proxyCreateUnixFile(pCtx->conchFilePath, &pCtx->conchFile, 0); in proxyTransformUnixFile()
46756 if( pCtx->conchFile ){ in proxyTransformUnixFile()
46757 pCtx->conchFile->pMethod->xClose((sqlite3_file *)pCtx->conchFile); in proxyTransformUnixFile()
46758 sqlite3_free(pCtx->conchFile); in proxyTransformUnixFile()
46934 unixFile *conchFile = pCtx->conchFile; in proxyClose() local
46945 if( conchFile ){ in proxyClose()
46950 rc = conchFile->pMethod->xClose((sqlite3_file*)conchFile); in proxyClose()
46952 sqlite3_free(conchFile); in proxyClose()