| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 */ |
| OLD | NEW |