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

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

Issue 1638943002: [sqlite] Reenable deprecated methods on unix VFS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « third_party/sqlite/patches/0011-backport-Reenable-deprecated-methods-on-unix-VFS.patch ('k') | no next file » | 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 6198 matching lines...) Expand 10 before | Expand all | Expand 10 after
6209 6209
6210 #ifdef SQLITE_TEST 6210 #ifdef SQLITE_TEST
6211 if( sqlite3_current_time ){ 6211 if( sqlite3_current_time ){
6212 *piNow = 1000*(sqlite3_int64)sqlite3_current_time + unixEpoch; 6212 *piNow = 1000*(sqlite3_int64)sqlite3_current_time + unixEpoch;
6213 } 6213 }
6214 #endif 6214 #endif
6215 UNUSED_PARAMETER(NotUsed); 6215 UNUSED_PARAMETER(NotUsed);
6216 return rc; 6216 return rc;
6217 } 6217 }
6218 6218
6219 #if 0 /* Not used */ 6219 #ifndef SQLITE_OMIT_DEPRECATED
6220 /* 6220 /*
6221 ** Find the current time (in Universal Coordinated Time). Write the 6221 ** Find the current time (in Universal Coordinated Time). Write the
6222 ** current time and date as a Julian Day number into *prNow and 6222 ** current time and date as a Julian Day number into *prNow and
6223 ** return 0. Return 1 if the time and date cannot be found. 6223 ** return 0. Return 1 if the time and date cannot be found.
6224 */ 6224 */
6225 static int unixCurrentTime(sqlite3_vfs *NotUsed, double *prNow){ 6225 static int unixCurrentTime(sqlite3_vfs *NotUsed, double *prNow){
6226 sqlite3_int64 i = 0; 6226 sqlite3_int64 i = 0;
6227 int rc; 6227 int rc;
6228 UNUSED_PARAMETER(NotUsed); 6228 UNUSED_PARAMETER(NotUsed);
6229 rc = unixCurrentTimeInt64(0, &i); 6229 rc = unixCurrentTimeInt64(0, &i);
6230 *prNow = i/86400000.0; 6230 *prNow = i/86400000.0;
6231 return rc; 6231 return rc;
6232 } 6232 }
6233 #else 6233 #else
6234 # define unixCurrentTime 0 6234 # define unixCurrentTime 0
6235 #endif 6235 #endif
6236 6236
6237 #if 0 /* Not used */ 6237 #ifndef SQLITE_OMIT_DEPRECATED
6238 /* 6238 /*
6239 ** We added the xGetLastError() method with the intention of providing 6239 ** We added the xGetLastError() method with the intention of providing
6240 ** better low-level error messages when operating-system problems come up 6240 ** better low-level error messages when operating-system problems come up
6241 ** during SQLite operation. But so far, none of that has been implemented 6241 ** during SQLite operation. But so far, none of that has been implemented
6242 ** in the core. So this routine is never called. For now, it is merely 6242 ** in the core. So this routine is never called. For now, it is merely
6243 ** a place-holder. 6243 ** a place-holder.
6244 */ 6244 */
6245 static int unixGetLastError(sqlite3_vfs *NotUsed, int NotUsed2, char *NotUsed3){ 6245 static int unixGetLastError(sqlite3_vfs *NotUsed, int NotUsed2, char *NotUsed3){
6246 UNUSED_PARAMETER(NotUsed); 6246 UNUSED_PARAMETER(NotUsed);
6247 UNUSED_PARAMETER(NotUsed2); 6247 UNUSED_PARAMETER(NotUsed2);
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
7547 ** 7547 **
7548 ** Some operating systems might need to do some cleanup in this routine, 7548 ** Some operating systems might need to do some cleanup in this routine,
7549 ** to release dynamically allocated objects. But not on unix. 7549 ** to release dynamically allocated objects. But not on unix.
7550 ** This routine is a no-op for unix. 7550 ** This routine is a no-op for unix.
7551 */ 7551 */
7552 int sqlite3_os_end(void){ 7552 int sqlite3_os_end(void){
7553 return SQLITE_OK; 7553 return SQLITE_OK;
7554 } 7554 }
7555 7555
7556 #endif /* SQLITE_OS_UNIX */ 7556 #endif /* SQLITE_OS_UNIX */
OLDNEW
« no previous file with comments | « third_party/sqlite/patches/0011-backport-Reenable-deprecated-methods-on-unix-VFS.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698