aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-03-17 16:01:23 +0000
committerdrh <drh@noemail.net>2016-03-17 16:01:23 +0000
commit1b9f2141a7c9e048eb5408a84559151ba8aabd3a (patch)
treeba80f67a1e8bb6a9c39c370d281ee03156badf4a /src/os_unix.c
parent4b058dd4d1c046c80ae3068e4f65fbf489ac2f42 (diff)
downloadsqlite-1b9f2141a7c9e048eb5408a84559151ba8aabd3a.tar.gz
sqlite-1b9f2141a7c9e048eb5408a84559151ba8aabd3a.zip
Experimental implementation of the sqlite3_system_errno() interface.
FossilOrigin-Name: 6782c87b3722fbd09684a5b1e5df05247956f1c6
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index eb1a63c68..d593b952f 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -6264,23 +6264,18 @@ static int unixCurrentTime(sqlite3_vfs *NotUsed, double *prNow){
# define unixCurrentTime 0
#endif
-#ifndef SQLITE_OMIT_DEPRECATED
/*
-** We added the xGetLastError() method with the intention of providing
-** better low-level error messages when operating-system problems come up
-** during SQLite operation. But so far, none of that has been implemented
-** in the core. So this routine is never called. For now, it is merely
-** a place-holder.
+** The xGetLastError() method is designed to return a better
+** low-level error message when operating-system problems come up
+** during SQLite operation. Only the integer return code is currently
+** used.
*/
static int unixGetLastError(sqlite3_vfs *NotUsed, int NotUsed2, char *NotUsed3){
UNUSED_PARAMETER(NotUsed);
UNUSED_PARAMETER(NotUsed2);
UNUSED_PARAMETER(NotUsed3);
- return 0;
+ return errno;
}
-#else
-# define unixGetLastError 0
-#endif
/*