chw
a5dc7f73f9
Provide dummy DWORD arguments to output parameters of GetDiskFreeSpace(A|W),
...
NULL causes access violations on Windows NT 4.0 (CVS 6477)
FossilOrigin-Name: 5350a6586cd6504a0724631e4ef46245832435f9
2009-04-09 14:27:06 +00:00
shane
b08a67a772
Fix compiler warnings from gcc and MSVC; Correct typo in select.c; (CVS 6417)
...
FossilOrigin-Name: 768514179a63783c4e70b931d1697403c04bedf5
2009-03-31 03:41:56 +00:00
drh
a111577b6b
Make sure recursive calls to winOpen() preserve the pVfs pointer.
...
Fault found while testing a mingw build in VMWare. (CVS 6410)
FossilOrigin-Name: 18b44f0df3d75689fb5cee20120eb3c6ae5882b3
2009-03-30 13:04:17 +00:00
drh
5c905d6e91
Avoid all use of the "LL" suffix for long-long integer literals.
...
Ticket #3759 . (CVS 6408)
FossilOrigin-Name: 7ef36935424013a1b211906620954a97ffe08de7
2009-03-30 12:42:45 +00:00
shane
50daafc74a
Implemented winSectorSize(); Other changes for consistency. os_win.c. Ticket #2931 . (CVS 6339)
...
FossilOrigin-Name: 68abcb278ced40c0d97af724dbd1b751a3becdc2
2009-03-05 05:54:55 +00:00
shane
be21779385
Corrected typos and misspellings. Ticket #3702 . (CVS 6336)
...
FossilOrigin-Name: 6404afa0c515a6536fc2e878d4fb451e4dc06942
2009-03-05 04:20:31 +00:00
shane
f5d335f851
Fixed error detection in winTrucate() in os_win.c. Windows version only. Ticket #3640 . (CVS 6262)
...
FossilOrigin-Name: 82e03f1b5481c6fe5e94976f086e8fe8c99881af
2009-02-05 03:16:20 +00:00
shane
fbd60f826d
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)
...
FossilOrigin-Name: 5cef400023205b55152b91441acc78f9cd8d58a9
2009-02-04 03:59:25 +00:00
shane
9db299fb8f
Implemented the SQLITE_LAST_ERRNO op in the xFileControl() method of os_win.c. Ticket #3615 . (CVS 6217)
...
FossilOrigin-Name: 9ea871f3e8ce1ec5cffb72f13704c3002d3f5383
2009-01-30 05:59:10 +00:00
shane
7d3846ac26
Removed a few more harmless warnings from MSVC. (CVS 6018)
...
FossilOrigin-Name: 72fd92bd67ed2b8e193cf3119e60d0a8f1e819c9
2008-12-11 02:58:26 +00:00
shane
18e526c16b
Work to remove harmless MSVC compiler warnings. (CVS 6013)
...
FossilOrigin-Name: 715dcd52c1372c62873cff5db97fdbdfce617808
2008-12-10 22:30:24 +00:00
drh
1bd10f8a00
Additional work at eliminating silly compiler warnings. (CVS 6010)
...
FossilOrigin-Name: ea01d43788a75e39c7f03c22681d1a338d52cf0e
2008-12-10 21:19:56 +00:00
drh
ea6788322e
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)
FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c
2008-12-10 19:26:22 +00:00
drh
1875f7a3db
The amalgamation now compiles cleanly on GCC with options
...
-pedantic-errors -Wno-long-long. (CVS 5991)
FossilOrigin-Name: 73c7302c5f76a2f61ecd75f8bda69bb500d3119c
2008-12-08 18:19:17 +00:00
shane
c7b7f1ae1d
In os_win.c, if SQLITE_TEST defined, winRandomness() should return all zeroes like os_unix.c. (CVS 5932)
...
FossilOrigin-Name: 00b68a1e3164fbf04dabb480c2037be45612b4e4
2008-11-19 21:35:46 +00:00
drh
1d2988554c
Expose the MBCS->UTF8 convert routine in the Win32 backend. (CVS 5917)
...
FossilOrigin-Name: f4411f0c8075adc8a37002ac7ad958ff3158c0c0
2008-11-18 19:18:52 +00:00
shane
84ca3837c2
Added support for -DSQLITE_NO_SYNC to os_win.c. (CVS 5904)
...
FossilOrigin-Name: 2649337937077d2dba7cdc7473fcd176aa252a52
2008-11-13 18:20:43 +00:00
drh
4c17c3fb11
Add documentation to make it clear that short reads from xRead in the VFS
...
must be zero-filled. (CVS 5867)
FossilOrigin-Name: fb311d6f4098a08f05b3fac9a2a7e2a53c38bb5f
2008-11-07 00:06:18 +00:00
shane
891adeac5c
Removed some more dead code and fixed some unresolved externals for WINCE. Ticket #3420 . (CVS 5837)
...
FossilOrigin-Name: 5276e31d42070e7b94bd6050c4fa484dfbfe98ca
2008-10-22 16:55:47 +00:00
shane
a3465f2d78
Check for failures in winTruncate. Ticket #3415 . (CVS 5811)
...
FossilOrigin-Name: 500c50561fba88948aad21d1aef1e1e96ab8c3aa
2008-10-12 02:27:38 +00:00
shane
d94b0556f8
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)
...
FossilOrigin-Name: 15dd0169a4c5e2ff9e3894eec10799cb89d462e5
2008-09-30 04:20:07 +00:00
shane
171fa295c3
Add define for INVALID_FILE_ATTRIBUTES if it is not already defined, as some older Windows compilers do not define it. (CVS 5657)
...
FossilOrigin-Name: e0461f8755daa9f57e056810de9ea347ff8dd986
2008-09-01 22:15:18 +00:00
shane
3582c5a98c
Improved retry logic for winDelete() when in "pending delete" state. (CVS 5505)
...
FossilOrigin-Name: 03a7973477b419d21c3b2925aa90efb05ff64ef9
2008-07-31 01:34:34 +00:00
shane
820800d0bf
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)
...
FossilOrigin-Name: c0a5cf38eea80640e42c612ce6f4850c98f70638
2008-07-22 05:32:03 +00:00
drh
78e772424d
Remove dead code from os_win.c. Ticket #3232 . (CVS 5441)
...
FossilOrigin-Name: 5c5c1f72797e4ceb229b8e3a7c65e5f173bb9e1a
2008-07-18 23:47:43 +00:00
danielk1977
29bafeabcd
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)
...
FossilOrigin-Name: cdd4cf4ce2ab363ddc3f27c5e44896e17269a161
2008-06-26 10:41:19 +00:00
danielk1977
c0fa4c5f32
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)
...
FossilOrigin-Name: 8fa33b79d7369ec5777fd9ad3349f0fa31b98fd6
2008-06-25 17:19:00 +00:00
drh
40257ffd0a
Progress toward implementation of sqlite3_config() and a rework of the
...
mutex and memory allocation subsystems. This is an incremental check-in. (CVS 5218)
FossilOrigin-Name: a03c5af115889f477e17187a198a7d2d40bc76bf
2008-06-13 18:24:27 +00:00
danielk1977
bcb97fe95e
Add the xGetLastError() member function to the sqlite3_vfs structure. It is neither called nor implemented at this point. (CVS 5192)
...
FossilOrigin-Name: b8f1da52c303de20d40aa20a7a031728d5d69af5
2008-06-06 15:49:29 +00:00
danielk1977
17b90b5316
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)
...
FossilOrigin-Name: 5173b3e816c7eb711cd21a9068bbafb9ebb7cff1
2008-06-06 11:11:25 +00:00
danielk1977
861f74563d
Modify the signatures of the sqlite3_vfs.xAccess and sqlite3_vfs.xCheckReservedLock functions. (CVS 5188)
...
FossilOrigin-Name: 4226ac54beea1b58de8ab7b9d768d999f50438a6
2008-06-05 11:39:11 +00:00
shane
712d6f9dad
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)
...
FossilOrigin-Name: ad6a782e7c408f6c3ebff5f2715c629b75c8002d
2008-05-29 03:54:26 +00:00
danielk1977
822a51628f
Add more version tags to files that lack them. Ticket #3120 . (CVS 5137)
...
FossilOrigin-Name: 81a8c70ed7a86abf286706fdbc251f31c9c53382
2008-05-16 04:51:54 +00:00
drh
2fa1868fb6
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)
FossilOrigin-Name: 15110ea02768bfe977a57eccd6b941a36ebd6b32
2008-03-19 14:15:34 +00:00
drh
d641d51171
Make multiple attempts to delete files marked DELETE_ON_CLOSE under
...
WinCE. Ticket #2950 . (CVS 4802)
FossilOrigin-Name: 5bc8e564e3499ada01a6c3d74b1e6d6906d2a118
2008-02-20 00:00:00 +00:00
drh
85b623f2f9
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)
FossilOrigin-Name: 4e91a267febda572e7239f0f1cc66b3102558c36
2007-12-13 21:54:09 +00:00
drh
64c1ea60cd
Make sure the windows driver responds correctly to the
...
SQLITE_OPEN_DELETEONCLOSE flag. Ticket #2829 . (CVS 4607)
FossilOrigin-Name: 19db91fd683c465b8c8a862143a01178682da445
2007-12-10 21:11:31 +00:00
drh
3c7f2dc4ca
Use the specified buffer length, not the maximum buffer length in
...
unixFullPathname() and related functions. (CVS 4595)
FossilOrigin-Name: f015a38771d98996366d66787b9b066f9ef5e248
2007-12-06 13:26:20 +00:00
chw
65d3c13cad
Various changes to enable compilation of SQLite library and command
...
line shell with the Windows CE cross compiler from cegcc.sourceforge.net (CVS 4541)
FossilOrigin-Name: 8ad0ab8cb374bd34e47af9e71b2aad9dd9af0d1b
2007-11-12 21:09:10 +00:00
drh
f024f0bb9b
In the windows VFS, make sure we do not return an error if attempting
...
to delete a file that does not exist. (CVS 4532)
FossilOrigin-Name: 08a685abc149cd29c3595a61c9bc1a04e6d95c4d
2007-11-07 01:19:07 +00:00
drh
fc3afb6a98
Still more tweaks to the wince interface. Ticket #2711 . (CVS 4482)
...
FossilOrigin-Name: b2bdb476858c6e4b8977ea06be68b2331d1d84df
2007-10-09 15:36:10 +00:00
drh
e825609ac0
Fix a typo in the wince driver. Ticket #2710 . See also ticket #2702 . (CVS 4481)
...
FossilOrigin-Name: beb91af7061a3950636064bf60946132a884cd7b
2007-10-09 15:20:39 +00:00
drh
0cd1ea5e44
More untested changes for wince contributed by users. Ticket #2702 . (CVS 4479)
...
FossilOrigin-Name: ccd709e1791b1c1091a61139633b972b378c1816
2007-10-08 15:06:03 +00:00
drh
7229ed434f
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)
FossilOrigin-Name: 27346fa55ed9b5c20016d07a37268fbd42dc097f
2007-10-08 12:29:17 +00:00
drh
aab2e6d271
Fix a bug in code for winCE. Ticket #2700 . (CVS 4477)
...
FossilOrigin-Name: a36fca4cdef162c87ce47a50ededdea19a8865f9
2007-10-08 12:22:57 +00:00
drh
496936c881
In windows, always open files using FILE_FLAG_RANDOM_ACCESS. Ticket #2699 . (CVS 4476)
...
FossilOrigin-Name: 5cdbc0972fe94c13dffee1f908a77f903e580449
2007-10-08 12:21:10 +00:00
drh
ee8683e1a8
Use FormatMessageA() instead of FormatMessage() in the w32 VFS.
...
Ticket #2687 . (CVS 4468)
FossilOrigin-Name: 38674fd287e0ca67e27c46a3ad0db4dcc8ed1e0c
2007-10-05 14:49:45 +00:00
drh
c51250a56b
Replace "i64" with "sqlite3_int64" in the w32 VFS. (CVS 4441)
...
FossilOrigin-Name: 138d3fcc5a74eb570107ae1299184a318b5417df
2007-09-20 14:39:23 +00:00
danielk1977
adfb9b0501
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)
...
FossilOrigin-Name: 8b29f5fbfc723cdf67cf3410cd01f7c17ea39a4b
2007-09-17 07:02:56 +00:00
danielk1977
76ee37f9bb
Change the names of xGetTempName and sqlite3OsGetTempName to xGetTempname. To be consistent with xFullPathname and sqlite3OsFullPathname. (CVS 4432)
...
FossilOrigin-Name: ad3687b16e9420d8bbaa3a645aaf803813b36061
2007-09-17 06:06:39 +00:00