Lines Matching refs:openFlags
17022 unsigned int openFlags; /* Flags passed to sqlite3_vfs.xOpen() */
37012 int openFlags; /* The flags specified at open() */
42992 int openFlags = 0; /* Flags to pass to open() */
43104 if( isReadonly ) openFlags |= O_RDONLY;
43105 if( isReadWrite ) openFlags |= O_RDWR;
43106 if( isCreate ) openFlags |= O_CREAT;
43107 if( isExclusive ) openFlags |= (O_EXCL|O_NOFOLLOW);
43108 openFlags |= (O_LARGEFILE|O_BINARY|O_NOFOLLOW);
43120 fd = robust_open(zName, openFlags, openMode);
43121 OSTRACE(("OPENX %-3d %s 0%o\n", fd, zName, openFlags));
43122 assert( !isExclusive || (openFlags & O_CREAT)!=0 );
43131 openFlags &= ~(O_RDWR|O_CREAT);
43133 openFlags |= O_RDONLY;
43135 fd = robust_open(zName, openFlags, openMode);
43186 p->openFlags = openFlags;
43998 int openFlags = O_RDWR | O_CREAT | O_NOFOLLOW;
44009 pUnused = findReusableFd(path, openFlags);
44019 fd = robust_open(path, openFlags, 0);
44023 fd = robust_open(path, openFlags, 0);
44028 openFlags = O_RDONLY | O_NOFOLLOW;
44029 fd = robust_open(path, openFlags, 0);
44053 pNew->openFlags = openFlags;
44058 pUnused->flags = openFlags;
44172 conchFile->openFlags = O_RDWR | O_CREAT;
44358 if( (conchFile->openFlags&O_RDWR) == 0 ){
44437 if( rc==SQLITE_OK && pFile->openFlags ){
44443 fd = robust_open(pCtx->dbPath, pFile->openFlags, 0);
44659 if( rc==SQLITE_CANTOPEN && ((pFile->openFlags&O_RDWR) == 0) ){
44663 ** that openFlags will have only one of O_RDONLY or O_RDWR.
67996 u8 openFlags; /* Flags to sqlite3BtreeOpen() */
71226 pBt->openFlags = (u8)flags;
73305 if( (pBt->openFlags & BTREE_SINGLE) && pBt->pCursor==0 ){
78407 assert( (pBt->openFlags & BTREE_SINGLE)==0 || pgnoRoot==2 );
78442 if( (pBt->openFlags & BTREE_SINGLE)==0
116703 flags = db->openFlags;
149666 u32 saved_openFlags; /* Saved value of db->openFlags */
149684 saved_openFlags = db->openFlags;
149691 db->openFlags &= ~SQLITE_OPEN_READONLY;
149692 db->openFlags |= SQLITE_OPEN_CREATE|SQLITE_OPEN_READWRITE;
149731 db->openFlags = saved_openFlags;
176845 db->openFlags = flags;
209258 int openFlags; /* Flags this file was opened with */
213294 assert( p->openFlags & SQLITE_OPEN_MAIN_DB );
213330 assert( (p->openFlags & SQLITE_OPEN_MAIN_DB) );
213398 if( p->openFlags & SQLITE_OPEN_MAIN_DB ){
213403 else if( (p->openFlags & SQLITE_OPEN_DELETEONCLOSE) && p->pRbu ){
213455 assert( p->openFlags & SQLITE_OPEN_WAL );
213459 && (p->openFlags & SQLITE_OPEN_WAL)
213473 && (p->openFlags & SQLITE_OPEN_MAIN_DB)
213496 if( rc==SQLITE_OK && iOfst==0 && (p->openFlags & SQLITE_OPEN_MAIN_DB) ){
213521 assert( p->openFlags & SQLITE_OPEN_MAIN_DB );
213526 && (p->openFlags & SQLITE_OPEN_WAL)
213530 }else if( p->openFlags & SQLITE_OPEN_DELETEONCLOSE ){
213539 if( rc==SQLITE_OK && iOfst==0 && (p->openFlags & SQLITE_OPEN_MAIN_DB) ){
213555 if( (p->openFlags & SQLITE_OPEN_DELETEONCLOSE) && p->pRbu ){
213568 if( p->openFlags & SQLITE_OPEN_MAIN_DB ){
213590 && (p->openFlags & SQLITE_OPEN_MAIN_DB)
213605 assert( p->openFlags & (SQLITE_OPEN_MAIN_DB|SQLITE_OPEN_TEMP_DB) );
213643 assert( p->openFlags & (SQLITE_OPEN_MAIN_DB|SQLITE_OPEN_TEMP_DB)
213644 || p->openFlags & (SQLITE_OPEN_TRANSIENT_DB|SQLITE_OPEN_TEMP_JOURNAL)
213719 assert( p->openFlags & (SQLITE_OPEN_MAIN_DB|SQLITE_OPEN_TEMP_DB) );
213762 assert( p->openFlags & (SQLITE_OPEN_MAIN_DB|SQLITE_OPEN_TEMP_DB) );
213819 assert( p->openFlags & (SQLITE_OPEN_MAIN_DB|SQLITE_OPEN_TEMP_DB) );
213870 pFd->openFlags = flags;