Lines Matching refs:conchFile

45960   unixFile *conchFile;         /* Open conch file */  member
46196 unixFile *conchFile = pCtx->conchFile; in proxyBreakConchLock() local
46215 readLen = osPread(conchFile->h, buf, PROXY_MAXCONCHLEN, 0); in proxyBreakConchLock()
46236 robust_close(pFile, conchFile->h, __LINE__); in proxyBreakConchLock()
46237 conchFile->h = fd; in proxyBreakConchLock()
46238 conchFile->openFlags = O_RDWR | O_CREAT; in proxyBreakConchLock()
46256 unixFile *conchFile = pCtx->conchFile; in proxyConchLock() local
46263 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, lockType); in proxyConchLock()
46273 if( osFstat(conchFile->h, &buf) ){ in proxyConchLock()
46292 int len = osPread(conchFile->h, tBuf, PROXY_MAXCONCHLEN, 0); in proxyConchLock()
46314 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, SHARED_LOCK); in proxyConchLock()
46317 rc = conchFile->pMethod->xLock((sqlite3_file*)conchFile, lockType); in proxyConchLock()
46338 unixFile *conchFile = pCtx->conchFile; in proxyTakeConch() local
46351 OSTRACE(("TAKECONCH %d for %s pid=%d\n", conchFile->h, in proxyTakeConch()
46365 readLen = seekAndRead((unixFile*)conchFile, 0, readBuf, PROXY_MAXCONCHLEN); in proxyTakeConch()
46368 storeLastErrno(pFile, conchFile->lastErrno); in proxyTakeConch()
46415 if( (conchFile->openFlags&O_RDWR) == 0 ){ in proxyTakeConch()
46431 futimes(conchFile->h, NULL); in proxyTakeConch()
46433 if( conchFile->pInode && conchFile->pInode->nShared>1 ){ in proxyTakeConch()
46456 robust_ftruncate(conchFile->h, writeSize); in proxyTakeConch()
46457 rc = unixWrite((sqlite3_file *)conchFile, writeBuffer, writeSize, 0); in proxyTakeConch()
46458 full_fsync(conchFile->h,0,0); in proxyTakeConch()
46470 osFchmod(conchFile->h, cmode); in proxyTakeConch()
46473 rc = osFchmod(conchFile->h, cmode); in proxyTakeConch()
46490 conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, SHARED_LOCK); in proxyTakeConch()
46541 conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, NO_LOCK); in proxyTakeConch()
46543 OSTRACE(("TAKECONCH %d %s\n", conchFile->h, in proxyTakeConch()
46557 unixFile *conchFile; /* Name of the conch file */ in proxyReleaseConch() local
46560 conchFile = pCtx->conchFile; in proxyReleaseConch()
46561 OSTRACE(("RELEASECONCH %d for %s pid=%d\n", conchFile->h, in proxyReleaseConch()
46565 rc = conchFile->pMethod->xUnlock((sqlite3_file*)conchFile, NO_LOCK); in proxyReleaseConch()
46568 OSTRACE(("RELEASECONCH %d %s\n", conchFile->h, in proxyReleaseConch()
46715 rc = proxyCreateUnixFile(pCtx->conchFilePath, &pCtx->conchFile, 0); in proxyTransformUnixFile()
46757 if( pCtx->conchFile ){ in proxyTransformUnixFile()
46758 pCtx->conchFile->pMethod->xClose((sqlite3_file *)pCtx->conchFile); in proxyTransformUnixFile()
46759 sqlite3_free(pCtx->conchFile); in proxyTransformUnixFile()
46935 unixFile *conchFile = pCtx->conchFile; in proxyClose() local
46946 if( conchFile ){ in proxyClose()
46951 rc = conchFile->pMethod->xClose((sqlite3_file*)conchFile); in proxyClose()
46953 sqlite3_free(conchFile); in proxyClose()