Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: third_party/sqlite/src/src/os_unix.c

Issue 15070002: Backport SQLite memcmp patch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unnecessary variable. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/src/expr.c ('k') | third_party/sqlite/src/src/vdbeapi.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ** 2004 May 22 2 ** 2004 May 22
3 ** 3 **
4 ** The author disclaims copyright to this source code. In place of 4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing: 5 ** a legal notice, here is a blessing:
6 ** 6 **
7 ** May you do good and not evil. 7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others. 8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give. 9 ** May you share freely, never taking more than you give.
10 ** 10 **
(...skipping 4488 matching lines...) Expand 10 before | Expand all | Expand 10 after
4499 #if defined(__APPLE__) && SQLITE_ENABLE_LOCKING_STYLE 4499 #if defined(__APPLE__) && SQLITE_ENABLE_LOCKING_STYLE
4500 assert( zFilename==0 || zFilename[0]=='/' 4500 assert( zFilename==0 || zFilename[0]=='/'
4501 || pVfs->pAppData==(void*)&autolockIoFinder ); 4501 || pVfs->pAppData==(void*)&autolockIoFinder );
4502 #else 4502 #else
4503 assert( zFilename==0 || zFilename[0]=='/' ); 4503 assert( zFilename==0 || zFilename[0]=='/' );
4504 #endif 4504 #endif
4505 4505
4506 OSTRACE(("OPEN %-3d %s\n", h, zFilename)); 4506 OSTRACE(("OPEN %-3d %s\n", h, zFilename));
4507 pNew->h = h; 4507 pNew->h = h;
4508 pNew->zPath = zFilename; 4508 pNew->zPath = zFilename;
4509 if( memcmp(pVfs->zName,"unix-excl",10)==0 ){ 4509 if( strcmp(pVfs->zName,"unix-excl")==0 ){
4510 pNew->ctrlFlags = UNIXFILE_EXCL; 4510 pNew->ctrlFlags = UNIXFILE_EXCL;
4511 }else{ 4511 }else{
4512 pNew->ctrlFlags = 0; 4512 pNew->ctrlFlags = 0;
4513 } 4513 }
4514 if( isReadOnly ){ 4514 if( isReadOnly ){
4515 pNew->ctrlFlags |= UNIXFILE_RDONLY; 4515 pNew->ctrlFlags |= UNIXFILE_RDONLY;
4516 } 4516 }
4517 if( syncDir ){ 4517 if( syncDir ){
4518 pNew->ctrlFlags |= UNIXFILE_DIRSYNC; 4518 pNew->ctrlFlags |= UNIXFILE_DIRSYNC;
4519 } 4519 }
(...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after
6763 ** 6763 **
6764 ** Some operating systems might need to do some cleanup in this routine, 6764 ** Some operating systems might need to do some cleanup in this routine,
6765 ** to release dynamically allocated objects. But not on unix. 6765 ** to release dynamically allocated objects. But not on unix.
6766 ** This routine is a no-op for unix. 6766 ** This routine is a no-op for unix.
6767 */ 6767 */
6768 int sqlite3_os_end(void){ 6768 int sqlite3_os_end(void){
6769 return SQLITE_OK; 6769 return SQLITE_OK;
6770 } 6770 }
6771 6771
6772 #endif /* SQLITE_OS_UNIX */ 6772 #endif /* SQLITE_OS_UNIX */
OLDNEW
« no previous file with comments | « third_party/sqlite/src/src/expr.c ('k') | third_party/sqlite/src/src/vdbeapi.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698