/ File History
Login

History of src/os_win.c

2017-12-13
10:11
Minor enhancement to two assert() statements in the default VFSes. file: [0a4afa35] check-in: [9cede8a8] user: drh branch: trunk, size: 197297
2017-11-14
20:36
Merge the patch that enables reading a read-only WAL-mode database, without any special query parameters, as long as the -shm and -wal files are on disk. file: [f626b26c] check-in: [8c2a769c] user: drh branch: apple-osx, size: 197527
2017-11-09
23:24
Avoid superfluous SHM unlock call in the Win32 VFS. file: [7f361204] check-in: [5a384be6] user: mistachkin branch: readonly-wal-recovery, size: 197297
22:25
Cleanup superfluous whitespace changes. file: [670d296c] check-in: [a2908e2c] user: mistachkin branch: readonly-wal-recovery, size: 197266
22:23
Revise and vastly simplify the Win32 SHM file locking semantics, allowing all new tests to pass. file: [b40d4f98] check-in: [d0997b0f] user: mistachkin branch: readonly-wal-recovery, size: 197212
20:37
Add an assert() in the Win32 VFS. file: [64bc6182] check-in: [22e58330] user: mistachkin branch: readonly-wal-recovery, size: 201411
20:02
Get read-only SHM file tests passing on Win32. file: [cf409995] check-in: [abef0535] user: mistachkin branch: readonly-wal-recovery, size: 201382
18:53
Further corrections to read-only SHM file handling on Win32. file: [f55a1ae6] check-in: [43c31170] user: mistachkin branch: readonly-wal-recovery, size: 201063
18:21
Corrections to Win32 lock detection for SHM files. file: [eac2f143] check-in: [3a91be97] user: mistachkin branch: readonly-wal-recovery, size: 200790
17:29
Corrections to the Win32 porting changes on this branch. file: [ce0b1da0] check-in: [0b26a5a2] user: mistachkin branch: readonly-wal-recovery, size: 200659
16:30
Initial work on porting the changes on this branch to Win32. file: [47687775] check-in: [3738bfd0] user: mistachkin branch: readonly-wal-recovery, size: 200715
2017-10-24
19:12
Merge all enhancements and fixes from the 3.21.0 release. file: [1473a2ca] check-in: [13be3a44] user: drh branch: apple-osx, size: 196031
2017-09-22
16:23
Use the updated Win32 VFS semantics for winOpen from check-in [5d03c738e9] for WinRT, et al, as well. file: [6892c3ff] check-in: [2c03d8b8] user: mistachkin branch: trunk, size: 195801
2017-09-21
20:43
In the Windows VFS, when trying to open a database file read/write, if it fails check to see if the file exists and is read-only and immediately fall back to a read-only open attempt, rather than running the AV retry loop. file: [5c802f05] check-in: [5d03c738] user: drh branch: trunk, size: 195579
20:03
In the Windows VFS, do not emit an SQLITE_CANTOPEN error log message when falling back from SQLITE_OPEN_READWRITE to SQLITE_OPEN_READONLY. Wait until the open fails completely. file: [4c05a058] check-in: [fa3f5bcc] user: drh branch: trunk, size: 195195
2017-09-12
23:58
Remove use of the rand_s() function (added by [139081bef9f63c3e]) as it appears to cause issues with some third-party DLLs. file: [225432ab] check-in: [3a2793aa] user: mistachkin branch: trunk, size: 195191
2017-09-09
06:10
Merge trunk enhancements file: [a49fbd95] check-in: [6a0b9d9d] user: drh branch: apple-osx, size: 195604
2017-08-07
19:06
On Windows, avoid casting a value larger than 2^31 to a (SIZE_T) on systems where it is a 32-bit type. file: [964165b6] check-in: [f08d63b4] user: mistachkin branch: mmap-size-limit, size: 195374
2017-03-06
20:00
Merge all pending 3.18 enhancements from trunk. file: [85b19486] check-in: [1650c3f4] user: drh branch: apple-osx, size: 195319
2017-02-20
23:32
Correct a harmless typo in the previous check-in. file: [2a6c73ee] check-in: [1589db01] user: mistachkin branch: trunk, size: 195089
19:13
Avoid unsigned integer overflows for SQLITE_WIN32_HEAP_INIT_SIZE when the Win32 heap subsystem is used with very large values of SQLITE_DEFAULT_CACHE_SIZE and/or SQLITE_DEFAULT_PAGE_SIZE. file: [c97c79fe] check-in: [96b6a98e] user: mistachkin branch: trunk, size: 195090
2017-01-23
21:12
Experimental changes to permit a VFS to directly override the initial page size. file: [a55b09ae] check-in: [64131724] user: mistachkin branch: pagePerSector, size: 194198
2017-01-18
23:12
For Windows 8.x and higher, require the SQLITE_WIN32_WIN8_SECTOR_SIZE compile-time option in order to enable sector size determination. file: [54fd6ea6] check-in: [47beb55c] user: mistachkin branch: winSectorSize, size: 202131
19:36
Improve and update comments. file: [2bd4caed] check-in: [2dc16d34] user: mistachkin branch: winSectorSize, size: 202041
19:06
Minimize the requested permissions when opening the volume on Windows 7 and Vista. file: [2f6dd3ee] check-in: [8d429a59] user: mistachkin branch: winSectorSize, size: 200986
01:11
Add runtime version checking for winSectorSize. file: [05f014e9] check-in: [cb9d1ab3] user: mistachkin branch: winSectorSize, size: 201033
00:27
When determining sector sizes on Windows 7 and Vista, make sure the target file is on the same volume as corresponding root directory. file: [3f683f19] check-in: [de699ead] user: mistachkin branch: winSectorSize, size: 198991
2017-01-12
23:37
Attempt to detect physical sector sizes on Windows Vista and higher. file: [9fbb3876] check-in: [6e388423] user: mistachkin branch: winSectorSize, size: 196890
2017-01-11
16:52
Attempt to detect physical sector sizes on Windows 8 and higher. file: [036b12e5] check-in: [381fd34b] user: mistachkin branch: winSectorSize, size: 194567
2016-11-04
19:09
Merge recent trunk changes, including all the fixes that appeared in version 3.15.1. file: [4224bff1] check-in: [0e5ffd91] user: drh branch: apple-osx, size: 194013
2016-10-14
21:27
Add the SQLITE_FCNTL_WIN32_GET_HANDLE file control. file: [cf90abd4] check-in: [16039be3] user: mistachkin branch: trunk, size: 193783
2016-07-25
17:31
Merge 3.14 alpha changes from trunk. file: [8ba3403e] check-in: [e98cefb1] user: drh branch: apple-osx, size: 193815
2016-07-09
16:14
Fix various internal #defines to conform to new C-language naming restrictions, specifically that private-use macros names must not begin with "_". file: [520f2347] check-in: [5471aca0] user: drh branch: trunk, size: 193585
2016-07-08
21:14
Initial work on a Win32 VFS with NOP locking. file: [716af571] check-in: [549abe3f] user: mistachkin branch: win32nolock, size: 193553
2016-06-15
10:21
Merge changes from trunk. file: [c5651f7c] check-in: [0f707d15] user: drh branch: apple-osx, size: 187873
2016-06-06
20:36
In winFullPathname, translate '/X:' to 'X:' before doing anything else. file: [d4b8faf8] check-in: [e404ad70] user: mistachkin branch: trunk, size: 187643
20:27
Translate filenames of the form "/c:/*" into just "c:/*" on WinRT and Cygwin. (SQLite has long done this for Win32/WinNT.) file: [59ccd6a2] check-in: [f8470ffc] user: drh branch: trunk, size: 188020
2016-05-03
19:36
Add the experimental SQLITE_FCNTL_WIN32_GET_HANDLE file control. file: [75edd38c] check-in: [b6ddabe1] user: mistachkin branch: win32GetHandle, size: 187770
2016-04-29
15:52
Merge enhancements from trunk, and in particular the TEMP file deferred I/O enhancements. file: [b717a28c] check-in: [81b76901] user: drh branch: apple-osx, size: 187802
2016-04-26
18:58
The pcache and the built-in VFSes should not use mutexes when SQLITE_CONFIG_SINGLETHREAD is set. file: [852fc2ff] check-in: [12418b10] user: drh branch: trunk, size: 187572
2016-04-21
15:35
Merge all recent enhancements from trunk. file: [8aeedf6a] check-in: [a15c49ae] user: drh branch: apple-osx, size: 187748
2016-04-20
18:31
Fix a locking race condition in Windows 10 that can occur when two or more processes attempt to recover the same hot journal at the same time. file: [1997a873] check-in: [38a4e9d9] user: drh branch: trunk, size: 187518
2016-04-12
16:11
Add and adjust comments. file: [b169437d] check-in: [541c6da2] user: mistachkin branch: winCeLocalTime, size: 187540
2016-04-11
22:45
Further refinements. file: [9c84a48d] check-in: [b35bb928] user: mistachkin branch: winCeLocalTime, size: 187415
22:10
Fix some compilation issues. file: [1245c1c1] check-in: [016481b3] user: mistachkin branch: winCeLocalTime, size: 187629
2016-04-05
17:59
Merge updates from trunk. file: [be21cb97] check-in: [00990020] user: mistachkin branch: winCeLocalTime, size: 187476
2016-04-04
02:05
More refactoring and cleanup work on the Win32 string conversion and utility routines. file: [b3ba9573] check-in: [02ccb444] user: mistachkin branch: altShellFix, size: 187347
2016-04-03
22:44
Revise and enhance the Win32 string conversion routines. file: [01ae5894] check-in: [345860c9] user: mistachkin branch: altShellFix, size: 186816
2016-03-29
10:30
Merge 3.12.0 changes. file: [5c780f4c] check-in: [eef55744] user: drh branch: apple-osx, size: 185501
2016-03-25
17:19
In the Win32 VFS, avoid trying to use rand_s() on Windows CE. file: [ff870d89] check-in: [183350fa] user: mistachkin branch: trunk, size: 185271
2016-03-24
20:36
Prevent negative values of SQLITE_DEFAULT_CACHE_SIZE from making SQLITE_WIN32_HEAP_INIT_SIZE negative. file: [7c071f7f] check-in: [e0737f52] user: mistachkin branch: trunk, size: 185251
2016-03-22
15:26
Fix harmless compiler warning for MSVC. file: [17493f12] check-in: [142cd359] user: mistachkin branch: trunk, size: 184902
2016-03-21
14:52
Merge the sqlite3_system_errno() change from trunk. file: [745cbd3e] check-in: [063f1b37] user: drh branch: apple-osx, size: 185123
2016-03-17
19:28
Change the xGetLastError() method on the windows VFS so that it continues to format an error message (if requested) but returns the system error code, rather than an SQLite status code. file: [551d973a] check-in: [1602f6b5] user: drh branch: sqlite_system_errno, size: 184893
2016-03-16
01:09
Merge the SQLITE_OMIT_CODEC_FROM_TCL compile-time option from trunk. file: [57a720eb] check-in: [161d91e4] user: drh branch: apple-osx, size: 185090
2016-03-15
19:10
In the Win32 VFS, use SQLITE_FCNTL_LAST_ERRNO instead of (the older) SQLITE_LAST_ERRNO. file: [cbf8c442] check-in: [9463762c] user: mistachkin branch: trunk, size: 184860
2016-02-18
01:36
Merge recent performance enhancements and the enhanced API_ARMOR from trunk. file: [390534ca] check-in: [b7fa0fb3] user: drh branch: apple-osx, size: 185084
2016-02-15
22:37
Readability improvements for winRandomness. file: [f0d7aa60] check-in: [1640f814] user: mistachkin branch: trunk, size: 184854
22:28
Fix comment. No changes to code. file: [1a781c23] check-in: [2e1f2eff] user: mistachkin branch: trunk, size: 184627
22:01
Revise compiler checks for the rand_s() function. file: [d085a0b0] check-in: [287f508d] user: mistachkin branch: trunk, size: 184626
21:31
On windows systems when rand_s() is available, use it to obtain additional seed material in winRandomness(). file: [382fd1b5] check-in: [139081be] user: drh branch: trunk, size: 184603
20:41
Improved entropy gathering for the implementation of winRandomness(). file: [ae1f287a] check-in: [fea3705e] user: drh branch: trunk, size: 184514
2016-02-13
23:43
Enhance ability to debug out-of-memory errors. file: [6cce4c3a] check-in: [6a9c4a3e] user: mistachkin branch: noMemBkpt, size: 183989
2016-02-02
02:30
Merge recent enhancements from trunk. file: [dc10ba37] check-in: [e6a4a163] user: drh branch: apple-osx, size: 184079
2016-01-27
07:28
Support building for Windows 10 desktop using 'MinCore.lib'. file: [ccf29ddd] check-in: [4bf89891] user: mistachkin branch: trunk, size: 183849
2016-01-23
01:54
Cleanup localtime() support for Windows CE. file: [3cd1dbb6] check-in: [39759a55] user: mistachkin branch: winCeLocalTime, size: 183487
2015-12-02
20:22
Merge all recent trunk enhancements, especially the unix VFS changes. file: [d5f32f01] check-in: [e1fb33c7] user: drh branch: apple-osx, size: 183588
2015-11-21
17:27
Fix over-length source code lines. No logic changes. file: [386fba30] check-in: [198d191b] user: drh branch: trunk, size: 183358
2015-11-19
19:48
Merge the latest enhancements from trunk. file: [210580a9] check-in: [2c9e5436] user: drh branch: apple-osx, size: 183591
2015-11-17
21:42
When using mmap mode on Win32, use a read-only mapping by default. Write to the database file using WriteFile(). Unless SQLITE_MMAP_READWRITE is defined, in which case use a read/write mapping and write into the file using memcpy(). file: [2d77dab5] check-in: [4f521b5b] user: mistachkin branch: trunk, size: 183361
2015-09-24
14:43
Merge recent trunk enhancements into the apple-osx branch. file: [1666013b] check-in: [4dd06d8b] user: drh branch: apple-osx, size: 183521
12:40
Strengthen the implementations of xShmMemoryBarrier on both the unix and windows VFSes, so that they likely work even if SQLITE_THREADSAFE=0 is used. file: [1716291e] check-in: [c6ab807b] user: drh branch: trunk, size: 183291
2015-08-28
02:12
Merge trunk enhancements into the apple-osx branch. Most tests works, but there are yet a few issues to be resolved. file: [8a586f1f] check-in: [da864658] user: drh branch: apple-osx, size: 183481
2015-07-03
21:38
Add static mutexes for use by the built-in / third-party VFSs and use the built-in VFS mutex where appropriate. file: [40b3af7a] check-in: [b202e2a1] user: mistachkin branch: trunk, size: 183251
2015-05-28
00:54
Do not attempt to take any write lock on a read-only database on Windows. file: [27cc135e] check-in: [a47ff0cd] user: drh branch: trunk, size: 183257
2015-05-12
19:53
Fix typo in Win32 VFS code enabled when the SQLITE_WIN32_USE_UUID compile-time option is used. file: [97f7828a] check-in: [b33f1bac] user: mistachkin branch: trunk, size: 183077
2015-04-30
12:31
Fix signed/unsigned comparison compiler warnings. Add the SQLITE_OMIT_RANDOMNESS compile-time option to cause the PRNG to be seeded identically on every run, for testing purposes. file: [2da99cf0] check-in: [93ce2bca] user: drh branch: trunk, size: 183069
2015-04-29
16:50
Use sqlite3_malloc64() in place of sqlite3_malloc() internally. file: [59972cd5] check-in: [48f553b0] user: drh branch: trunk, size: 182973
2015-04-16
03:24
Merge updates from trunk. Make OSTRACE changes work on Linux. file: [c2f0b0b3] check-in: [cd154266] user: mistachkin branch: winTest, size: 182971
2015-04-01
16:13
Merge all recent trunk fixes and enhancements into the apple-osx branch. file: [93f86628] check-in: [71b6f507] user: drh branch: apple-osx, size: 183102
01:26
The build is still broken. Multiple definitions of sqlite3OSTrace when compiled using separate source files. file: [eeb317cd] check-in: [5c965a71] user: drh branch: winTest, size: 183210
2015-03-31
19:40
On windows, flush the mapping view when syncing content to disk. file: [03d27be3] check-in: [a828e73d] user: drh branch: trunk, size: 182872
19:17
Set the winShm.id member when it is going to be traced. file: [87ae49ff] check-in: [fa7916b6] user: mistachkin branch: winTest, size: 182223
19:06
Build fixes for OSTRACE enhancements. file: [6c4752b5] check-in: [f79c236f] user: mistachkin branch: winTest, size: 182135
17:32
Change the sqlite3_log() message generated on a retry after delay in os_win to be an SQLITE_NOTICE instead of SQLITE_IOERR. file: [23c2d1fa] check-in: [5d533eee] user: drh branch: trunk, size: 181885
2015-03-30
23:52
Merge the latest trunk enhancements, and especially the fix for the infinite loop on a DROP TABLE in a corrupt database, into the apple-osx branch. file: [c93a12ed] check-in: [4d42bf5e] user: drh branch: apple-osx, size: 182114
2015-03-27
18:22
Merge updates from trunk. file: [1e39f146] check-in: [45acf6a8] user: mistachkin branch: winViewFlush, size: 182871
18:20
Enhancements to OSTRACE usage in the Win32 VFS. file: [865ba158] check-in: [ab580029] user: mistachkin branch: trunk, size: 181884
2015-03-26
23:36
When syncing a memory mapped file on Windows, flush the mapped view as well. file: [af359cc1] check-in: [df204049] user: mistachkin branch: winViewFlush, size: 181926
15:27
Provide source code line numbers for errors in the Windows VFS generated by the winLogIoerr() routine. file: [f65255fd] check-in: [b5da0d93] user: drh branch: trunk, size: 180687
2015-02-06
16:03
Merge all recent trunk enhancements into the apple-osx branch. file: [1d1ef630] check-in: [44711921] user: drh branch: apple-osx, size: 180836
2015-01-21
00:48
Enhancements to entropy generation for the Win32 VFS. file: [8223e7db] check-in: [26190b3c] user: mistachkin branch: trunk, size: 180606
2015-01-16
19:35
Fix harmless compiler warning. file: [a5ac9e24] check-in: [cab46fb7] user: mistachkin branch: msvcWarn, size: 179581
2015-01-02
19:17
Merge the latest changes from trunk into the apple-osx branch. file: [659d2ea5] check-in: [df3cdf9f] user: drh branch: apple-osx, size: 179799
2014-12-20
22:21
Support manually disabling overlapped file I/O for Windows sub-platforms other than Windows CE. file: [91d3d08e] check-in: [b9330b88] user: mistachkin branch: trunk, size: 179569
2014-12-16
00:29
Merge latest fixes and enhancements from trunk into apple-osx. file: [76068f9d] check-in: [2c1d8dda] user: drh branch: apple-osx, size: 179522
2014-12-10
17:34
Revise mutex handling by the sqlite3_win32_reset_heap() function. file: [ecb04a0d] check-in: [eacb3b7b] user: mistachkin branch: trunk, size: 179292
2014-11-18
21:27
Merge recent trunk enhancements. file: [1a38ad12] check-in: [ccb601f6] user: drh branch: apple-osx, size: 179518
2014-11-04
19:37
For the Win32 VFS, allow memory mapped files to work when compiled without WAL support. file: [a9e500dd] check-in: [1fc7e2f3] user: mistachkin branch: winMmapNoWal, size: 179288
2014-10-17
12:11
Merge the 3.8.7 changes into the apple-osx branch. file: [752a65dc] check-in: [aa7bbed1] user: drh branch: apple-osx, size: 179141
2014-10-16
18:34
Changes to work around Win32 and MSVCRT APIs that are not present on Windows CE 200x. file: [a019caaa] check-in: [1418c006] user: mistachkin branch: trunk, size: 178911
2014-09-21
23:08
Merge in all recent changes from trunk. file: [1f331fe6] check-in: [3967ebe8] user: drh branch: apple-osx, size: 179007
2014-09-06
16:39
Fix typos in comments. No code changes. file: [0a4042ef] check-in: [e62aab5e] user: peter.d.reid branch: trunk, size: 178777
2014-09-05
05:58
Fix harmless compiler warning. file: [3c9f7df7] check-in: [73311906] user: mistachkin branch: trunk, size: 178783
2014-09-02
15:57
Merge the latest trunk changes into the apple-osx branch. file: [07c93644] check-in: [696dc935] user: drh branch: apple-osx, size: 178931
2014-09-01
19:29
For sqlite3_win32_is_nt(), assume WinRT is NT-based and revise #ifdef ordering to prefer the ANSI version of GetVersionEx, when available. file: [2aa8aa77] check-in: [be0a0372] user: mistachkin branch: trunk, size: 178701
2014-08-26
02:02
Merge recent performance enhancements and the CAST operator enhancements into the apple-osx branch. file: [85795ec8] check-in: [5c273111] user: drh branch: apple-osx, size: 178637
2014-08-25
13:27
Merge the recent performance enhancements implemented on trunk into the threads branch. file: [08ce5616] check-in: [dfdc900f] user: drh branch: threads, size: 178500
2014-08-22
19:12
Revise #ifdef ordering to prefer the ANSI version of GetVersionEx, when available. file: [b979aabc] check-in: [9fe0f075] user: mistachkin branch: winrt, size: 178608
2014-08-21
19:11
For sqlite3_win32_is_nt(), assume WinRT is NT-based. file: [81700566] check-in: [2f59e71f] user: mistachkin branch: winrt, size: 178608
2014-08-14
18:31
Fix compiler warnings on WinCE. file: [d067fce5] check-in: [cc910b8e] user: mistachkin branch: winCeWarn, size: 178407
14:02
Merge the pre-3.8.6 changes into the threads branch. file: [058cefbe] check-in: [a608fd1d] user: drh branch: threads, size: 178461
13:39
Merge the pre-3.8.6 changes from trunk into the apple-osx branch. file: [90d3fb97] check-in: [08058df3] user: drh branch: apple-osx, size: 178598
2014-08-12
16:13
Fix compilation issue in the Win32 VFS when manually defining SQLITE_WIN32_NO_ANSI. file: [1c936c7b] check-in: [67159912] user: mistachkin branch: trunk, size: 178368
13:32
Remove support for Win9x. file: [71e08fd8] check-in: [169fc47e] user: drh branch: drop-win9x-support, size: 163212
2014-08-11
17:51
Modify GetVersionEx Win32 VFS fix for use with the test suite. file: [e0260a7b] check-in: [fd222176] user: mistachkin branch: trunk, size: 178250
17:41
Further clarification and typo fixes for the previous comment change. file: [80e4b93c] check-in: [87ef9e2f] user: drh branch: trunk, size: 178166
17:40
Clarify the comment explaining the meaning of the SQLITE_WIN32_GETVERSIONEX macro in the Windows VFS. file: [f8affe82] check-in: [69714287] user: drh branch: trunk, size: 178169
17:38
Fix for #ifdef issue with GetVersionEx in the Win32 VFS. file: [d37c3e70] check-in: [1a0d466d] user: mistachkin branch: trunk, size: 178338
2014-08-06
11:57
On the windows VFS, do not try to make InterlockedCompareExchange an overloadable function, since sometimes it is a macro. file: [3fca1bfd] check-in: [ab1a751e] user: drh branch: trunk, size: 177789
03:06
In the Win32 VFS, work around InterlockedCompareExchange() being a macro on some platforms (e.g. x64). file: [dddffe56] check-in: [7be244ce] user: mistachkin branch: trunk, size: 178006
02:03
Merge all recent changes from trunk. file: [9a7fda78] check-in: [a353a851] user: drh branch: threads, size: 177884
01:51
Merge 3.8.6 beta changes in from trunk. file: [6df6b557] check-in: [b2e01080] user: drh branch: apple-osx, size: 178021
2014-08-02
20:44
Remove (newly) incorrect preprocessor check to fix build on WinRT. file: [e5f0fc44] check-in: [ba782654] user: mistachkin branch: trunk, size: 177791
2014-07-31
18:54
Optimizations to the OS sub-type checking in the Win32 VFS. file: [c67bec43] check-in: [1e5489fa] user: mistachkin branch: trunk, size: 177904
2014-07-30
14:44
Merge recent trunk changes, and especially the fix for the CREATE UNIQUE INDEX problem of ticket [9a6daf340df99ba9]. file: [c4d89c7e] check-in: [5b50a838] user: drh branch: threads, size: 177651
11:49
Merge all recent trunk changes, and especially the R-Tree IN operator fix of ticket [d2889096e7bdeac]. file: [1414edca] check-in: [654c6c65] user: drh branch: apple-osx, size: 177788
2014-07-29
05:49
Enhancements and updates to the Win32 mutex subsystem. file: [c29e3a80] check-in: [18984c32] user: mistachkin branch: winMutex, size: 177558
00:23
Fix the build on windows. file: [047e9031] check-in: [2773a5f9] user: drh branch: threads, size: 177313
2014-06-17
18:43
Experimental changes to use GetFileInformationByHandle instead of GetFileSize in the Win32 VFS. file: [20a15a88] check-in: [d22c8142] user: mistachkin branch: filesize-debug, size: 97934
2014-06-05
13:22
Bring the threads branch up-to-date with the 3.8.5 release. file: [5f8c5568] check-in: [e4b01676] user: drh branch: threads, size: 177509
12:53
Merge in the 3.8.5 release changes and the FTS integrity-check fix. file: [43b07515] check-in: [2dbdfa51] user: drh branch: apple-osx, size: 177646
2014-05-30
16:42
Add tests for the invalid file handle detection logic in the winLock() function. file: [8dbf6c11] check-in: [ed5a9eb4] user: mistachkin branch: winLockHandle, size: 177416
2014-05-29
20:36
Merge trunk changes into the apple-osx branch. file: [26d49ff4] check-in: [b9fad449] user: drh branch: apple-osx, size: 177033
20:24
Merge changes from the trunk into the threads branch. file: [cf4f35cd] check-in: [416cb091] user: drh branch: threads, size: 176896
2014-05-28
03:27
Revise locking retry semantics in Win32 VFS to abort early if the file handle is reported as invalid. file: [a5b9ed90] check-in: [d43e2e59] user: mistachkin branch: winLockHandle, size: 177092
03:23
Revise how OSTRACE reports logically boolean results in the Win32 VFS. file: [648f8428] check-in: [c405f971] user: mistachkin branch: trunk, size: 176803
2014-05-19
15:16
Changes to help ensure that a multiplication does not overflow when computing the number of bytes needed for a memory allocation, and cause a malfunction. No problems existing problems were discovered. However, these changes should help to ensure that no problems arise in the future. file: [fe93fe89] check-in: [17349a49] user: drh branch: safer-malloc, size: 176847
2014-05-09
15:00
Merge the latest trunk changes into the threads branch. file: [b8c28aba] check-in: [9ac8f1e7] user: dan branch: threads, size: 176915
00:36
Fix several harmless compiler warnings. file: [5024065c] check-in: [360c0fd1] user: mistachkin branch: winPreCache, size: 178993
2014-05-08
23:01
Initial attempt to merge in all trunk changes over the previous 1.5 years. This check-in compiles but there are compiler warnings and "make test" segfaults after only running a few test modules. file: [31f80c90] check-in: [9411d7dc] user: drh branch: apple-osx, size: 177052
22:15
Fix typos in logging code. file: [b9c5bcee] check-in: [dc7f84df] user: mistachkin branch: winPreCache, size: 178727
22:08
Fix a memory leak of the temporary read buffer. file: [c9a60c0c] check-in: [37e60d21] user: mistachkin branch: winPreCache, size: 178727
22:05
Update comments and only include the thread routine when required. file: [59befa19] check-in: [a60c545f] user: mistachkin branch: winPreCache, size: 178653
22:01
Experimental changes to pre-cache a database file prior to it being fully opened. file: [70e5fd4b] check-in: [38cbcedb] user: mistachkin branch: winPreCache, size: 178632
2014-05-05
17:45
Merge updates from trunk. file: [485d06a9] check-in: [a3cfd813] user: mistachkin branch: winHdr, size: 176822
2014-05-02
21:42
Merge updates from trunk. file: [63321657] check-in: [598a3875] user: mistachkin branch: winIoRetry, size: 176842
21:38
Merge updates from trunk. file: [089fcb45] check-in: [c4d1d8a0] user: mistachkin branch: winHdr, size: 175273
19:12
Fix typo in Windows makefile. Make sure the WaitForSingleObjectEx system call is always available. file: [187fad4d] check-in: [d7ed529f] user: mistachkin branch: threads, size: 175386
2014-04-22
19:42
Change from using the win32-none VFS to just a query parameter. file: [1662c40d] check-in: [ffceacf6] user: drh branch: win32-none, size: 175848
19:34
Add some OSTRACE calls for consistency. file: [8c74fd4c] check-in: [be292d55] user: mistachkin branch: win32-none, size: 176844
19:30
Add the win32-none VFS which omits rollback-journal locking. file: [a49ee67a] check-in: [03e3c5a8] user: drh branch: win32-none, size: 176652
2014-03-13
15:41
Merge latest trunk changes into this branch. file: [8245fe91] check-in: [d17231b6] user: dan branch: threads, size: 175489
2014-03-06
00:30
Better loadable extension handling in the Win32 VFS when compiled for Cygwin. file: [e71678ac] check-in: [29b0a4f1] user: mistachkin branch: trunk, size: 175293
2014-02-27
05:47
Merge updates from trunk. file: [fe239cec] check-in: [ed0bfcfa] user: mistachkin branch: winIoRetry, size: 176350
2014-02-24
21:42
Fix several small style/consistency issues with the previous check-in. file: [c47f107f] check-in: [2477b3a2] user: mistachkin branch: trunk, size: 174801
21:23
Merge updates from trunk. file: [9ce04372] check-in: [854d410a] user: mistachkin branch: cygDlOpen, size: 175294
21:20
Enhance testing support for the Win32 VFS dynamic extension loading facilities. file: [166d2f19] check-in: [53081e72] user: mistachkin branch: trunk, size: 174802
2014-02-21
10:48
Merge updates from trunk. file: [8099d606] check-in: [09cf240a] user: mistachkin branch: winHdr, size: 174601
05:44
Better loadable extension handling in the Win32 VFS when compiled for Cygwin. file: [23bd567f] check-in: [6676475c] user: mistachkin branch: cygDlOpen, size: 174979
2014-02-18
05:18
Enhance the Win32 VFS I/O retry logic. file: [5c0f315a] check-in: [adba783c] user: mistachkin branch: winIoRetry, size: 176170
2014-02-05
11:05
In the Win32 VFS, the winSysInfo variable should be static. file: [d4284f00] check-in: [4a4dd371] user: mistachkin branch: trunk, size: 174621
2014-01-14
10:17
For the Win32 VFS, defining winShmMutexHeld should be controlled by NDEBUG, not SQLITE_DEBUG. file: [1b21af72] check-in: [1e131094] user: mistachkin branch: trunk, size: 174614
2013-12-09
21:48
Correct the VFS name as reported by the file control when explicitly using the 'win32-longpath' VFS. file: [16eac096] check-in: [c43b59da] user: mistachkin branch: trunk, size: 174619
2013-12-06
15:37
Add code to detect if the database file is moved or deleted out from under SQLite and return an SQLITE_IOERR_NODB. file: [f149798a] check-in: [8759a8e4] user: drh branch: detect-moved-db, size: 174646
2013-11-27
03:01
Avoid using the GetVersionEx functions if they are considered deprecated. file: [4323dd0b] check-in: [0ea9e472] user: mistachkin branch: vs2013, size: 174602
2013-11-26
00:33
Merge updates from trunk. file: [99a5668c] check-in: [c5ab4378] user: mistachkin branch: winHdr, size: 173559
00:28
Better support for UTF-8 paths on Cygwin. file: [cb3f2620] check-in: [9954327c] user: mistachkin branch: trunk, size: 173579
2013-11-25
09:36
Initial work on isolating usage of the Windows header file. file: [423d8f81] check-in: [0d42c6b8] user: mistachkin branch: winHdr, size: 172820
2013-11-24
23:18
Better support for UTF-8 paths on Cygwin. file: [1f7cc110] check-in: [484162b6] user: mistachkin branch: cygUtf8, size: 173388
2013-11-23
00:27
Add experimental sqlite3_config option to control the native Win32 heap size. file: [39e9fc08] check-in: [f09f11e9] user: mistachkin branch: winHeapSize, size: 173031
2013-11-11
02:46
Fix several harmless compiler warnings. file: [ef091b34] check-in: [e6ff492f] user: mistachkin branch: trunk, size: 172840
01:42
Modify a HeapValidate assert in the Win32 native allocator. file: [77c84dde] check-in: [aaed7d1d] user: mistachkin branch: trunk, size: 172828
2013-11-10
00:03
Fix typo in comment and remove superfluous blank line. No changes to code. file: [2027d0a4] check-in: [023233f1] user: mistachkin branch: trunk, size: 172831
2013-11-09
23:55
Fix compilation errors with some compilers that do not reference recent Windows SDK header files. file: [41bf0e50] check-in: [a5805976] user: mistachkin branch: trunk, size: 172832
21:11
Use the UNICODE_STRING_MAX_CHARS constant from WinNT.h. file: [846def34] check-in: [3fefe4dd] user: mistachkin branch: win32heap, size: 172514
21:10
Furhter cleanup of the winGetTempname function. file: [4b18ebe9] check-in: [674de36b] user: mistachkin branch: win32heap, size: 172457
2013-11-08
20:10
Add more assert() statements and fix compilation issues when the Win32 native heap is not enabled. file: [0b867bef] check-in: [fbf8c382] user: mistachkin branch: win32heap, size: 171607
19:51
Disable use of HeapCompact on Windows CE as it is not available on all versions. file: [1426ee90] check-in: [e9694b87] user: mistachkin branch: win32heap, size: 171120
18:52
Adjust the winMemInit return code handling used when resetting the Win32 native heap. file: [c008edfb] check-in: [37853665] user: mistachkin branch: win32heap, size: 171080
18:37
Minor corrections to logging for sqlite3_win32_compact_heap(). file: [2a08242b] check-in: [71347d02] user: mistachkin branch: win32heap, size: 171095
18:13
Enhancements to the Win32 native heap integration. file: [265cd68f] check-in: [c54dc967] user: mistachkin branch: win32heap, size: 171001
2013-11-07
22:11
Fix temporary directory separator handling for Cygwin. file: [cf9fde55] check-in: [9d870d5f] user: mistachkin branch: cygDirSep, size: 167511
2013-10-16
11:31
Fix memory and resource leaks for WinCE and Cygwin, and a compiler warning on windows with SQLITE_THREADSAFE=0. file: [b159b524] check-in: [9905cea9] user: drh branch: trunk, size: 167234
09:49
Fix memory/resource leaks for WinCE and Cygwin. file: [c812a3c3] check-in: [2470d1bb] user: mistachkin branch: wince-fixes, size: 167231
2013-10-11
05:51
Fix compilation issue for WinRT. file: [0fea05bc] check-in: [7a2006ca] user: mistachkin branch: trunk, size: 167166
2013-09-13
23:27
Fix Windows SDK compiler warning. file: [b8f54f42] check-in: [d5fc3f1d] user: mistachkin branch: trunk, size: 167146
2013-09-12
02:09
For error log messages generated by the Win32 native allocator, make sure the correct format specifier is used for the value returned by GetLastError(). file: [0e73f891] check-in: [75a8a8c1] user: mistachkin branch: trunk, size: 166603
01:47
Fix a couple more harmless compiler warnings. file: [d18f670e] check-in: [59708674] user: mistachkin branch: trunk, size: 166596
00:54
Fix harmless compiler warning. file: [af9db764] check-in: [2b510614] user: mistachkin branch: trunk, size: 166187
2013-08-31
18:06
Revise the amalgamation tool to allow 'duplicate' include files to be retained manually while still preserving the existing line numbers. file: [bb592dfb] check-in: [aa482846] user: mistachkin branch: cygwinTempPath, size: 166174
17:01
Enhancements to the Win32 API definition macros. file: [896581ee] check-in: [b1811baa] user: mistachkin branch: cygwinTempPath, size: 166138
02:48
Improve the consistency of the diagnostic messages on Windows. file: [27ab5a22] check-in: [c6f174a0] user: mistachkin branch: cygwinTempPath, size: 165790
2013-08-30
21:52
Add support for Cygwin when handling temporary file names. Improve error codes and diagnostic messages for temporary file name handling on Windows. Rename winConvertUtf8Filename to winConvertFromUtf8Filename. Improve placement and comments for forward function declarations. file: [8e87c271] check-in: [a411df72] user: mistachkin branch: cygwinTempPath, size: 165734
2013-08-28
05:49
Support database file names longer than 260 characters using the new 'win32-longpath' VFS variant. file: [26d75273] check-in: [37e85e44] user: mistachkin branch: mmapDisabled, size: 161593
02:37
Make names of private functions in the Win32 VFS consistent. Fix comment typo in Win32 mutex implementation. file: [0b9ab09d] check-in: [c3b82c5b] user: mistachkin branch: mmapDisabled, size: 159629
02:26
Remove hard-coding of the directory separator in the Win32 VFS. Fixes to OSTRACE macros. file: [7f8cabe0] check-in: [fc98092f] user: mistachkin branch: mmapDisabled, size: 159456
2013-08-26
23:18
Preparation for further Windows path name handling changes. file: [52bbfe7f] check-in: [ec99224b] user: mistachkin branch: mmapDisabled, size: 158825
20:45
Change MAX_PATH related defines to use character lengths where WCHARs are used. file: [c05cd62a] check-in: [0a497083] user: mistachkin branch: mmapDisabled, size: 158376
2013-08-24
23:55
Several modifications to the use of the MAX_PATH macro on Windows to improve consistency. file: [339cdb88] check-in: [bda4c47d] user: mistachkin branch: mmapDisabled, size: 158226
2013-07-31
23:28
Limit the number of memset() calls used when determining a temporary file name on Windows. Also, fix a harmless compiler warning. file: [1d84f207] check-in: [136fc293] user: mistachkin branch: trunk, size: 157882
22:39
Slight modifications to path name translation handling for Cygwin. file: [3a74943b] check-in: [33ba1f4c] user: mistachkin branch: trunk, size: 157499
22:27
Use a new error code to represent a failure to get the configured temporary directory on Windows. file: [aead0182] check-in: [c93d891b] user: mistachkin branch: trunk, size: 157199
19:55
The MAX_PATH constant in windows is measured in characters, so multiple by 3 to get the number of bytes assuming worst-case UTF8 pathnames. file: [d0e9774f] check-in: [bb06e157] user: drh branch: trunk, size: 156963
2013-06-13
15:16
Make the MIN() and MAX() macros available in sqliteInt.h. Add TUNING comments to the NGQP and adjust costs slightly. file: [074cb2b9] check-in: [3a72af2a] user: drh branch: nextgen-query-plan-exp, size: 156486
2013-05-23
01:40
Cause the mmap_size PRAGMA to immediately change the mmap space if the database connection is already active. In particular, reducing mmap_size will immediately free up process address space. file: [5f018dbd] check-in: [76117792] user: drh branch: trunk, size: 156600
2013-05-17
12:10
In os_unix.c and os_win.c, initialize the default mmap-limit of a new file descriptor to the current global default mmap-limit, not the current global maximum allowable mmap-limit. file: [32b8adca] check-in: [1def4ea3] user: dan branch: trunk, size: 156312
2013-05-16
12:41
Fix compilation with SQLITE_OMIT_WAL on Win32. file: [2076d4d1] check-in: [6d45a79f] user: mistachkin branch: trunk, size: 156312
2013-05-09
18:12
Add assert()s to the implementation of xRead() in the built-in VFSes to verify that the offset parameter is always non-negative. file: [4e2bf076] check-in: [cf5c3642] user: drh branch: trunk, size: 156312
2013-04-29
03:09
More refinements to Windows OSTRACE usage. Replace all usage of sqlite3TestErrorName() with sqlite3ErrName() and add missing return codes. file: [bf297963] check-in: [05ba5e23] user: mistachkin branch: winOsTrace, size: 156289
2013-04-28
01:44
Initial work on reforming usage of OSTRACE by the Windows VFS. file: [79bf8963] check-in: [b347b5d1] user: mistachkin branch: winOsTrace, size: 156208
2013-04-15
20:08
Expand scope of the SQLITE_MAX_MMAP_SIZE define for the Win32 VFS. file: [673b3e3d] check-in: [f4b8faab] user: mistachkin branch: trunk, size: 150075
17:03
Refactoring the mmap interface. The controlling pragma is now "mmap_size" instead of "mmap_limit". Also change SQLITE_CONFIG_MMAP_LIMIT and SQLITE_FCNTL_MMAP_LIMIT to SQLITE_CONFIG_MMAP_SIZE and SQLITE_FCNTL_MMAP_SIZE, respecctively. The default mmap_size is now always 0, meaning that memory mapped I/O is off by default. There is a new compile-time option SQLITE_MAX_MMAP_SIZE that determines a hard upper bound on the mmap_size. Setting SQLITE_MAX_MMAP_SIZE to zero disables the memory-mapped I/O logic and causes it to be omitted from the build. An extra argument is added to SQLITE_CONFIG_MMAP_SIZE that can optionally lower the SQLITE_MAX_MMAP_SIZE at start-time. The SQLITE_MAX_MMAP_SIZE is zero for platforms where we know that it does not work, meaning that it cannot be turned on by mistake on those platforms. file: [873bbc5d] check-in: [ea1404a1] user: drh branch: trunk, size: 149871
2013-04-11
22:52
Expand scope of the SQLITE_DISABLE_MMAP define for the Win32 VFS. file: [190be0e6] check-in: [daa168f3] user: mistachkin branch: winDisableMmap, size: 150000
19:04
Increase the version number to 3.7.16.2 and cherrypick the fix for ticket [7ff3120e4fa54abb55]. This check-in is a release candidate. file: [c9699093] check-in: [86f26f91] user: drh branch: branch-3.7.16, size: 140924
18:28
Fix the xCheckReservedLock() method on the windows VFS so that it cannot return a false positive when two or more processes use it at the same time on the same file. Ticket [7ff3120e4fa54abb55] file: [42656347] check-in: [dd3510bb] user: drh branch: trunk, size: 149795
2013-04-09
16:19
Add extra #ifndef statements in os_unix.c and os_win.c to make sure the memory mapped I/O really is disabled when SQLITE_DISABLE_MMAP is set. file: [3aec291c] check-in: [c1e2523c] user: drh branch: trunk, size: 149794
2013-04-04
00:40
Try to use mmap() to speed access to the database file on windows, linux, and mac. file: [3265df8c] check-in: [fff2be60] user: drh branch: trunk, size: 149512
2013-04-03
13:09
Change the mmap_limit pragma to report the new limit, or to report the existing limit if called with no arguments. Report the default mmap_limit as part of PRAGMA compile_options. Set the default mmmap_limit to 0 for all systems other than linux, mac, windows, and solaris. file: [1d0ccc18] check-in: [2d9f1327] user: drh branch: experimental-mmap, size: 149508
10:50
Initialize the mmap_limit of temporary files to the configured mmap_limit. file: [6718b053] check-in: [24bab759] user: drh branch: experimental-mmap, size: 149425
2013-04-02
20:13
Add assert to the Windows VFS pertaining to the size of the SIZE_T type. file: [6a7a1017] check-in: [4eeea583] user: mistachkin branch: experimental-mmap, size: 149424
14:37
Fix a faulty assert() in the os_win.c VFS. file: [6822b2cd] check-in: [fd6ee549] user: drh branch: experimental-mmap, size: 149351
2013-04-01
18:25
Add a comment to xUnfetch on windows to say that the call to winUnmapfile() might be unnecessary. file: [a2f41c9d] check-in: [e3c63c31] user: drh branch: experimental-mmap, size: 149354
18:15
In windows, round down the size of the memory mapped region to the next smaller multiple of the page size. file: [4cb9b262] check-in: [0e44ed1b] user: drh branch: experimental-mmap, size: 149116
17:56
Bug fix in the winMapfile() subroutine: Be sure to record the map object handle in the sqlite3_file object. file: [390653f5] check-in: [ee4d188e] user: drh branch: experimental-mmap, size: 149061
17:22
Add xFetch and xUnfetch methods to the os_win.c VFS. file: [f705e7ce] check-in: [a1653a25] user: drh branch: experimental-mmap, size: 149080
2013-03-25
19:57
Merge all recent trunk changes into the experimental-mmap branch. file: [e4f17ddf] check-in: [a607d63f] user: drh branch: experimental-mmap, size: 147174
2013-03-23
12:15
In the winMremap VFS function, unmap the region prior to attempting to truncate the file. file: [386f8c03] check-in: [8870c4cc] user: mistachkin branch: experimental-mmap, size: 147171
10:09
Do not unmap the mapped file region in winTruncate as there may be outstanding pointers to it. file: [8f7de004] check-in: [f57a9c91] user: mistachkin branch: experimental-mmap, size: 147056
09:56
Preliminary changes to support the xMremap VFS method on Windows. file: [46d2bbad] check-in: [75a85a1c] user: mistachkin branch: experimental-mmap, size: 147111
2013-03-21
21:20
Many spelling fixes in comments. No changes to code. file: [9fe5356f] check-in: [6f6e2d50] user: mistachkin branch: trunk, size: 140923
2013-03-01
23:24
Update the cygwin interface to use the newer 1.7 APIs instead of the 1.5 APIs. Also shorten over-length source code lines in os_win.c. file: [f7da4dc0] check-in: [6b283833] user: drh branch: trunk, size: 140920
2013-02-15
04:21
Check for a NULL handle prior to manually calling winClose. file: [eabd00b8] check-in: [843e1c54] user: mistachkin branch: trunk, size: 140963
2013-02-13
22:54
On WinCE, fill in the winFile structure after winceCreateLock has succeeded. file: [e27fafe8] check-in: [ec13544c] user: mistachkin branch: trunk, size: 140945
2013-02-12
09:46
Improve memory allocation error handling on WinCE. file: [e988c2de] check-in: [09dfc0c9] user: mistachkin branch: wince, size: 140956
2013-02-07
05:12
Add the ability to skip defining the localtime() function when being compiled for WinCE. file: [d19aae35] check-in: [e1640876] user: mistachkin branch: trunk, size: 140586
2012-12-06
19:01
Add the SQLITE_FCNTL_TEMPFILENAME file control that asks the underlying VFS to return a new temporary filename. Per request from NSS team at Mozilla. file: [ce1f5db8] check-in: [1a63b1d5] user: drh branch: trunk, size: 140494
2012-11-21
02:10
In winDelete, determine that a file does not exist by checking for a last error of ERROR_FILE_NOT_FOUND or ERROR_PATH_NOT_FOUND. file: [6e55b48f] check-in: [692ad3c0] user: mistachkin branch: winNotFound, size: 140175
2012-11-20
15:06
Have the windows implementation of xDelete return SQLITE_IOERR_DELETE_NOENT if the file to be deleted does not exist. The unix implementation was previously modified to behave this way. The current changes simply brings the two implementations into alignment. file: [1003f13a] check-in: [d4c36d49] user: drh branch: trunk, size: 139631
2012-10-18
09:39
Fix harmless compiler warnings. file: [43ec1285] check-in: [018e09c7] user: mistachkin branch: warnings, size: 139566
2012-10-08
14:36
Manually define the Win32 file-mapping APIs for WAL if SQLITE_WIN32_FILEMAPPING_API is defined. file: [28bd0277] check-in: [1c2c0a28] user: mistachkin branch: trunk, size: 139494
2012-10-07
00:52
Manually define the Win32 file-mapping APIs for WAL if SQLITE_WIN32_FILEMAPPING_API is defined. file: [8a549824] check-in: [585e2070] user: mistachkin branch: winFileMapping, size: 139428
2012-10-06
03:48
Changes for WinRT compatibility. Also, allow version resource compilation and embedding to be disabled at compile-time. file: [44f39059] check-in: [4b0facc1] user: mistachkin branch: trunk, size: 137998
2012-09-28
10:57
Merge the latest trunk changes (PRAGMA busy_timeout and the ORDER BY query planner enhancements) into the apple-osx branch. file: [1e6b79be] check-in: [6a5c59dd] user: drh branch: apple-osx, size: 137850
2012-09-13
15:24
Improved reporting of filename translation errors in the Windows VFS. file: [90c7a1fe] check-in: [eb0f1c29] user: mistachkin branch: trunk, size: 137620
01:51
Allow SQLite to work on Win32 with SQLITE_OS_WINNT=0 as long as WAL is disabled. file: [d5f19e44] check-in: [c1a85570] user: mistachkin branch: trunk, size: 136779
2012-08-31
14:10
Merge in latest trunk changes. file: [4ee163ba] check-in: [bc9b9cd0] user: dan branch: apple-osx, size: 136123
12:31
Changes for ERROR_PATH_NOT_FOUND in addition to ERROR_FILE_NOT_FOUND in winAccess(). file: [5dec8fe8] check-in: [527340ab] user: drh branch: trunk, size: 135893
2012-08-28
04:20
Issue a log message if the temporary directory has not been set when running on WinRT. file: [3a18cdb2] check-in: [9ee39102] user: mistachkin branch: trunk, size: 135858
2012-08-25
10:01
Fix all known instances of 'repeated the' style typos in comments. No changes to code. file: [421cfe2f] check-in: [9b19b847] user: mistachkin branch: trunk, size: 135695
01:38
Merge all the latest trunk changes into the apple-osx branch. file: [6897cd39] check-in: [6723add4] user: drh branch: apple-osx, size: 135929
2012-08-22
00:18
Add assert to check that the memory block for the previous directory value was allocated via sqlite3_malloc or related function. file: [88f8cc4f] check-in: [1246f15b] user: mistachkin branch: win32SetDir, size: 135699
2012-08-21
23:33
Added sqlite3_win32_set_directory API to assist in portability to WinRT. file: [c177b87e] check-in: [600de08d] user: mistachkin branch: win32SetDir, size: 135619
17:36
Cherry-pick [555fc07]: Changes to the thread routines to disable them when threading is turned off using sqlite3_config(). Also merge all recent trunk changes. file: [a7878531] check-in: [c92b0fe1] user: drh branch: threads, size: 134249
2012-08-17
11:47
Skip defining some WAL specific things in the Win32 VFS code when compiling without WAL support. Also, fix an example command line in the MSVC makefile. file: [b8fc6599] check-in: [61b1ae12] user: mistachkin branch: trunk, size: 134053
2012-08-16
11:24
Update the threads branch to include all the latest trunk changes. file: [904f8515] check-in: [f4125771] user: drh branch: threads, size: 134125
2012-08-14
01:45
Refer to the file mapping Win32 API functions only when absolutely necessary. file: [370c6f33] check-in: [1de2237d] user: mistachkin branch: trunk, size: 133929
2012-08-13
22:05
Refer to the WaitForSingleObjectEx and SetFilePointerEx Win32 functions only for platforms where they are going to be used. file: [5de2e293] check-in: [9888ce92] user: mistachkin branch: trunk, size: 133629
2012-07-23
02:00
Enhance implementation of the Win32 thread wait function. file: [f9f2a456] check-in: [049b0411] user: mistachkin branch: threads, size: 133827
2012-07-21
22:49
Add Win32 support to the internal threads interface. Also, add several asserts and fix a few typos. file: [89978301] check-in: [793195d3] user: mistachkin branch: threads, size: 133733
2012-06-08
01:13
Merge trunk changes into the apple-osx branch. file: [85f7d60e] check-in: [9d1b8515] user: drh branch: apple-osx, size: 133861
2012-06-04
05:18
When not compiling for WinRT, skip using a couple Win32 APIs unavailable when compiling with MinGW. file: [e3d3d3e2] check-in: [eb29e2d9] user: mistachkin branch: winrt, size: 133631
2012-05-31
22:12
Update several APIs to enable compilation with newer revisions of WinRT. file: [ce6b415a] check-in: [54de739f] user: mistachkin branch: winrt, size: 133633
2012-05-17
21:04
Merge updates from trunk. file: [37e1b92f] check-in: [224c65e4] user: mistachkin branch: winrt, size: 133161
2012-05-10
12:09
Merge in the legacy table constraint parsing fixes from trunk. file: [24b57b4a] check-in: [e8770283] user: drh branch: apple-osx, size: 118114
2012-05-07
20:28
Merge Windows directory checking changes from trunk. file: [ce348d15] check-in: [7a7466f4] user: mistachkin branch: winrt, size: 133163
17:16
Simplify directory checking for winOpen and add checking to winDelete. file: [412d6434] check-in: [b08530e1] user: mistachkin branch: win-check-dir, size: 117884
13:15
Do not do the AV retry loop on open if the file that is attempting to be opened is really a directory. file: [52455150] check-in: [03875633] user: drh branch: win-check-dir, size: 116870
2012-04-18
05:57
Import all the latest trunk changes into the WinRT branch. Refactor and/or remove WinCE-specific macros and functions used for file locking to improve clarity of presentation. file: [c3487c9c] check-in: [ad5cd15f] user: mistachkin branch: winrt, size: 131337
2012-03-31
02:46
Merge all the latest trunk changes into the apple-osx branch. file: [12e76b4a] check-in: [18ec60ca] user: drh branch: apple-osx, size: 116663
2012-03-30
16:44
Avoid using the OVERLAPPED struct on WinCE. file: [5e9e933a] check-in: [196ca3a8] user: mistachkin branch: trunk, size: 116433
15:57
Simplify the winRead and winWrite VFS functions to reduce the number of system calls. file: [c7b26b78] check-in: [b3449186] user: drh branch: trunk, size: 115992
12:27
Simplify the winRead and winWrite VFS functions to reduce the number of system calls. file: [6f8080e7] check-in: [10ce8467] user: mistachkin branch: winrt, size: 131277
2012-03-19
23:28
Fix typo, use the syscall table for osOutputDebugStringA. file: [d9654717] check-in: [9598c2a3] user: mistachkin branch: winrt, size: 130630
2012-03-18
03:22
On Windows, when no temporary path is available, skip prepending the directory separator. file: [aeb0aee1] check-in: [32b5c20e] user: mistachkin branch: winrt, size: 130626
2012-03-15
03:40
Add SQLITE_WIN32_HEAP_CREATE compiler define to control whether or not the Win32 native allocator will create an isolated heap for all allocated data. file: [9bbe851c] check-in: [8693fb65] user: mistachkin branch: winrt, size: 130533
2012-03-14
23:08
Fix macro issues for osGetProcessHeap and sqlite3_win32_write_debug. file: [a2e9d481] check-in: [d3d07159] user: mistachkin branch: winrt, size: 129550
20:20
Fix typos, use #if instead of #ifdef when checking for the Win32 native heap validation define. file: [817bce5d] check-in: [845aa46f] user: mistachkin branch: winrt, size: 129540
20:17
Avoid redefining macros. Enable use of the Win32 native heap on WinRT. Use the syscall table to call OutputDebugStringW and fix type casting warnings. file: [7f5f9d8e] check-in: [46c412a8] user: mistachkin branch: winrt, size: 129504
00:44
Add experimental support for resolving relative database file paths using a fixed user-defined directory. file: [ed4f4f5c] check-in: [7354ae8f] user: mistachkin branch: winrt, size: 128778
2012-03-13
03:38
Add assert to verify the number of characters to write in sqlite3_win32_write_debug. file: [c47a86a8] check-in: [8083f616] user: mistachkin branch: winrt, size: 125565
03:35
Defer creation of the sleep event object until it is needed. Added sqlite3_win32_write_debug and sqlite3_win32_sleep APIs to assist in portability to WinRT. file: [30a479f3] check-in: [7af88ad3] user: mistachkin branch: winrt, size: 125498
01:30
Cleanup the Windows syscall table, removing the unused CreateFileMapping entry. file: [8e0c3142] check-in: [fb7d8bf6] user: mistachkin branch: winrt, size: 123506
01:16
More changes required to compile for WinRT using VS 11 beta. Also, replace more APIs with their WinRT alternatives. file: [3dc4b1a7] check-in: [6b997d9c] user: mistachkin branch: winrt, size: 123599
2012-03-07
20:11
When compiled for WinRT, use the CreateFile2 and LoadPackagedLibrary functions instead of CreateFile and LoadLibrary. file: [ca9ff634] check-in: [27d6942c] user: mistachkin branch: winrt, size: 122087
2012-03-05
22:52
Add compile-time define to indicate if the VFS supports the concept of a current directory (as WinCE and WinRT do not). Avoid using the GetTempPath and GetFullPathName APIs on WinRT. Some tests still need adjustments. file: [75d5de49] check-in: [86c049a1] user: mistachkin branch: winrt, size: 120210
2012-03-04
02:56
When creating the event used to sleep on WinRT, request the minimum access rights required for the desired operations on it (i.e. SYNCHRONIZE). file: [a6f5e7b3] check-in: [ed603d75] user: mistachkin branch: winrt, size: 120063
2012-03-03
13:15
When compiled for WinRT, avoid using MapViewOfFile and GetFileAttributes. Also, reset the private 'sleep' event handle when the VFS is cleaned up. file: [26867d8b] check-in: [38df8fc1] user: mistachkin branch: winrt, size: 120073
2012-03-02
23:53
When compiled for WinRT, avoid using the FORMAT_MESSAGE_ALLOCATE_BUFFER flag to FormatMessage (i.e. because LocalFree is unavailable). file: [bde6f186] check-in: [9eb331be] user: mistachkin branch: winrt, size: 119456
22:38
When running on Windows with an NT-based kernel, always use the LockFileEx/UnlockFileEx functions (with the correct flags). file: [f6b9fa7a] check-in: [3e7ba3dd] user: mistachkin branch: winrt, size: 118993
13:47
Add new Win32 APIs used to the system call table. Add error handling code for SetFilePointerEx. Make sure the last error number is saved from the call to GetFileInformationByHandleEx. file: [7378d50e] check-in: [a782d2dc] user: mistachkin branch: winrt, size: 117151
00:00
Omit all ANSI APIs for winRT. file: [5593c84a] check-in: [cbf23b46] user: drh branch: winrt, size: 115450
2012-03-01
22:44
Use GetInformationByHandleEx() instead of GetFileSize() on winRT. file: [c7fc501c] check-in: [119f251d] user: drh branch: winrt, size: 117003
22:06
Use SetFilePointerEx() instead of SetFilePointer() on winRT. file: [f5d551ef] check-in: [36efafc6] user: drh branch: winrt, size: 116494
21:19
Use WaitForSingleObjectEx() as a substitute for Sleep on winRT. file: [b9c36459] check-in: [bf897be0] user: drh branch: winrt, size: 116066
2012-01-30
16:13
Do not rely on the _WIN32_WINNT macro as vs2005 does not define it by default. Instead, always assume winNT unless the makefile explicitly sets SQLITE_OS_WINNT=0. file: [f954207e] check-in: [4f0997c7] user: drh branch: nx-devkit, size: 115912
2012-01-14
14:13
Merge the latest trunk changes into the apple-osx branch. file: [30dce5f0] check-in: [2cc414cd] user: drh branch: apple-osx, size: 115575
2012-01-11
01:01
Prevent winOpenSharedMemory from masking the real return code from its call to winOpen. Also, add asserts to check the double-zero termination of database file names. file: [5ac061ae] check-in: [93a65776] user: mistachkin branch: trunk, size: 115345
2012-01-10
00:24
Remove the BenignMalloc() from around the call to FCNTL_OVERWRITE. Add new ones around sqlite3OsDelete(). Fix an assert that causes problems for the nx-devkit. file: [e344ccb7] check-in: [38bc4236] user: drh branch: trunk, size: 115076
2012-01-08
12:32
Make sure the shared-memory filename sythesized by os_win.c is double-zero terminated, so that it can be used with sqlite3_uri_parameter(). file: [5f24afbc] check-in: [429380f9] user: drh branch: trunk, size: 115006
2012-01-05
11:43
Remove the SQLITE_FCNTL_SYNC_OMITTED cases from the unix and windows VFSes as they are no longer needed because of check-in [fd3822f1f2]. file: [88b35c8f] check-in: [7cf568a1] user: drh branch: trunk, size: 114993
2012-01-03
21:54
Pull all the latest trunk changes over into the apple-osx branch. file: [d4eb8561] check-in: [8a048423] user: drh branch: apple-osx, size: 115291
14:50
Make sure filenames passed into sqlite3OsOpen() always have the extra zero-terminators needed by sqlite3_uri_parameter(). file: [f1057db6] check-in: [d73e93cf] user: drh branch: trunk, size: 115061
2012-01-02
18:20
Remove the code that attempts to find the sector size from the OS and hardcode the xSectorSize methods of the unix and windows VFSes to return SQLITE_DEFAULT_SECTOR_SIZE, which is now set to 4096 unless overridden. file: [0d3522dd] check-in: [03d8362c] user: drh branch: trunk, size: 115061
2011-12-23
01:04
Change the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE. The query parameter used to control this device characteristic is now "psow". file: [569fe744] check-in: [6191c5e4] user: drh branch: statvfs, size: 117340
00:25
Merge the latest trunk changes into the statvfs branch. file: [f45f03e4] check-in: [d5e36327] user: drh branch: statvfs, size: 117327
2011-12-21
14:42
Add the ability to enable or disable SQLITE_IOCAP_ZERO_DAMAGE using a URI parameter for both unix and windows. Add a file-control to query or disable the ZERO_DAMAGE setting. Add the -uri option to the "sqlite3" TCL command in tclsqlite3.c. Allow the sqlite3_uri_parameter() interface to accept a NULL pointer for its first parameter. file: [4fc4aa8a] check-in: [c83627b7] user: drh branch: statvfs, size: 117457
2011-12-17
19:49
Add SQLITE_IOCAP_ZERO_DAMAGE and enable it for both unix and windows. Use this device characteristic to reduce the required work in journaling. A side effect is that this changes the default page exists back to 1024 even with the use of statvfs(). file: [3cf34661] check-in: [a0be6ea4] user: drh branch: statvfs, size: 116502
2011-12-14
18:33
Merge the nx-devkit changes into trunk. This includes the new SQLITE_FCNTL_VFSNAME file-control. file: [197d23ce] check-in: [da118e02] user: drh branch: trunk, size: 116466
17:53
Add a file-control that will discover the name of the bottom-level VFS and all the shims in between. file: [823f5585] check-in: [cdbfb553] user: drh branch: vfsname-filectrl, size: 115918
00:37
Treat a zero return value from the Win32 APIs MultiByteToWideChar and WideCharToMultiByte as an error condition. file: [745cfae0] check-in: [c65e5a36] user: mistachkin branch: trunk, size: 116355
2011-12-08
21:08
Merge the latest trunk changes into the apple-osx branch. file: [4c546bde] check-in: [59e0d4f3] user: drh branch: apple-osx, size: 116437
03:51
Follow the previously established pattern for detecting preprocessor defines for specific flavors of Windows (for NT in this case). file: [8af100f7] check-in: [a0d92193] user: mistachkin branch: trunk, size: 116207
2011-11-21
00:54
Cleanup the semantics surrounding use of the GetLastError function on Windows. file: [6efe66a3] check-in: [7e657bbb] user: mistachkin branch: winGetLastError, size: 116213
2011-11-12
03:17
Make sure to flag benign malloc failures in the Windows VFS as such. Expand use of the DO_OS_MALLOC_TEST to cover the VFS functions that can now return an out of memory error. Support an experimental --match option to the test suite that will run only those tests matching the specified pattern. file: [a22b88d2] check-in: [76dec8aa] user: mistachkin branch: winSyscall, size: 115807
2011-11-11
23:31
Remove use of malloc and free from the Windows VFS. Also, prevent sqlite3BtreeOpen from assuming that sqlite3OsFullPathname cannot fail. file: [ee8ba084] check-in: [8966ec17] user: mistachkin branch: winSyscall, size: 115547
22:08
Work in progress to implement the 'syscall' functionality for Windows. file: [1d8fe13d] check-in: [ed88fb00] user: mistachkin branch: winSyscall, size: 116367
2011-11-10
21:45
Expand passing of a last error argument to the getLastErrorMsg function. Also, remove unused SQLITE_W32_THREADS define. file: [d6cf7186] check-in: [8f287979] user: mistachkin branch: trunk, size: 98815
20:21
In winAccess, save the Win32 last error value prior to invoking user logging callback. Also, explicitly pass the Win32 last error value to winLogError in order to keep it accurate. Fixes a problem reported on the mailing list. file: [a9190cb7] check-in: [32ab3657] user: mistachkin branch: trunk, size: 98804
2011-11-09
18:07
Omit an unnecessary Sleep() call in windows pending-lock retry logic. Enhance the comment on that logic to discourage people from copying it into other VFSes. file: [6749a95c] check-in: [0c951a97] user: drh branch: trunk, size: 98193
2011-10-21
17:18
Merge the latest trunk changes into the apple-osx branch. file: [4e61b811] check-in: [be62ef05] user: drh branch: apple-osx, size: 98265
2011-10-13
14:05
Make sure all non-API functions in os_win.c have file scope. Ticket [35c54c874987] file: [49d41891] check-in: [17e4fde5] user: drh branch: trunk, size: 98035
2011-10-12
23:13
The date/time functions return NULL if the xCurrentTime or xCurrentTimeInt64 VFS methods fail. Ticket [0b803bff856c644c] file: [58c1cef8] check-in: [c96651dd] user: drh branch: trunk, size: 98014
2011-10-11
14:19
Merge the latest trunk changes into the apple-osx branch. file: [2d6f0e6f] check-in: [7e2c4898] user: drh branch: apple-osx, size: 98202
2011-10-10
23:53
Forward port the Apple-specific changes from [db5b7b778c] in the apple-osx-377 branch. Fix this up so that it will compile and run on Linux. file: [3fc8f4bb] check-in: [6cb43f6c] user: drh branch: apple-osx, size: 98186
22:11
Merging in cherry picked diffs for persist wal, alloc padding, wal-safe vacuum and sqlite3_file_control based lockstate checking file: [daa67fe0] check-in: [db5b7b77] user: adam branch: apple-osx-377, size: 88545
2011-09-25
17:47
If an open as read/write fails, do not try to reopen as read-only if in exclusive access mode. file: [fbe47c7f] check-in: [4a153f01] user: drh branch: stat3-trunk, size: 97972
2011-09-16
20:43
Fix #if's in winSync to avoid compiler warnings about unused local variables. Also, update version numbers in the MSVC makefile. file: [0fc0f46c] check-in: [2e66e414] user: mistachkin branch: trunk, size: 97956
2011-09-02
15:08
Remove unused local variable. file: [33b7b7b4] check-in: [61bda876] user: mistachkin branch: trunk, size: 97726
2011-08-30
01:23
Make sure SQLITE_FCNTL_SIZE_HINT a no-op if the chunk size is not greater than zero. file: [45de13c6] check-in: [88b763e8] user: mistachkin branch: trunk, size: 97765
2011-08-26
01:45
Disable checking the winMemData structure signature when compiled with NDEBUG. file: [86bcb5bd] check-in: [50edc2f9] user: mistachkin branch: winNativeHeap, size: 97677
01:32
Allow the Win32 native heap flags to be overridden at compile-time. file: [dc2e61b0] check-in: [1c2ecec8] user: mistachkin branch: winNativeHeap, size: 97550
2011-08-25
01:58
Cherrypick the [d4f6437f8d] change so that SQLITE_FCNTL_SIZE_HINT is always honored and never undone by memory pressure on windows. file: [19fa0904] check-in: [67ff8d27] user: drh branch: trunk, size: 90802
01:16
Make sure that SQLITE_FCNTL_SIZE_HINT on Windows does not shrink the file. file: [7d27ec1e] check-in: [d4f6437f] user: mistachkin branch: winNativeHeap, size: 97014
2011-08-24
17:42
Add error logging to native Win32 heap support. file: [f9958ef7] check-in: [7fca5a28] user: mistachkin branch: winNativeHeap, size: 96820
16:13
Experimental work to allow SQLite to use the native Win32 heap API. file: [a9950bf0] check-in: [bf3d0ab5] user: mistachkin branch: winNativeHeap, size: 95869
2011-08-02
00:57
Add retry logic for AV defense to winOpen. Also, refactor test suite to allow the key Tcl file operations (e.g. copy and delete) to be retried. file: [4eb6fa00] check-in: [9007586f] user: mistachkin branch: winopen-retry-logic, size: 90608
2011-07-28
20:48
Merge changes for the new sqlite3_file_control() that will cause the -wal and -shm files to persist after the last database connection closes. file: [60af92b1] check-in: [1b56677b] user: mistachkin branch: trunk, size: 90225
19:16
Remove redundant sub-expression from retry loop invariant in winAccess. Also, make check for SQLITE_ACCESS_READWRITE formally correct. file: [f79cb7c3] check-in: [93079a92] user: mistachkin branch: trunk, size: 89931
07:34
Fix conditional for retry logic in winAccess and add missing call to logIoerr. file: [2d96ae3e] check-in: [8a145863] user: mistachkin branch: trunk, size: 89894
2011-07-26
16:23
Test cases added. Fix the query mode. file: [7dd45f72] check-in: [a9d8794a] user: drh branch: persistent-wal-patch, size: 90166
16:03
Prototype change for a new sqlite3_file_control() that will cause the -wal and -shm files to persist after the last database connection closes. file: [313f48b6] check-in: [e34c553b] user: drh branch: persistent-wal-patch, size: 90163
2011-07-22
21:25
Add retry logic for AV defense to winAccess(). Also allow OS tracing to be enabled by a compile-time option. file: [8449cb4c] check-in: [a6b85c73] user: drh branch: av-defense, size: 89872
2011-07-13
16:03
Added the SQLITE_FCNTL_WIN32_AV_RETRY file control for configuring the retry counts and delays in the windows VFS. file: [c5eadb2c] check-in: [7aaf0a6a] user: drh branch: trunk, size: 89801
2011-07-12
14:02
Revise logic in winDelete to check the file prior to attempting to delete it. file: [57778b70] check-in: [36f11acc] user: mistachkin branch: av-defense, size: 89392
13:51
Improvements to the logging that occurs on an antivirus I/O retry. file: [07050df9] check-in: [ff0ff75c] user: drh branch: av-defense, size: 89110
11:04
Update the anti-virus retry logic for DeleteFile(). Invoke sqlite3_log() for each anti-virus retry. Make the retry delay configurable at compile-time. file: [4cea89f0] check-in: [89f1848d] user: drh branch: av-defense, size: 88954
2011-07-11
18:17
Change the windows backend to retry read and write requests if the encounter ERROR_LOCK_VIOLATION and ERROR_SHARING_VIOLATION errors - which we think sometimes happens due to aggressive anti-virus software. file: [6ba8a531] check-in: [c20aca06] user: drh branch: trunk, size: 89139
2011-06-20
20:48
Add additional error check for disk full on Windows. file: [eafcd6b9] check-in: [3ee5d1a5] user: shaneh branch: trunk, size: 88251
2011-05-17
20:36
Add the ability to limit filenames to 8+3 using the SQLITE_ENABLE_8_3_NAMES compile-time option together with a URI parameter of "8_3_names=1". file: [218b8994] check-in: [96d60985] user: drh branch: trunk, size: 88198
2011-05-05
18:53
Have the xFullpath method in os_win.c discard the initial "/" if a filename begins with "/X:", where X is any alphabetic character. Also fix some test issues in uri.test. file: [ff0e1461] check-in: [fe57a8f6] user: dan branch: uri, size: 88144
2011-04-27
19:54
In windows, ignore ERROR_NOT_LOCKED when calling the read-lock removal routine. file: [4271f0bf] check-in: [f55156c5] user: drh branch: trunk, size: 87908
16:05
Expose the UTF8 to MBCS conversion routine in os_win.c to external applications. file: [0d2fb750] check-in: [7b479b9b] user: drh branch: trunk, size: 87874
2011-04-15
20:18
Updates to test code in os_win to bring winSync inline with unixSync (test code only). Updated a few test scripts to account for dirsync counting issues on Windows. file: [d149b9a7] check-in: [8f99c5bf] user: shaneh branch: trunk, size: 87849
13:29
Add retry logic to GetFileAttributesEx() on windows. file: [96ab57a5] check-in: [1cca9a49] user: drh branch: experimental, size: 88023
2011-04-13
23:42
Remove extra CR and NL characters from FormatMessage() generated error messages in the windows VFS. file: [177a14a0] check-in: [8332949c] user: drh branch: trunk, size: 87833
20:26
Add new extended error codes for I/O errors on seek and shared-memory map. Add sqlite3_log() calls in the windows backend to record details of errors. file: [bcd4fbe3] check-in: [fe603217] user: drh branch: trunk, size: 87704
2011-03-02
19:06
Add additional VFS methods to retrieve system call pointers and to get a list of all changeable system calls. file: [24d72407] check-in: [38558363] user: drh branch: syscall-override, size: 85346
15:09
Proof-of-concept prototype for the proposed xSetSystemCall extension method on the VFS. file: [c2df806a] check-in: [92b5a76a] user: drh branch: syscall-override, size: 85253
2011-01-26
19:46
Update all built-in VFSes to return SQLITE_OK for the SQLITE_FCNTL_SYNC_OMITTED file-control operation. Also change the xFileControl methods to return SQLITE_NOTFOUND for unrecognized operation codes. file: [9abdcdd9] check-in: [6f2c72a0] user: drh branch: trunk, size: 85207
2010-09-03
04:29
Reduce the amount of memory taken up by WAL mmaped regions under Windows. file: [2f90f7bd] check-in: [f213e133] user: shaneh branch: trunk, size: 85136
2010-09-01
02:38
Fix some compiler warnings under MSVC. file: [6fb3447f] check-in: [afdc82a9] user: shaneh branch: trunk, size: 83758
2010-08-24
20:46
Replicate asserts on unixOpen() to winOpen() in os_win.c. file: [718a48ca] check-in: [40526d83] user: shaneh branch: trunk, size: 83667
2010-08-07
11:46
Merge in all changes up to the 3.7.0.1 release. file: [ed741817] check-in: [f88c6367] user: drh branch: apple-osx, size: 80725
2010-07-28
14:26
Support FCNTL_CHUNK_SIZE on windows too. file: [51cb62f7] check-in: [a038688c] user: dan branch: experimental, size: 81866
2010-07-20
20:23
Added fix to os_win.c for race conditions from os_unix.c; added saving of errno in two places. file: [1f8b0a1a] check-in: [13ed106c] user: shaneh branch: trunk, size: 80585
2010-07-14
00:14
Change the name of the xShmClose VFS method to xShmUnmap, everywhere. file: [61734aad] check-in: [c2d27cf5] user: drh branch: experimental, size: 80002
2010-07-13
18:44
Changes so that the xShmOpen VFS method is no longer required. Its job can be done by the first call to xShmMap. Rename xShmClose to xShmUnmap. file: [3bb7e081] check-in: [f4780bde] user: dan branch: experimental, size: 80002
2010-07-12
20:46
Updates to comments and code organization to reflect changes in os_unix.c; Updated winShmLock() with logic changes from unixShmLock(); Modified IO error returns in winShmMap() to match those in unixShmMap(); file: [04c8828e] check-in: [b73fe275] user: shaneh branch: trunk, size: 80022
2010-07-08
03:13
Changes to os_win.c to have it simulate IO errors like os_unix.c. file: [b39c2c26] check-in: [0d53da94] user: shaneh branch: trunk, size: 78100
2010-07-07
14:45
Fixed a new error introduced by last check-in of os_win.c. Updated xAccess() to support SimulateIOError(). file: [f0a56db5] check-in: [8eefc287] user: shaneh branch: trunk, size: 76400
13:58
Fix minor issue in xAccess() method for Windows. file: [c4b78554] check-in: [4bfd46f1] user: shaneh branch: trunk, size: 76189
2010-07-06
20:33
Modified the xWrite() method on Windows to differentiate between IO and disk full error returns. file: [f0c97512] check-in: [ca4b7ffb] user: shaneh branch: trunk, size: 76073
2010-07-05
21:00
Modify the VFS xAccess() method on winNT so that it returns false for an exists test of a zero-length file. This makes the windows VFS work the same as the unix VFS. file: [bdc05819] check-in: [ec35f254] user: drh branch: trunk, size: 75865
2010-07-03
17:13
Remove the unused xRename() method from the sqlite3_vfs object. Add better documentation on the xCurrentTimeInt64() method. file: [883caa09] check-in: [51ec0e54] user: drh branch: trunk, size: 75415
2010-07-02
19:49
Changes to os_win.c to have it return same error code as os_unix.c. file: [dd4c6f23] check-in: [33b6f069] user: shaneh branch: mistake, size: 75454
17:05
Fix some warnings when compiling under MSVC. file: [e82ed9e1] check-in: [70833877] user: shaneh branch: mistake, size: 75384
2010-06-25
12:52
Change the name of the shared-memory file on windows from *-wal-index to *-shm, for consistency with unix. file: [48f67798] check-in: [5995cb15] user: drh branch: trunk, size: 75360
2010-06-23
17:58
Adjust the shared-memory locking range to account for the new version number values in the wal-index header. file: [00385a83] check-in: [a6dc0df3] user: drh branch: trunk, size: 75366
15:18
Fix the xCurrentTimeInt64 interface on windows. It was off by a factor of 10. file: [e5b62352] check-in: [51ef43b9] user: drh branch: trunk, size: 75366
2010-06-19
18:12
Change the name of IOCAP_SAFE_DELETE to IOCAP_UNDELETABLE_WHEN_OPEN. Have the xDeviceCharacteristics() method of the win32 VFS return this flag. file: [73608839] check-in: [5a5ff4e3] user: dan branch: experimental, size: 75365
2010-06-14
18:01
Move the xShmMap method to in between xShmLock and xShmBarrier, since it seems to fit in there logically. file: [dfde7d33] check-in: [58dfd83d] user: drh branch: trunk, size: 75332
16:16
Add the new xShmMap (formerly xShmPage) to os_win.c. file: [3d761e33] check-in: [13e7a824] user: dan branch: experimental, size: 75382
2010-06-03
18:02
Performance fix for winShmClose(). file: [0cf1f571] check-in: [ed7774de] user: drh branch: trunk, size: 77817
2010-05-31
16:10
Get the new xShmLock interface design working on os_win.c. file: [f815403c] check-in: [149a7082] user: drh branch: wal-incr-ckpt, size: 77774
2010-05-26
15:06
Change the semantics of xShmGet() such that it will never increase the size of shared memory. xShmSize() must be used to grow the size of shared memory. A shared memory segment size cannot be shrunk (except by dropping it). file: [81dd8f54] check-in: [72de0073] user: drh branch: trunk, size: 89341
2010-05-25
13:40
Update header comments in wal.c to correctly describe the WAL file format. Update the locking region offsets in os_unix.c and os_win.c and add assert() statement to verify that the locking region offsets are correct. file: [e300c8f8] check-in: [40030c07] user: drh branch: trunk, size: 89489
2010-05-20
23:51
Add a new xShmBarrier method to the VFS - a shared-memory fence operation. Implement the same in both unix and win32. Use it to make the WAL subsystem more robust. file: [1e44ee84] check-in: [1bd011c9] user: drh branch: trunk, size: 89489
2010-05-19
23:41
Merge WIN32 WAL support into trunk. Still some issues with locking to resolve. file: [3c8cafd2] check-in: [43377663] user: shaneh branch: trunk, size: 89017
22:09
Cherry-pick the SQLITE_FCNTL_SIZE_HINT patch (check-in [2b7e3b4a30d6a7c4a8] and bump the version number to 3.6.23.2. file: [bc65553f] check-in: [776679af] user: drh branch: branch-3.6.23, size: 56433
19:39
Add the SQLITE_FCNTL_SIZE_HINT to the os_win.c VFS. file: [c067d641] check-in: [9894118d] user: drh branch: trunk, size: 56448
2010-05-14
16:34
Pull in all the latest changes from the trunk. Update the win32 SHM methods to work with the new interface design. file: [e0a74dd6] check-in: [4b69f2cd] user: drh branch: wal-win32, size: 88877
11:30
Change the OSTRACEn() macro to OSTRACE(()). Also rename some internal fields and variables in os_unix.c to be more meaningful and searchable. file: [70c4a332] check-in: [5fe529f2] user: drh branch: trunk, size: 56308
2010-05-12
17:14
Updates to WAL support in os_win.c: pulled in latest changes from src/os_unix.c; updated tracing; misc. improvements. file: [858e3834] check-in: [76504726] user: shaneh branch: wal-win32, size: 87647
2010-05-11
02:49
Initial port of WAL VFS support from os_unix.c to os_win.c. file: [0bd69843] check-in: [111ad59f] user: shaneh branch: wal-win32, size: 87489
2010-04-27
11:49
Add the xShmRelease() method to the VFS. The os_unix.c implementation of the shared memory logic is still non-functional. file: [a8fc01d8] check-in: [ed715b47] user: drh branch: wal, size: 56293
2010-04-26
00:04
Begin moving WAL-specific I/O into the VFS. This checkin contains VFS infrastructure but it is untested and is not yet hooked up to the WAL. The version number is bumped to 3.7.0 because of the VFS extension. file: [607b40e4] check-in: [f5e615c2] user: drh branch: wal, size: 56646
2010-02-23
17:36
Remove the obsolete sqlite3SafetyOn() mechanism. Add additional logging output for CORRUPT, and CANTOPEN errors. file: [1c7453c2] check-in: [7c4cca6d] user: drh branch: trunk, size: 56293
2009-11-03
19:42
Fix compiler warnings on MSVC build. file: [5ffab202] check-in: [01c4b5b8] user: shane branch: trunk, size: 56283
2009-10-21
02:00
For Windows VFS, modified xGetLastError() to call FormatMessage() with the FORMAT_MESSAGE_IGNORE_INSERTS option. Additionally updated to ensure strings are returned as UTF8. Ticket [39c85e8a4e]. file: [d0290884] check-in: [761396f8] user: shane branch: trunk, size: 56279
2009-09-10
20:23
Fixed some warnings and an assert in the WINCE code when compiling under MSVC. file: [49a360be] check-in: [f42ec993] user: shane branch: trunk, size: 54999
2009-08-17
15:52
Move error simulation code from the sqlite3_os_init() functions into a wrapper. file: [58bb163f] check-in: [67ad21ab] user: dan branch: trunk, size: 54894
15:16
Add tests to check that sqlite recovers from an error in sqlite3_initialize() correctly. file: [a3e93d1b] check-in: [904a371c] user: dan branch: trunk, size: 55162
2009-08-12
15:34
Fixed some compiler warnings in WINCE only sections when using the MSVC compiler. file: [6de69d8f] check-in: [1f0a93e1] user: shane branch: trunk, size: 54953
2009-08-05
04:08
Simplified conditional for read-only lock in winceLockFile() function. Ticket #3991. (CVS 6958) file: [79bb3c59] check-in: [a1c184cd] user: shane branch: trunk, size: 54487
2009-04-23
19:08
os_win.c, winOpen(), changed to handle the SQLITE_OPEN_EXCLUSIVE flag and sharing modes in the same manner as os_unix.c. Ticket #3821. (CVS 6542) file: [725c38a5] check-in: [18fef3fc] user: shane branch: trunk, size: 54549
2009-04-15
14:36
Fix access violation on WinCE platforms. Ticket #3804. (CVS 6509) file: [c3d0354b] check-in: [e203ad40] user: shane branch: trunk, size: 54078
2009-04-09
14:27
Provide dummy DWORD arguments to output parameters of GetDiskFreeSpace(A|W), NULL causes access violations on Windows NT 4.0 (CVS 6477) file: [25092e59] check-in: [5350a658] user: chw branch: trunk, size: 54170
2009-03-31
03:41
Fix compiler warnings from gcc and MSVC; Correct typo in select.c; (CVS 6417) file: [524fe4c3] check-in: [76851417] user: shane branch: trunk, size: 54139
2009-03-30
13:04
Make sure recursive calls to winOpen() preserve the pVfs pointer. Fault found while testing a mingw build in VMWare. (CVS 6410) file: [e655b2a6] check-in: [18b44f0d] user: drh branch: trunk, size: 53931
12:42
Avoid all use of the "LL" suffix for long-long integer literals. Ticket #3759. (CVS 6408) file: [07f7c803] check-in: [7ef36935] user: drh branch: trunk, size: 53928
2009-03-05
05:54
Implemented winSectorSize(); Other changes for consistency. os_win.c. Ticket #2931. (CVS 6339) file: [40636702] check-in: [68abcb27] user: shane branch: trunk, size: 54269
04:20
Corrected typos and misspellings. Ticket #3702. (CVS 6336) file: [4a91fbbe] check-in: [6404afa0] user: shane branch: trunk, size: 52146
2009-02-05
03:16
Fixed error detection in winTrucate() in os_win.c. Windows version only. Ticket #3640. (CVS 6262) file: [45cb4308] check-in: [82e03f1b] user: shane branch: trunk, size: 52145
2009-02-04
03:59
Changes to completely remove all floating point ops if SQLITE_OMIT_FLOATING_POINT defined. Note that w/o fp, date/time, round, nan, etc. are all gone or limited in functionality. Updated some of the test scripts to support missing fp and 64-bit functionality. Ticket #3029. (CVS 6250) file: [b83b57c2] check-in: [5cef4000] user: shane branch: trunk, size: 52041
2009-01-30
05:59
Implemented the SQLITE_LAST_ERRNO op in the xFileControl() method of os_win.c. Ticket #3615. (CVS 6217) file: [ec133f2a] check-in: [9ea871f3] user: shane branch: trunk, size: 50841
2008-12-11
02:58
Removed a few more harmless warnings from MSVC. (CVS 6018) file: [496e3ceb] check-in: [72fd92bd] user: shane branch: trunk, size: 49755
2008-12-10
22:30
Work to remove harmless MSVC compiler warnings. (CVS 6013) file: [d42d591b] check-in: [715dcd52] user: shane branch: trunk, size: 49721
21:19
Additional work at eliminating silly compiler warnings. (CVS 6010) file: [d7a12403] check-in: [ea01d437] user: drh branch: trunk, size: 49422
19:26
Never use strlen(). Use our own internal sqlite3Strlen30() which is guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) file: [af9459fc] check-in: [c872d554] user: drh branch: trunk, size: 49173
2008-12-08
18:19
The amalgamation now compiles cleanly on GCC with options -pedantic-errors -Wno-long-long. (CVS 5991) file: [79e55bbe] check-in: [73c7302c] user: drh branch: trunk, size: 49143
2008-11-19
21:35
In os_win.c, if SQLITE_TEST defined, winRandomness() should return all zeroes like os_unix.c. (CVS 5932) file: [3dff4167] check-in: [00b68a1e] user: shane branch: trunk, size: 49107
2008-11-18
19:18
Expose the MBCS->UTF8 convert routine in the Win32 backend. (CVS 5917) file: [08d0b059] check-in: [f4411f0c] user: drh branch: trunk, size: 49004
2008-11-13
18:20
Added support for -DSQLITE_NO_SYNC to os_win.c. (CVS 5904) file: [b1cd0792] check-in: [26493379] user: shane branch: trunk, size: 48965
2008-11-07
00:06
Add documentation to make it clear that short reads from xRead in the VFS must be zero-filled. (CVS 5867) file: [e208cbbc] check-in: [fb311d6f] user: drh branch: trunk, size: 48822
2008-10-22
16:55
Removed some more dead code and fixed some unresolved externals for WINCE. Ticket #3420. (CVS 5837) file: [a26292f3] check-in: [5276e31d] user: shane branch: trunk, size: 48767
2008-10-12
02:27
Check for failures in winTruncate. Ticket #3415. (CVS 5811) file: [13bed718] check-in: [500c5056] user: shane branch: trunk, size: 47060
2008-09-30
04:20
Misc clean up. Wrapped a CE only variable in if-defs. Changed to only provide cache hint for CE builds (as this prevents CE from compressing the file.) Performance testing on XP and Vista showed caching hint had little effect when the DB size was much smaller than the O/S disk cache size, and provided only marginal benefit when the DB size was much larger than the cache. On Vista, overall system performance was hurt for very large DBs. Ticket #3387. (CVS 5753) file: [04033a86] check-in: [15dd0169] user: shane branch: trunk, size: 46895
2008-09-01
22:15
Add define for INVALID_FILE_ATTRIBUTES if it is not already defined, as some older Windows compilers do not define it. (CVS 5657) file: [3209dc0e] check-in: [e0461f87] user: shane branch: trunk, size: 46849
2008-07-31
01:34
Improved retry logic for winDelete() when in "pending delete" state. (CVS 5505) file: [aefe9ee2] check-in: [03a79734] user: shane branch: trunk, size: 46707
2008-07-22
05:32
winGetLastError support added. Consolidated getLastErrorMsg() support. Removed some more WINCE dead code similar to instance in ticket #3232. Added error return on SystemTimeToFileTime() failure. (CVS 5450) file: [50ec7834] check-in: [c0a5cf38] user: shane branch: trunk, size: 46413
2008-07-18
23:47
Remove dead code from os_win.c. Ticket #3232. (CVS 5441) file: [08f8678d] check-in: [5c5c1f72] user: drh branch: trunk, size: 44677
2008-06-26
10:41
Change the OS_XXX pre-processor symbols to SQLITE_OS_XXX. Symbols "OS_UNIX", "OS_WIN", "OS_WINCE", "OS_OS2" and "OS_OTHER" are now "SQLITE_OS_UNIX", "SQLITE_OS_WIN", "SQLITE_OS_WINCE", "SQLITE_OS_OS2" and "SQLITE_OS_OTHER", respectively. (CVS 5311) file: [2bf2f8cd] check-in: [cdd4cf4c] user: danielk1977 branch: trunk, size: 44732
2008-06-25
17:19
Remove internal function sqlite3OsDefaultVfs(). The built-in VFS layers now register their VFS implementations by calling sqlite3_vfs_register() from within sqlite3_os_init(). (CVS 5307) file: [77cae913] check-in: [8fa33b79] user: danielk1977 branch: trunk, size: 44585
2008-06-13
18:24
Progress toward implementation of sqlite3_config() and a rework of the mutex and memory allocation subsystems. This is an incremental check-in. (CVS 5218) file: [0b90d9a1] check-in: [a03c5af1] user: drh branch: trunk, size: 44885
2008-06-06
15:49
Add the xGetLastError() member function to the sqlite3_vfs structure. It is neither called nor implemented at this point. (CVS 5192) file: [0d975b13] check-in: [b8f1da52] user: danielk1977 branch: trunk, size: 44668
11:11
Remove the xGetTempname() method from the vfs structure. Temp files are now opened by passing a NULL pointer as the filename to xOpen(). (CVS 5190) file: [07df9a6f] check-in: [5173b3e8] user: danielk1977 branch: trunk, size: 44545
2008-06-05
11:39
Modify the signatures of the sqlite3_vfs.xAccess and sqlite3_vfs.xCheckReservedLock functions. (CVS 5188) file: [9ac4e4e9] check-in: [4226ac54] user: danielk1977 branch: trunk, size: 44092
2008-05-29
03:54
Moved check and define for OS_WINCE from os_win.c to os.h (with the other OS_* defines). This allows OS_WINCE to be available for mutex_w32.c which is included earlier than os_win.c in the almagamation. (CVS 5176) file: [812f9ba8] check-in: [ad6a782e] user: shane branch: trunk, size: 43977
2008-05-16
04:51
Add more version tags to files that lack them. Ticket #3120. (CVS 5137) file: [3b0a31c5] check-in: [81a8c70e] user: danielk1977 branch: trunk, size: 44031
2008-03-19
14:15
Add a new api sqlite3_randomness() for providing access to SQLite's internal PRNG. Add sqlite3_test_control() verbs for controlling the PRNG. (CVS 4882) file: [3a60bddd] check-in: [15110ea0] user: drh branch: trunk, size: 43965
2008-02-20
00:00
Make multiple attempts to delete files marked DELETE_ON_CLOSE under WinCE. Ticket #2950. (CVS 4802) file: [aa3f4bbe] check-in: [5bc8e564] user: drh branch: trunk, size: 43963
2007-12-13
21:54
Change all instances of "it's" in comments to either "its" or "it is", as appropriate, in case the comments are ever again read by a pedantic grammarian. Ticket #2840. (CVS 4629) file: [c832d528] check-in: [4e91a267] user: drh branch: trunk, size: 43710
2007-12-10
21:11
Make sure the windows driver responds correctly to the SQLITE_OPEN_DELETEONCLOSE flag. Ticket #2829. (CVS 4607) file: [737fe685] check-in: [19db91fd] user: drh branch: trunk, size: 43711
2007-12-06
13:26
Use the specified buffer length, not the maximum buffer length in unixFullPathname() and related functions. (CVS 4595) file: [a92769a7] check-in: [f015a387] user: drh branch: trunk, size: 43779
2007-11-12
21:09
Various changes to enable compilation of SQLite library and command line shell with the Windows CE cross compiler from cegcc.sourceforge.net (CVS 4541) file: [1fb40eb6] check-in: [8ad0ab8c] user: chw branch: trunk, size: 43791
2007-11-07
01:19
In the windows VFS, make sure we do not return an error if attempting to delete a file that does not exist. (CVS 4532) file: [81690a85] check-in: [08a685ab] user: drh branch: trunk, size: 43579
2007-10-09
15:36
Still more tweaks to the wince interface. Ticket #2711. (CVS 4482) file: [fe8f2d8f] check-in: [b2bdb476] user: drh branch: trunk, size: 43586
15:20
Fix a typo in the wince driver. Ticket #2710. See also ticket #2702. (CVS 4481) file: [13b80c00] check-in: [beb91af7] user: drh branch: trunk, size: 43783
2007-10-08
15:06
More untested changes for wince contributed by users. Ticket #2702. (CVS 4479) file: [3ea65d67] check-in: [ccd709e1] user: drh branch: trunk, size: 43783
12:29
Reverting check-in (3836) at the request of winCE users. We no ability to test this change. Presumably this is a fix for tickets #2698, #2533, and #2598. It is unclear if this causes #2294 to be reopened or not. (CVS 4478) file: [3bc308a9] check-in: [27346fa5] user: drh branch: trunk, size: 43687
12:22
Fix a bug in code for winCE. Ticket #2700. (CVS 4477) file: [0fd00bbf] check-in: [a36fca4c] user: drh branch: trunk, size: 43729
12:21
In windows, always open files using FILE_FLAG_RANDOM_ACCESS. Ticket #2699. (CVS 4476) file: [713bb346] check-in: [5cdbc097] user: drh branch: trunk, size: 43733
2007-10-05
14:49
Use FormatMessageA() instead of FormatMessage() in the w32 VFS. Ticket #2687. (CVS 4468) file: [b2b6aa5f] check-in: [38674fd2] user: drh branch: trunk, size: 43535
2007-09-20
14:39
Replace "i64" with "sqlite3_int64" in the w32 VFS. (CVS 4441) file: [99960c7b] check-in: [138d3fcc] user: drh branch: trunk, size: 43534
2007-09-17
07:02
Add a parameter to specify the size of the output buffer passed to xGetTempname() and xFullPathname(). This, and the previous commit, are changes to the public vfs API introduced in 3.5.0. (CVS 4433) file: [e6383004] check-in: [8b29f5fb] user: danielk1977 branch: trunk, size: 43514
06:06
Change the names of xGetTempName and sqlite3OsGetTempName to xGetTempname. To be consistent with xFullPathname and sqlite3OsFullPathname. (CVS 4432) file: [697dd7ad] check-in: [ad3687b1] user: danielk1977 branch: trunk, size: 43326
2007-09-14
20:32
Corrections to the winCE code. Untested. (CVS 4431) file: [24acb158] check-in: [8cc51e0a] user: drh branch: trunk, size: 43326
2007-09-12
14:09
Add a missing semi-colon to os_win.c. Ticket #2642. (CVS 4421) file: [b3ae109c] check-in: [c6ee5929] user: danielk1977 branch: trunk, size: 43321
2007-09-05
17:06
Fix a harmless typo in the PRNG initialization on win32. Ticket #2617. (CVS 4405) file: [b663c171] check-in: [ea1d76e3] user: drh branch: trunk, size: 43320
2007-09-03
17:09
Fix the open file counter on windows. (CVS 4382) file: [d8909c19] check-in: [40cf0c17] user: drh branch: trunk, size: 43322
17:02
Get the io.test tests working on windows. (CVS 4381) file: [c077b821] check-in: [1be70015] user: drh branch: trunk, size: 43303
13:06
Improvements to the xRandomness() method on the default windows VFS. Ticket #2615. (CVS 4374) file: [57f9b96e] check-in: [91b50f31] user: drh branch: trunk, size: 42958
2007-09-01
02:13
Change the windows tempfile name generator so that it uses 119 bits of randomness and does not bother to check to see if the file already exists. Ticket #2608. (Unable to test from this machine, but the changes are simple and isolated. Hope it works.) (CVS 4357) file: [ce778c06] check-in: [ca6c1e3f] user: drh branch: trunk, size: 42507
2007-08-31
18:34
Remove the xLockState method for sqlite3_io_methods. Replace it with a defined call to xFileControl(). This simplifies the interface and also gives us coverage testing of sqlite3_file_control(). (CVS 4355) file: [60ab7361] check-in: [306586c4] user: drh branch: trunk, size: 42606
16:11
Initial implementation of the sqlite3_file_control() interface. Compiles and passes all historical tests but the new method is itself untested. (CVS 4353) file: [d8f9a643] check-in: [d3ab3e39] user: drh branch: trunk, size: 42717
2007-08-30
16:46
Fix a memory leak in the win32 OS driver. Ticket #2602. (CVS 4345) file: [85e5661c] check-in: [1f80cf5e] user: drh branch: trunk, size: 42683
2007-08-27
21:10
Added the 34to35.html document describing the changes between 3.4.2 and 3.5.0. Minor interface cleanups. (CVS 4302) file: [3ffd3aac] check-in: [0791f917] user: drh branch: trunk, size: 42685
2007-08-24
17:52
Rework the win32 OS driver to use malloc()/free() directly rather than going through the SQLite memory allocation layer. With this change, the complete quick.test script now runs on windows. There are a few errors, but no segfaults. Progress. (CVS 4289) file: [4f840e97] check-in: [75aad316] user: drh branch: trunk, size: 42774
16:08
Remove nRef and vfsMutex from the sqlite3_vfs structure. Omit the sqlite3_vfs_release() interface. Less memory allocated for a pager in the common case where the size of the pathname is less than MAX_PATH. (CVS 4287) file: [e2598a18] check-in: [b8451da3] user: drh branch: trunk, size: 41669
03:51
The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) file: [1cb94dd3] check-in: [3a68fcdd] user: drh branch: trunk, size: 41741
2007-08-21
10:44
Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) file: [29c0e19c] check-in: [fbbd5bda] user: drh branch: trunk, size: 48321
2007-05-14
12:12
In the windows driver, reacquire the shared lock if an exclusive lock fails. Ticket #2354. (CVS 3992) file: [d868d5f9] check-in: [fc489b53] user: drh branch: trunk, size: 48337
2007-05-05
12:06
Fix a sprintf() problem introduced by (3916). (CVS 3927) file: [3b616903] check-in: [54a1d275] user: drh branch: trunk, size: 48311
2007-05-04
13:15
Eliminate all uses of sprintf() and strcpy(). These were not being misused. But getting rid of them removes a library dependency. And it avoids warnings from the OpenBSD compiler. Ticket #2336. (CVS 3916) file: [5e9e3d2a] check-in: [ba4845b3] user: drh branch: trunk, size: 48282
2007-04-11
17:54
Blind check-in of changes to fix #2294 - I have no ability to test. Gentle wince users: please test this change and if it works leave a remark on the #2294 ticket. Tnx. (CVS 3836) file: [e94903c7] check-in: [ca56c3e2] user: drh branch: trunk, size: 48259
2007-04-01
23:49
Fix some warnings about unused and uninitialized variables. (CVS 3788) file: [c9a99524] check-in: [18aec1dd] user: drh branch: trunk, size: 48225
2007-03-30
11:29
Move the sqlite3_temp_directory global variable out of the OS porting layer and into main.c so that it is more accessible to non-standard OS porting layers. (CVS 3759) file: [c3a8403e] check-in: [23653f7a] user: drh branch: trunk, size: 48250
2007-03-29
18:19
Change the name of PAGER_SECTOR_SIZE to SQLITE_DEFAULT_SECTOR_SIZE. Make the new OS-layer interface routine for finding sector size optional. (CVS 3750) file: [d6cb3628] check-in: [0fb9af1d] user: drh branch: trunk, size: 48445
2007-03-27
16:19
Test handling of IO errors that occur in OsDelete() or OsTruncate() operations. Also use an anonymous file for temporary storage during a VACUUM. (CVS 3729) file: [84c02837] check-in: [b24a6e7b] user: danielk1977 branch: trunk, size: 48436
2007-03-26
22:05
Modify sources to that they can be combined into a single sqlite3.c source file. Eliminate all type-pruned pointer warnings. (CVS 3722) file: [13708a58] check-in: [0b832e21] user: drh branch: trunk, size: 48389
2007-03-23
10:08
Add a comment to the OsSectorSize() function. (CVS 3710) file: [1d1d0989] check-in: [0fd9983a] user: danielk1977 branch: trunk, size: 48351
2007-03-19
05:54
Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700) file: [f3ca3e08] check-in: [5752d84d] user: danielk1977 branch: trunk, size: 47887
2007-01-10
18:56
Make the AreFileApisANSI() call a macro with a value of 1 on wince. Ticket #2163. (CVS 3590) file: [8736cf3a] check-in: [a72c950c] user: drh branch: trunk, size: 47864
2007-01-09
17:18
Fix the windows OS layer so that it returns detailed IOERR error codes. (CVS 3583) file: [8999403b] check-in: [4b36de46] user: drh branch: trunk, size: 47835
15:32
Work around win2k problems so that single-character filenames can be used. Ticket #2151. (CVS 3582) file: [788ae0fa] check-in: [c4eb2100] user: drh branch: trunk, size: 47798
2007-01-05
14:38
Suppress compiler warnings. Fix a bug in IO error detection on windows. (CVS 3564) file: [30070930] check-in: [daed2bab] user: drh branch: trunk, size: 47855
2007-01-03
23:36
Additional changes in the pager and os interface layers to fix problems that might be contributing to recently observed database corruption. (CVS 3549) file: [92df146e] check-in: [a593d574] user: drh branch: trunk, size: 47890
2006-12-21
03:20
More fixes to the microsoft code-page nightmare... (CVS 3544) file: [ca46001d] check-in: [0b47d880] user: drh branch: trunk, size: 47845
02:21
Use GetProcAddressA() on wince. Ticket #2123 (CVS 3543) file: [d7cf0fc2] check-in: [e3dddd1c] user: drh branch: trunk, size: 47655
01:37
Reduce the number of utf8->unicode conversions required in wince. Ticket #2122 (CVS 3542) file: [96c7cf82] check-in: [6d2ff096] user: drh branch: trunk, size: 47399
01:29
Move the shared-library loading routines into the OS portability layer, thus enabling the os_win.c code to handle the character encoding confusion of win95/nt/ce. Ticket #2023. (CVS 3541) file: [359dd74a] check-in: [a1bcc6de] user: drh branch: trunk, size: 47357
00:46
Change a parameter type from "int" to "DWORD" in the windows interface. Ticket #2122. (CVS 3540) file: [eb6642f7] check-in: [cca1eb3d] user: drh branch: trunk, size: 46599
2006-11-07
15:02
Fix a typo in os_win.c. Ticket #2055. (CVS 3504) file: [cac5f9b6] check-in: [d309680e] user: drh branch: trunk, size: 46597
2006-11-06
21:20
Use the difference between the SQLITE_IOERR_SHORT_READ and SQLITE_IOERR_READ returns from sqlite3OsRead() to make decisions about what to do with the error. (CVS 3503) file: [06e11389] check-in: [6324ea81] user: drh branch: trunk, size: 46597
2006-10-30
13:37
Changes to support non-ASCII characters in win95 filenames. Ticket #2047. (CVS 3495) file: [1be3a56e] check-in: [9fa3ae58] user: drh branch: trunk, size: 46534
2006-09-26
00:37
Fix to the previous check-in. (CVS 3446) file: [30e51641] check-in: [944d5f81] user: drh branch: trunk, size: 42918
00:34
Performance improvement and bug fix in sqlite3WinDelete(). (CVS 3445) file: [6c9da4c7] check-in: [46ac1ac2] user: drh branch: trunk, size: 42906
2006-09-14
13:47
Enhanced I/O error simulation. (CVS 3418) file: [a6676309] check-in: [86931854] user: drh branch: trunk, size: 42807
2006-06-04
23:31
Add comments to the changes of check-in (3200). (CVS 3202) file: [c6976ae5] check-in: [697498d4] user: drh branch: trunk, size: 42731
23:02
Changes to help SQLite cope with virus scanners and other programs that open journal files for reading and thus prevent SQLite from deleting them in order to commit a transaction. (CVS 3200) file: [e64e6bdf] check-in: [f32dbe47] user: drh branch: trunk, size: 41386
2006-06-02
12:40
The windows driver always allows other processes to write the database file even if it only has read permission on the file. This is an experimental checkin - we still have not determined that this change is safe. Ticket #1803. (CVS 3196) file: [f48550e1] check-in: [4bf03c3b] user: drh branch: trunk, size: 40861
2006-02-27
23:44
Reduce the size of a memory allocation in the windows driver to the minimum needed. Ticket #1690. (CVS 3115) file: [8ced9ac8] check-in: [1fe9ca07] user: drh branch: trunk, size: 40823
2006-01-31
19:31
Fix some pointless warnings from overly-pedantic compilers. (CVS 3048) file: [c67a2c46] check-in: [b922c8e4] user: drh branch: trunk, size: 40837
2006-01-24
12:09
Rename some variables to avoid hiding others. Also add "static" to two function signatures that were missing it. (CVS 3024) file: [566bf7b4] check-in: [d86f18a4] user: danielk1977 branch: trunk, size: 40831
2006-01-23
22:15
Bug fix in the WinCE bindings. (CVS 3015) file: [63718af5] check-in: [c5792283] user: drh branch: trunk, size: 40817
16:25
Get I/O error tests working on windows. (CVS 3007) file: [2600438d] check-in: [2ef8b85d] user: drh branch: trunk, size: 40824
15:54
Cut over the patches to support WinCE. Ticket #1600. (CVS 3003) file: [438e6587] check-in: [436287c2] user: drh branch: trunk, size: 40880
2006-01-18
17:25
Modify the sqlite3OsInMutex os-layer interface to take a single parameter to distinguish between mutexes held by the current thread and mutexes held by any thread. Part of the fix for ticket #1630. (CVS 2973) file: [98e4e38d] check-in: [e1ad9df1] user: drh branch: trunk, size: 32675
16:51
Use a global variable protected by a mutex instead of thread-specific-data to record malloc() failures. (CVS 2972) file: [a1584b15] check-in: [ac090f2a] user: danielk1977 branch: trunk, size: 32298
14:20
Recursive mutexes in os_win.c. (CVS 2969) file: [e1c06001] check-in: [dd3e07ca] user: drh branch: trunk, size: 32294
2006-01-17
16:10
Arrange for ThreadData to be automatically deallocated even if SQLITE_MEMDEBUG is defined. Fix for #1623. (CVS 2965) file: [b9cb6254] check-in: [9e2e4084] user: danielk1977 branch: trunk, size: 32166
2006-01-13
06:33
Minor modification to restoreOrClearCursorPosition() to improve efficiency. Do not allocate the extra 8-bytes if memory-management is not enabled. (CVS 2936) file: [cd4ca275] check-in: [dd705955] user: danielk1977 branch: trunk, size: 32168
2006-01-12
01:25
Improve performance by about 10% by avoiding excess calls to get the thread-specific data. (CVS 2921) file: [4ebb7e11] check-in: [a8c74feb] user: drh branch: trunk, size: 32169
2006-01-11
23:40
Testing of the automatic TSD deallocation logic. The sqlite3_thread_cleanup() API is documented. This should close ticket #1601. (CVS 2920) file: [e372f99c] check-in: [fb518b0c] user: drh branch: trunk, size: 31957
21:41
Automatically deallocate thread-specific data when it is no longer being used. Ticket #1601. Also implemented the suggestion of ticket #1603. Memory management is now off by default at compile-time. The sqlite3_enable_memory_management() API has been removed. (CVS 2919) file: [b67dd34b] check-in: [5d9c6aa9] user: drh branch: trunk, size: 31466
2006-01-09
23:40
Added database server example code (untested). Fixed serveral bugs including the autovacuum compile problem described by ticket #1593. (CVS 2897) file: [8ef250a0] check-in: [ec332d88] user: drh branch: trunk, size: 31153
2006-01-07
18:14
Continued progress toward a working wince backend. (CVS 2885) file: [9cedcb13] check-in: [15fda14e] user: drh branch: trunk, size: 31318
2006-01-06
21:09
Additional changes for wince. (CVS 2877) file: [88f372bf] check-in: [b10343d9] user: drh branch: trunk, size: 31230
20:40
More changes to support wince. (CVS 2876) file: [acd7a7a6] check-in: [f3cbd995] user: drh branch: trunk, size: 31237
20:22
Additional efforts to get it to build on WinCE. (CVS 2875) file: [8ed8a36d] check-in: [b45c076f] user: drh branch: trunk, size: 31169
16:17
A first attempt at adding native support for WinCE. (CVS 2874) file: [60da6aa3] check-in: [43440567] user: drh branch: trunk, size: 31017
14:32
Change the OS interface layer to use traditional direct function call implementations instead of the more complicated virtual function table. Omit the asynchronous I/O demo. (CVS 2870) file: [3239b124] check-in: [2529c2e1] user: drh branch: trunk, size: 28729
00:36
Windows implementation of the thread-specific data interface. (CVS 2864) file: [c774f888] check-in: [3aa8befe] user: drh branch: trunk, size: 29496
2006-01-02
20:00
Add the xInMutex method to the os-layer switch for testing whether or not mutexes are used correctly. (CVS 2851) file: [7e2d09f8] check-in: [a582b159] user: drh branch: trunk, size: 28929
2005-12-15
10:50
Move malloc(), free(), realloc() and allocationSize() into the Os vtbl. (CVS 2819) file: [9feb97f4] check-in: [81a41f66] user: danielk1977 branch: trunk, size: 28627
10:11
Add the sqlite3_os_routine_set()/get() functions. (CVS 2818) file: [2da77ddc] check-in: [c1ed79f5] user: danielk1977 branch: trunk, size: 28552
2005-11-30
03:20
Restructure the OS interface yet again. This time make the OsFile object a virtual base class which is subclassed for unix, windows, and the crash test simulator. Add the new file "os.c" for common os layer code. Move all OS-specific routines into the sqlite3Os structure. (CVS 2795) file: [d962ac2d] check-in: [bd8740d1] user: drh branch: trunk, size: 28239
2005-11-29
19:50
Make the build work on windows again. Ticket #1544. (CVS 2793) file: [2095cae6] check-in: [59bdca25] user: drh branch: trunk, size: 27338
03:13
Make the OsFile structure opaque with its internal structure known only to the appropriate os_*.c implementation. Omit the os_unix.h and os_win.h include files. The crash tests are broken by this patch. (CVS 2791) file: [f18626e4] check-in: [058f3175] user: drh branch: trunk, size: 27359
2005-11-26
03:43
Add an OS method for making copies of file descriptors. This fixes the crash tests. (CVS 2786) file: [a3762efc] check-in: [57a674fc] user: drh branch: trunk, size: 25951
00:25
Modify the OS layer so that I/O routines are called through a virtual function table. The os_test.c module has been replaced by test6.c. The crash tests are busted now and need to be fixed. (CVS 2785) file: [5d282b4f] check-in: [1f69aec2] user: drh branch: trunk, size: 25814
2005-09-19
12:53
Work around limitations of MSVC++ 6. Tickets #1429, #1437, and #1440. (CVS 2720) file: [fbccc85e] check-in: [b2d1803c] user: drh branch: trunk, size: 25368
2005-09-09
10:17
Detect errors returned by SetFilePointer on windows. (CVS 2681) file: [ed03a35b] check-in: [bc8c33f9] user: drh branch: trunk, size: 25225
01:32
Defend against disk I/O errors that happen during an sqlite3OsSeek(). (CVS 2679) file: [5771f4b7] check-in: [461e3a0a] user: drh branch: trunk, size: 25131
2005-09-08
12:38
While doing a transaction comment, use fdatasync() instead of fsync() in cases there the file size is unchanged. (CVS 2673) file: [6a80f686] check-in: [3c555a87] user: drh branch: trunk, size: 25068
2005-09-05
20:06
Fix bugs introduced by checkin (2656) and do some modest code enhancements. (CVS 2657) file: [4aad6cd4] check-in: [7b56763a] user: drh branch: trunk, size: 25054
19:08
Use the unicode API to win32 where available. Tickets #1407, #1396, #1331, #1243, #1206 (CVS 2656) file: [8b80f418] check-in: [3ec58c67] user: drh branch: trunk, size: 25028
2005-06-07
22:22
Changes to support linking without a parser and without a disk I/O interface. (CVS 2504) file: [fe7b99cf] check-in: [62a7353d] user: drh branch: trunk, size: 21003
2005-03-21
00:36
Improved support for cygwin. Ticket #1165. (CVS 2407) file: [2bbbe6fb] check-in: [fcb5cee4] user: drh branch: trunk, size: 21169
2005-02-03
00:29
Make sure the rc variable in OsWrite of os_win.c is always initialized. Also assert that the amt parameter is always greater than zero. Ticket #1094. (CVS 2309) file: [bddeae1c] check-in: [4b399ae7] user: drh branch: trunk, size: 20913
2005-01-08
15:44
Fixes to the temp_store_directory pragma. (CVS 2185) file: [3c0b0a3b] check-in: [0a90eaf3] user: drh branch: trunk, size: 20890
2004-12-20
19:01
Add PRAGMA 'temp_store_directory'. Added os_*.c function sqlite3OsIsDirWritable(), split pragma.c changeTempStorage() function into invalidateTempStorage(). (CVS 2171) file: [39525c41] check-in: [772e22cb] user: tpoindex branch: trunk, size: 20809
2004-10-02
20:38
Fixes to the OsUnlock() interface. Correctly leave a SHARED lock behind when requested. Honor the error code that OsUnlock() returns. Ticket #913 and #938. (CVS 1997) file: [9482dfc9] check-in: [c4697503] user: drh branch: trunk, size: 20430
2004-10-01
18:21
make diskfull test work on Windows; see check-in (1994) (CVS 1996) file: [2b4b103d] check-in: [4493e287] user: dougcurrie branch: trunk, size: 20324
02:00
Use type i64 instead of off_t for file offsets since off_t is giving portability problems. Ticket #924. (CVS 1992) file: [0ab81ce1] check-in: [8972c004] user: drh branch: trunk, size: 20299
2004-08-29
23:42
Change the name of the global variable to sqlite3_temp_directory to avoid a naming conflict with version 2.8. (CVS 1918) file: [9e288782] check-in: [431f7436] user: drh branch: trunk, size: 20365
2004-08-28
01:12
Add sqlite_temp_directory to the windows driver. (CVS 1905) file: [feba3716] check-in: [f5b0e5b0] user: drh branch: trunk, size: 20362
2004-06-30
14:29
Specify ASCII versions of Win32 API functions. (CVS 1785) file: [54181eb7] check-in: [48b31540] user: drh branch: trunk, size: 20000
2004-06-21
18:14
Fix an uninitialized variable. The variable was harmless, but pedantic error checking in MSVC raised an exception on it. (CVS 1651) file: [84549f6c] check-in: [afc398c2] user: drh branch: trunk, size: 19991
2004-06-15
11:40
Minor bugfixes and test case adjustments for version 2 test cases to work with version 3. (CVS 1598) file: [337e973e] check-in: [e21a1813] user: danielk1977 branch: trunk, size: 19586
00:29
Add the sqlite3OsFileModTime() interface. But it is still unused. The change counter in page 1 is always incremented. (CVS 1594) file: [a60f9ebf] check-in: [186c6f93] user: drh branch: trunk, size: 19553
2004-06-14
09:35
Ensure master journal file is deleted when a transaction is committed. (CVS 1586) file: [44b9291d] check-in: [cb3cbe00] user: danielk1977 branch: trunk, size: 18860
2004-06-12
02:17
Bug fix in the unix locking code. (CVS 1574) file: [d4009586] check-in: [dcad244f] user: drh branch: trunk, size: 18692
2004-06-09
17:37
Fixes to the file locking. 109 tests are now failing. (CVS 1548) file: [6b8f9fcc] check-in: [dc076345] user: drh branch: trunk, size: 18662
2004-06-08
00:47
Do not require a RESERVED lock when transitioning from SHARED to EXCLUSIVE. (CVS 1542) file: [a13b85a0] check-in: [4dfdea73] user: drh branch: trunk, size: 18526
2004-06-07
16:27
More work on windows locking. Fix some problems with unix locking. There is still an assertion failure on windows locking in attach2.test. (CVS 1539) file: [5c46f81f] check-in: [0c2d169c] user: drh branch: trunk, size: 17705
01:52
Progress towards getting locking to work on windows. (CVS 1536) file: [3c21eddf] check-in: [4f7c0961] user: drh branch: trunk, size: 19620
2004-06-06
00:42
Added sqlite3OsLock for win32. Assertion fault in attach.test. (CVS 1533) file: [a5ab6da0] check-in: [9e6cd9ec] user: drh branch: trunk, size: 18422
2004-06-05
08:04
Ensure blob values survive the ".dump" command of the shell. (CVS 1531) file: [0f895f04] check-in: [e82eb722] user: danielk1977 branch: trunk, size: 17199
2004-05-22
17:41
Split up os.c into separate files, one for each platform. (CVS 1441) file: [92b51a38] check-in: [5c61be1c] user: drh branch: trunk, size: 17075 Added