Lines Matching refs:dbPath
27521 const char *dbPath; /* Name of the open file */
27613 int lrc = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1,1);
27617 lrc = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1, 0);
27726 failed = afpSetLock(context->dbPath, pFile, PENDING_BYTE, 1, 1);
27748 lrc1 = afpSetLock(context->dbPath, pFile,
27754 lrc2 = afpSetLock(context->dbPath, pFile, PENDING_BYTE, 1, 0);
27783 failed = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1,1);
27794 if( !(failed = afpSetLock(context->dbPath, pFile, SHARED_FIRST +
27798 failed = afpSetLock(context->dbPath, pFile, SHARED_FIRST,
27800 if( failed && (failed2 = afpSetLock(context->dbPath, pFile,
27884 rc = afpSetLock(context->dbPath, pFile, SHARED_FIRST, SHARED_SIZE, 0);
27888 rc = afpSetLock(context->dbPath, pFile, sharedLockByte, 1, 1);
27894 rc = afpSetLock(context->dbPath, pFile, PENDING_BYTE, 1, 0);
27897 rc = afpSetLock(context->dbPath, pFile, RESERVED_BYTE, 1, 0);
27919 rc = afpSetLock(context->dbPath, pFile, sharedLockByte, 1, 0);
29745 pCtx->dbPath = zFilename;
30810 char *dbPath; /* Name of the open file */
30817 ** The proxy lock file path for the database at dbPath is written into lPath,
30821 static int proxyGetLockPath(const char *dbPath, char *lPath, size_t maxLen){
30848 dbLen = (int)strlen(dbPath);
30850 char c = dbPath[i];
31265 proxyGetLockPath(pCtx->dbPath, lockPath, MAXPATHLEN);
31342 fd = robust_open(pCtx->dbPath, pFile->openFlags, 0);
31380 afpCtx->dbPath = pCtx->lockProxyPath;
31426 static int proxyCreateConchPathname(char *dbPath, char **pConchPath){
31428 int len = (int)strlen(dbPath); /* Length of database filename - dbPath */
31437 memcpy(conchPath, dbPath, len+1);
31448 conchPath[i+1]=dbPath[i];
31493 ** pFile is a file that has been opened by a prior xOpen call. dbPath
31497 ** int dbPath.
31499 static int proxyGetDbPathForUnixFile(unixFile *pFile, char *dbPath){
31505 strlcpy(dbPath, ((afpLockingContext *)pFile->lockingContext)->dbPath, MAXPATHLEN);
31512 memcpy(dbPath, (char *)pFile->lockingContext, len + 1);
31516 strlcpy(dbPath, (char *)pFile->lockingContext, MAXPATHLEN);
31531 char dbPath[MAXPATHLEN+1]; /* Name of the database file */
31538 dbPath);
31554 rc = proxyCreateConchPathname(dbPath, &pCtx->conchFilePath);
31569 if( (err==ENOENT) && (statfs(dbPath, &fsInfo) != -1) ){
31584 pCtx->dbPath = sqlite3DbStrDup(0, dbPath);
31585 if( pCtx->dbPath==NULL ){
31795 sqlite3DbFree(0, pCtx->dbPath);