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
drh
6ac164d708
Corrections to the winCE code. Untested. (CVS 4431)
...
FossilOrigin-Name: 8cc51e0a817115c4eb667f7257a3f5a4a39d0a4a
2007-09-14 20:32:18 +00:00
danielk1977
076f1c0d63
Add a missing semi-colon to os_win.c. Ticket #2642 . (CVS 4421)
...
FossilOrigin-Name: c6ee5929e7d1f9b7c351f57ee8886f71ea0b6619
2007-09-12 14:09:23 +00:00
drh
8674261a8f
Fix a harmless typo in the PRNG initialization on win32. Ticket #2617 . (CVS 4405)
...
FossilOrigin-Name: ea1d76e3fae599f7197f32852f1722b61ae3f8a7
2007-09-05 17:06:03 +00:00
drh
af5f040589
Fix the open file counter on windows. (CVS 4382)
...
FossilOrigin-Name: 40cf0c177635c087b7695a8c4c3b37da57f74425
2007-09-03 17:09:03 +00:00
drh
dec6fae9d9
Get the io.test tests working on windows. (CVS 4381)
...
FossilOrigin-Name: 1be70015e24f715a4276f253d2e0c0eec44650ee
2007-09-03 17:02:50 +00:00
drh
d1a793126a
Improvements to the xRandomness() method on the default windows VFS.
...
Ticket #2615 . (CVS 4374)
FossilOrigin-Name: 91b50f31e35652a40d51f5d9bf22efce36d515e4
2007-09-03 13:06:11 +00:00
drh
f869347555
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)
FossilOrigin-Name: ca6c1e3f44d8b9d9b76a0efe53ea6a6ad5e14d57
2007-09-01 02:13:10 +00:00
drh
9e33c2c108
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)
FossilOrigin-Name: 306586c412b87c6d12bac796641517afa3f9eb6a
2007-08-31 18:34:59 +00:00
drh
cc6bb3eaeb
Initial implementation of the sqlite3_file_control() interface.
...
Compiles and passes all historical tests but the new method is itself
untested. (CVS 4353)
FossilOrigin-Name: d3ab3e3911f10b17d0859a34f4f007c790a0cd82
2007-08-31 16:11:35 +00:00
drh
e1843aff8c
Fix a memory leak in the win32 OS driver. Ticket #2602 . (CVS 4345)
...
FossilOrigin-Name: 1f80cf5e759af68b854d4de2e97badf546a465ca
2007-08-30 16:46:04 +00:00
drh
50d3f9064b
Added the 34to35.html document describing the changes between 3.4.2 and
...
3.5.0. Minor interface cleanups. (CVS 4302)
FossilOrigin-Name: 0791f917bb18d7305b805b9cbcb308bdd7b3a1f5
2007-08-27 21:10:36 +00:00
drh
b11caac316
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)
FossilOrigin-Name: 75aad316981690d7a93ea6ac1c187f7d98f6d715
2007-08-24 17:52:21 +00:00
drh
1cc8c448b5
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)
FossilOrigin-Name: b8451da378179d43f25d9a014480c0f13dd1dc37
2007-08-24 16:08:29 +00:00
drh
153c62c461
The win32 driver compiles but does not yet work well. Many bugs
...
fixed. (CVS 4282)
FossilOrigin-Name: 3a68fcddfa9184e4b310ce0a21312c54b9462ec8
2007-08-24 03:51:33 +00:00
drh
29278e3dbb
Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255)
...
FossilOrigin-Name: fbbd5bda544ffec4e1b43407b12e546235dc7873
2007-08-21 10:44:15 +00:00
drh
8fea1285f0
In the windows driver, reacquire the shared lock if an exclusive lock
...
fails. Ticket #2354 . (CVS 3992)
FossilOrigin-Name: fc489b53829aa25bc10cc47d679c81d95c746abf
2007-05-14 12:12:11 +00:00
drh
59df4cda00
Fix a sprintf() problem introduced by (3916). (CVS 3927)
...
FossilOrigin-Name: 54a1d275aa0154a88d433a3c4df538d52c2c3ecb
2007-05-05 12:06:24 +00:00
drh
5bb3eb9b9a
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)
FossilOrigin-Name: ba4845b32bdf38e623c4f7246e6e327715bbba4b
2007-05-04 13:15:55 +00:00
drh
694b19d86e
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)
FossilOrigin-Name: ca56c3e2250eda0b312ab6f801b0fd95fb136bfa
2007-04-11 17:54:03 +00:00
drh
61fc595fdd
Fix some warnings about unused and uninitialized variables. (CVS 3788)
...
FossilOrigin-Name: 18aec1ddfb08b74f0ef9cf1215eac7af71449db3
2007-04-01 23:49:51 +00:00
drh
a16313e505
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)
FossilOrigin-Name: 23653f7aab6609f69948a7366bef9ebd0fd4d0b1
2007-03-30 11:29:32 +00:00