pweilbacher
8f1a6ff6f7
Init zFullCp to prevent crashes in case DosQueryPathInfo() fails. (CVS 5435)
...
FossilOrigin-Name: 70685b2ae8bbb8ab4316a762e1c1cc59b8032e0b
2008-07-18 05:36:28 +00:00
pweilbacher
71b53ca460
Get rid of the debug output, and make pre-C99 compilers happy with sqlite3_os_init() on OS/2. (CVS 5429)
...
FossilOrigin-Name: 08fe49f62f8a91c36ad4bb9a1d8c89806c37f600
2008-07-16 19:30:37 +00:00
pweilbacher
2a6962adfe
Work around bugs in older versions of the OS/2 conversion library by trying to minimize calls to UniCreateUconvObject() etc. Use global uconv objects instead. (CVS 5418)
...
FossilOrigin-Name: 80e42183066b53129778ae8cbb16e495f7a82990
2008-07-15 22:59:04 +00:00
pweilbacher
96d9cf064b
Handle sqlite3_temp_directory on OS/2. (CVS 5379)
...
FossilOrigin-Name: 9da0b32c8c55b41cbcb4eb635c51348072101ea9
2008-07-08 22:34:06 +00:00
pweilbacher
7f6358b4f5
make OS/2 VFS functions static (CVS 5376)
...
FossilOrigin-Name: b40d9496d03b16a25c164bbb694860539f77cbc3
2008-07-08 19:46:24 +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
pweilbacher
91ef8f45c4
OS/2 fixes for pre-C99 compilers and a return code correction in os2Access(). (CVS 5298)
...
FossilOrigin-Name: 3241a3bdd08f6abf3f1655152e296cc7ebe73bca
2008-06-24 22:50:06 +00:00
pweilbacher
6a9773e884
fix OS/2 files to compile again (looking at Windows equivalents for guidance) (CVS 5239)
...
FossilOrigin-Name: 8b14a220f261b354e7d2d16dc3fe30c5d3d34143
2008-06-18 21:08:16 +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
drh
9a8f176e8d
Copy the latest VFS changes into the OS/2 implementation. This is a blind
...
edit - I have no way to compile or test OS/2. (CVS 5210)
FossilOrigin-Name: b60508ccbc3159e994bc988512d9dbec3932deb6
2008-06-12 12:38:10 +00:00
shane
022e8afe49
Removed all C++ style comments. Ticket #3172 . (CVS 5207)
...
FossilOrigin-Name: 59f72425eb9acd270110a6a739f98a045c555f23
2008-06-12 02:16:44 +00:00
pweilbacher
8407f0eb3e
Fix OS/2 compilation for pre-C99 compilers. (CVS 5150)
...
FossilOrigin-Name: de8e67182d8f9d1f0b215da93a396b9467604a50
2008-05-20 19:08:53 +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
pweilbacher
8bf23da5a3
check that DosWrite() was successful before trying again (CVS 5125)
...
FossilOrigin-Name: 1ef6458bee4f0f77ded7c532f196d4c876ec9649
2008-05-12 16:56:13 +00:00
pweilbacher
f19dfc4e0a
Use short timeout for locking operations by default to be more in sync with the other platforms. (CVS 5119)
...
FossilOrigin-Name: d00a015dbcc5a7fc4aa7cb41f9740a712af510ae
2008-05-12 00:32:08 +00:00
pweilbacher
8d4fc83817
Correctly test DosWrite() for failure return code (CVS 5118)
...
FossilOrigin-Name: 3eff0ef2cfe70389bc80a270902702206be178f3
2008-05-12 00:29:41 +00:00
pweilbacher
d2dadc9647
Fix leaked filename in case DosOpen() fails. (CVS 5115)
...
FossilOrigin-Name: ecc6c739064922937ce66339f74403a0346aeedd
2008-05-09 19:38:24 +00:00
pweilbacher
ed66afb0f4
Fix most remaining testsuite failures on OS/2 by switching to exclusive locks that we meant to use from the start. (CVS 5092)
...
FossilOrigin-Name: 5f682c9a68853f33aac6a2ad3f91b1cdf17dcd73
2008-05-06 22:22:11 +00:00
pweilbacher
0e6cf0aa5d
The pathToDel element of the os2File structure should be in the local codepage instead of UTF-8 to make DosForceDelete() work. (CVS 5091)
...
FossilOrigin-Name: 76028b5e5d220e1d44667b2fef8bdfc580c913b0
2008-05-06 22:15:26 +00:00
pweilbacher
7c74f12615
Remove delOnClose flag from os2File structure, use pathToDel==NULL for the same check. (CVS 5090)
...
FossilOrigin-Name: 02e123bb9b3da81bc8ee8bab7a2c54bbaadc5123
2008-05-06 21:42:09 +00:00
pweilbacher
5ff1020dd8
We should better not pass open file handles to child processes, so add respective flag for DosOpen(). (CVS 5037)
...
FossilOrigin-Name: 1518e8542cebd977d46e720544bfad16d3f8895e
2008-04-23 23:03:10 +00:00
pweilbacher
d190be8539
Support UTF-8 filenames on OS/2 by converting them to and from the local codepage. Ticket 3052. (CVS 5014)
...
FossilOrigin-Name: cafa8ac2687890355a7faa751d71859eb0fadd01
2008-04-15 18:50:02 +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
pweilbacher
d4c8a60358
small correctness fix for os2CheckReservedLock() (CVS 4785)
...
FossilOrigin-Name: f364d9342345cb11a4fd1961ab4f6387fb6abacc
2008-02-14 00:00:50 +00:00
pweilbacher
6034b1e07e
always use random access mode when opening files (like on Windows) (CVS 4784)
...
FossilOrigin-Name: 9f4da1013b558fcabadc3a3bec6bcdae9b06399e
2008-02-13 23:48:02 +00:00
pweilbacher
6ee442bcc9
Use the buffer size as limit for temp file names. This is done for windows too, see check-in (4595). (CVS 4771)
...
FossilOrigin-Name: 99275bcd624c57585fc962235082fb0ca213d9c0
2008-02-01 19:44:28 +00:00
pweilbacher
0fd508e3f6
make os2Truncate() actually do something and fix os2FullPathname() to be more elegant and work more correctly in all cases (Ticket #2904 ) (CVS 4766)
...
FossilOrigin-Name: 921c7a0ac4581255ea5061980ff7991088b9b78a
2008-02-01 00:31:59 +00:00
pweilbacher
2a51576298
fix case in os2GetTempname() where none of the usual environment variables are set to not overwrite two unrelated bytes (CVS 4648)
...
FossilOrigin-Name: 9719a063942256e34395868d974ed2d53b81b697
2007-12-30 23:38:00 +00:00
pweilbacher
ce3dc640f5
simplify os2FullPathname() and at the same time make the allocations more robust (CVS 4647)
...
FossilOrigin-Name: 6f8952a8366065c9baa48cacc9c36743788210db
2007-12-30 23:35:15 +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
pweilbacher
71be8e692b
Fix os2CurrentTime() to give correct results for negative timezones. (CVS 4513)
...
FossilOrigin-Name: a3b82548cb51431569aafacf38e3391a8a1b697b
2007-10-24 23:04:32 +00:00
pweilbacher
99295b4933
Fix os2GetTempname() to actually work: DosScanEnv() wants an empty PSZ as argument and we obviously don't need to test for file existence any more. (CVS 4512)
...
FossilOrigin-Name: 8a233845f61080cca24da3672444f3e5b985da67
2007-10-24 23:03:25 +00:00
pweilbacher
b36dc73cbc
Finally bring OS/2 to the 3.5 level. This at least is a first draft version that survives very basic tests. It still contains a lot of debugging stuff... (CVS 4500)
...
FossilOrigin-Name: 46b2d1034b3d25ded71085c901301ad64b5aaba2
2007-10-21 22:47:03 +00:00
pweilbacher
5056b41c1f
Fix temp file handling for OS/2 so that trailing slashes or backslashes
...
are stripped off the path gotten from the environment. Otherwise full
paths might contain multiple slashes which causes opening of files to
fail. (CVS 4406)
FossilOrigin-Name: 96aa96ac11ab63b51e4322e88ded4f931e1e78c8
2007-09-05 22:28:23 +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
pweilbacher
d8e9b6238e
Fix compilation warnings shown when using strict GCC options for os_os2.c. (CVS 4154)
...
FossilOrigin-Name: 22277b7e1b3eb1678280de5d49a6613908ab4bff
2007-07-03 23:37:09 +00:00
pweilbacher
503028d61a
Change OS/2 version of sqlite3Os2FullPathname() for cross-compiler compatibility:
...
- allocate zBuff on demand (restricted stack space on old compilers)
- 2 bytes in zDrive in include '\0'
- pass drive number to DosQueryCurrentDir() instead of 0 to make EMX work
- zFull does not need to be preallocated (CVS 4149)
FossilOrigin-Name: cc2105176563c352a6dccef89a429a76b6f3adf5
2007-07-01 15:41:02 +00:00
pweilbacher
2b9ca8d3e4
Including os2safe.h from os_os2.c is no longer necessary (now that it's including from os.h) (CVS 4148)
...
FossilOrigin-Name: 6432bbe1c1db1d31bd0057d99a9d6b6a428d8ffc
2007-06-30 16:30:39 +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
drh
3ceeb75680
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)
FossilOrigin-Name: 0fb9af1d6e20bf25511c6d2097937cc11137776e
2007-03-29 18:19:52 +00:00
drh
4f0c587819
Modify sources to that they can be combined into a single sqlite3.c source
...
file. Eliminate all type-pruned pointer warnings. (CVS 3722)
FossilOrigin-Name: 0b832e218ec12b0eb559e407d80aba6709e2ea85
2007-03-26 22:05:01 +00:00
danielk1977
a3d4c887e0
Add a comment to the OsSectorSize() function. (CVS 3710)
...
FossilOrigin-Name: 0fd9983a98d8d61654f252f1708a4d7232a96b53
2007-03-23 10:08:38 +00:00
danielk1977
b472117c11
Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700)
...
FossilOrigin-Name: 5752d84d374205e011d49b0221d6237967fe0743
2007-03-19 05:54:48 +00:00
pweilbacher
5fecee1557
Implement the platform specific part of the shared library interface on OS/2 (CVS 3618)
...
FossilOrigin-Name: 027251a6fc9971b337172436137fabdafec1d264
2007-01-28 21:42:08 +00:00
pweilbacher
4a53cdbc34
Adapt returns of the os2Read() function to those of other platforms using checkin (3549) to prevent possible corruption (CVS 3617)
...
FossilOrigin-Name: ba76107cd1fc1898f5357b20b339727e2e034e23
2007-01-28 21:12:13 +00:00
pweilbacher
4fffb4f0ef
OS/2 change: add safeguard to be able to use SQLite loaded into high memory on OS/2 when compiled with GCC 3.3 or later. Currently, this is only used when building within the Mozilla source tree. (CVS 3546)
...
FossilOrigin-Name: 720189b8fafa61e5b712b409e76c368079b4bf96
2006-12-22 20:33:13 +00:00
drh
761df87ea5
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)
FossilOrigin-Name: a1bcc6de578992b28924c1cf974ea58251454e2d
2006-12-21 01:29:22 +00:00
drh
551b77365e
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)
FossilOrigin-Name: 6324ea811eec1200cee89e6f377368eaf2fcda77
2006-11-06 21:20:25 +00:00
drh
5968593b51
Enhanced I/O error simulation. (CVS 3418)
...
FossilOrigin-Name: 86931854fc5a63571719639d9a23b1d6614a6153
2006-09-14 13:47:11 +00:00