aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-03-21 14:46:37 +0000
committerdrh <drh@noemail.net>2016-03-21 14:46:37 +0000
commitd260dd3534dea0957e038e69dcb8df47225c9853 (patch)
treedf6e463beadcbb06dea409dd5ee6a6c44f0bf771 /src/os_unix.c
parentef480d37dcc22f4da07d797341c96462f61f9e91 (diff)
parentf68521c4e69c64633b60d59477ab83b2872db034 (diff)
downloadsqlite-d260dd3534dea0957e038e69dcb8df47225c9853.tar.gz
sqlite-d260dd3534dea0957e038e69dcb8df47225c9853.zip
Add the sqlite3_system_errno() interface.
FossilOrigin-Name: 4bd12b57ea177cfb1f44d54bfa7aedfb8a8c0c64
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
/*