aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-08-31 16:11:35 +0000
committerdrh <drh@noemail.net>2007-08-31 16:11:35 +0000
commitcc6bb3eaebcff254e9ddb4d0f204656cf78d107b (patch)
treea5f588f960c518cc14dbd2e5d55242ee2a499ed9 /src/os_unix.c
parent3570ad93d8325611dc61a6f01d1c7ce0d7277c03 (diff)
downloadsqlite-cc6bb3eaebcff254e9ddb4d0f204656cf78d107b.tar.gz
sqlite-cc6bb3eaebcff254e9ddb4d0f204656cf78d107b.zip
Initial implementation of the sqlite3_file_control() interface.
Compiles and passes all historical tests but the new method is itself untested. (CVS 4353) FossilOrigin-Name: d3ab3e3911f10b17d0859a34f4f007c790a0cd82
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index c46d82407..54674f7c7 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -2016,11 +2016,10 @@ static int nolockUnixClose(sqlite3_file *id) {
/*
-** TODO: xBreakLock() for this vfs.
+** No xFileControl opcodes are implemented by this VFS.
*/
-static int unixBreakLock(sqlite3_file *id){
- assert(!"TODO: unixBreakLock()");
- return 0;
+static int unixFileControl(sqlite3_file *id, int op, void *pArg){
+ return SQLITE_ERROR;
}
/*
@@ -2067,8 +2066,8 @@ static const sqlite3_io_methods sqlite3UnixIoMethod = {
unixLock,
unixUnlock,
unixCheckReservedLock,
- unixBreakLock,
unixLockState,
+ unixFileControl,
unixSectorSize,
unixDeviceCharacteristics
};
@@ -2089,8 +2088,8 @@ static const sqlite3_io_methods sqlite3AFPLockingUnixIoMethod = {
afpUnixLock,
afpUnixUnlock,
afpUnixCheckReservedLock,
- unixBreakLock,
unixLockState,
+ unixFileControl,
unixSectorSize,
unixDeviceCharacteristics
};
@@ -2110,8 +2109,8 @@ static const sqlite3_io_methods sqlite3FlockLockingUnixIoMethod = {
flockUnixLock,
flockUnixUnlock,
flockUnixCheckReservedLock,
- unixBreakLock,
unixLockState,
+ unixFileControl,
unixSectorSize,
unixDeviceCharacteristics
};
@@ -2131,8 +2130,8 @@ static const sqlite3_io_methods sqlite3DotlockLockingUnixIoMethod = {
dotlockUnixLock,
dotlockUnixUnlock,
dotlockUnixCheckReservedLock,
- unixBreakLock,
unixLockState,
+ unixFileControl,
unixSectorSize,
unixDeviceCharacteristics
};
@@ -2152,8 +2151,8 @@ static const sqlite3_io_methods sqlite3NolockLockingUnixIoMethod = {
nolockUnixLock,
nolockUnixUnlock,
nolockUnixCheckReservedLock,
- unixBreakLock,
unixLockState,
+ unixFileControl,
unixSectorSize,
unixDeviceCharacteristics
};