diff options
author | dan <dan@noemail.net> | 2013-03-23 21:00:41 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2013-03-23 21:00:41 +0000 |
commit | f23da96636f9de1a81c939bd7a0cc25ee1d37f49 (patch) | |
tree | ce1c59a35bc86b4daae97ad7529038136d6c3ac8 /src/os.c | |
parent | e5586a1a79f3d8e61ee6d263ec680c012ffbabfb (diff) | |
download | sqlite-f23da96636f9de1a81c939bd7a0cc25ee1d37f49.tar.gz sqlite-f23da96636f9de1a81c939bd7a0cc25ee1d37f49.zip |
Replace the sqlite3_io_methods.xMremap interface with sqlite3_io_methods.xFetch and xUnfetch.
FossilOrigin-Name: 1431be95579160fb70408d43e17fc23c7b69ab4a
Diffstat (limited to 'src/os.c')
-rw-r--r-- | src/os.c | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -140,15 +140,12 @@ int sqlite3OsShmMap( DO_OS_MALLOC_TEST(id); return id->pMethods->xShmMap(id, iPage, pgsz, bExtend, pp); } -int sqlite3OsMremap( - sqlite3_file *id, /* Database file handle */ - int flags, /* SQLITE_MREMAP_XXX flags */ - i64 iOff, /* Offset at which mapping(s) start */ - i64 nOld, /* Size of old mapping */ - i64 nNew, /* Size of requested mapping */ - void **pp /* IN/OUT: Pointer to mapped region */ -){ - return id->pMethods->xMremap(id, flags, iOff, nOld, nNew, pp); + +int sqlite3OsFetch(sqlite3_file *id, i64 iOff, int iAmt, void **pp){ + return id->pMethods->xFetch(id, iOff, iAmt, pp); +} +int sqlite3OsUnfetch(sqlite3_file *id, void *p){ + return id->pMethods->xUnfetch(id, p); } /* |