Lines Matching refs:dbPath
2782 const char *dbPath; /* Name of the open file */ member
2873 int lrc = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1,1); in afpCheckReservedLock()
2877 lrc = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1, 0); in afpCheckReservedLock()
2986 failed = afpSetLock(context->dbPath, pFile, PENDING_BYTE, 1, 1); in afpLock()
3008 lrc1 = afpSetLock(context->dbPath, pFile, in afpLock()
3014 lrc2 = afpSetLock(context->dbPath, pFile, PENDING_BYTE, 1, 0); in afpLock()
3043 failed = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1,1); in afpLock()
3054 if( !(failed = afpSetLock(context->dbPath, pFile, SHARED_FIRST + in afpLock()
3058 failed = afpSetLock(context->dbPath, pFile, SHARED_FIRST, in afpLock()
3060 if( failed && (failed2 = afpSetLock(context->dbPath, pFile, in afpLock()
3144 rc = afpSetLock(context->dbPath, pFile, SHARED_FIRST, SHARED_SIZE, 0); in afpUnlock()
3148 rc = afpSetLock(context->dbPath, pFile, sharedLockByte, 1, 1); in afpUnlock()
3154 rc = afpSetLock(context->dbPath, pFile, PENDING_BYTE, 1, 0); in afpUnlock()
3157 rc = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1, 0); in afpUnlock()
3179 rc = afpSetLock(context->dbPath, pFile, sharedLockByte, 1, 0); in afpUnlock()
5732 pCtx->dbPath = zFilename; in fillInUnixFile()
6946 char *dbPath; /* Name of the open file */ member
6958 static int proxyGetLockPath(const char *dbPath, char *lPath, size_t maxLen){ in proxyGetLockPath() argument
6985 dbLen = (int)strlen(dbPath); in proxyGetLockPath()
6987 char c = dbPath[i]; in proxyGetLockPath()
7404 proxyGetLockPath(pCtx->dbPath, lockPath, MAXPATHLEN); in proxyTakeConch()
7482 fd = robust_open(pCtx->dbPath, pFile->openFlags, 0); in proxyTakeConch()
7520 afpCtx->dbPath = pCtx->lockProxyPath; in proxyTakeConch()
7566 static int proxyCreateConchPathname(char *dbPath, char **pConchPath){ in proxyCreateConchPathname() argument
7568 int len = (int)strlen(dbPath); /* Length of database filename - dbPath */ in proxyCreateConchPathname()
7577 memcpy(conchPath, dbPath, len+1); in proxyCreateConchPathname()
7588 conchPath[i+1]=dbPath[i]; in proxyCreateConchPathname()
7639 static int proxyGetDbPathForUnixFile(unixFile *pFile, char *dbPath){ in proxyGetDbPathForUnixFile() argument
7645 strlcpy(dbPath, ((afpLockingContext *)pFile->lockingContext)->dbPath, in proxyGetDbPathForUnixFile()
7653 memcpy(dbPath, (char *)pFile->lockingContext, len + 1); in proxyGetDbPathForUnixFile()
7657 strlcpy(dbPath, (char *)pFile->lockingContext, MAXPATHLEN); in proxyGetDbPathForUnixFile()
7672 char dbPath[MAXPATHLEN+1]; /* Name of the database file */ in proxyTransformUnixFile() local
7679 proxyGetDbPathForUnixFile(pFile, dbPath); in proxyTransformUnixFile()
7695 rc = proxyCreateConchPathname(dbPath, &pCtx->conchFilePath); in proxyTransformUnixFile()
7710 if( (err==ENOENT) && (statfs(dbPath, &fsInfo) != -1) ){ in proxyTransformUnixFile()
7725 pCtx->dbPath = sqlite3DbStrDup(0, dbPath); in proxyTransformUnixFile()
7726 if( pCtx->dbPath==NULL ){ in proxyTransformUnixFile()
7939 sqlite3DbFree(0, pCtx->dbPath); in proxyClose()