/ File History
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of src/os_os2.c

2011-04-11
15:36
Updates to the OS/2 patches. This change also move the location of a global variable declaration in shell.c which might effect other build targets. file: [4a75888b] check-in: [73906b67] user: drh branch: trunk, size: 61020
13:57
Apply OS2 WAL patch. Changes to os_os2.c only. file: [e435657f] check-in: [eac17106] user: dan branch: trunk, size: 61013
2011-03-09
11:04
Updates to the OS/2 implementation from Rich Walsh. file: [2596fd2d] check-in: [dc46156a] user: drh branch: trunk, size: 38837
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: [2e452c9f] check-in: [6f2c72a0] user: drh branch: trunk, size: 35672
2010-07-23
22:26
Fix a typo in the OS/2 vfs code. file: [72d0b2e5] check-in: [a6bb2108] user: drh branch: trunk, size: 35669
2010-05-14
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: [665876d5] check-in: [5fe529f2] user: drh branch: trunk, size: 35668
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: [8ad77a41] check-in: [ed715b47] user: drh branch: wal, size: 35561
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: [082884dc] check-in: [f5e615c2] user: drh branch: wal, size: 35914
2009-11-10
01:30
Remove the obsolete "$Id:$" RCS identifier strings from the source code. file: [75a8c7b9] check-in: [f6c045f6] user: drh branch: trunk, size: 35561
2008-12-10
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: [bed77dc2] check-in: [c872d554] user: drh branch: trunk, size: 35618
2008-11-26
20:03
remove warning in os2Sync() with SQLITE_NO_SYNC set (CVS 5962) file: [36196e71] check-in: [68a51f67] user: pweilbacher branch: trunk, size: 35608
19:56
make os2Randomness() act the same as other platforms with SQLITE_TEST (all zeroed buffer) (CVS 5961) file: [527d5fc8] check-in: [5d189df3] user: pweilbacher branch: trunk, size: 35581
2008-11-22
19:50
fix the compile warnings on OS/2 (CVS 5950) file: [cd44723f] check-in: [b7d0ec83] user: pweilbacher branch: trunk, size: 35506
2008-11-18
23:03
Add support for SQLITE_NO_SYNC for OS/2, too. (CVS 5918) file: [d12285d6] check-in: [2990b5b8] user: pweilbacher branch: trunk, size: 35503
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: [63be0987] check-in: [fb311d6f] user: drh branch: trunk, size: 35356
2008-10-13
21:46
fix a few return codes in the OS/2 VFS (CVS 5817) file: [24221ff5] check-in: [4e978a40] user: pweilbacher branch: trunk, size: 35298
2008-08-22
13:47
Hide (for non-debugging builds) and remove DELETEONCLOSE files on OS/2, following the Windows example. Ticket #3328. (CVS 5592) file: [e391fc95] check-in: [8aaa7700] user: pweilbacher branch: trunk, size: 35270
2008-07-29
18:49
finally make temporary and journal files hidden in release builds on OS/2 (CVS 5497) file: [676ed273] check-in: [c449a95c] user: pweilbacher branch: trunk, size: 35702
18:38
recursively call os2Open() with the incoming VFS pointer, in case it gets used in the future (CVS 5496) file: [a0dcdd2d] check-in: [6eac49f0] user: pweilbacher branch: trunk, size: 35682
18:35
move os2FullPathname() so that it can be used in os2Open() directly (CVS 5495) file: [3f4383c4] check-in: [2455e454] user: pweilbacher branch: trunk, size: 35679
2008-07-18
05:36
Init zFullCp to prevent crashes in case DosQueryPathInfo() fails. (CVS 5435) file: [da14449f] check-in: [70685b2a] user: pweilbacher branch: trunk, size: 35684
2008-07-16
19:30
Get rid of the debug output, and make pre-C99 compilers happy with sqlite3_os_init() on OS/2. (CVS 5429) file: [5f81fda1] check-in: [08fe49f6] user: pweilbacher branch: trunk, size: 35677
2008-07-15
22:59
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) file: [b16aee2f] check-in: [80e42183] user: pweilbacher branch: trunk, size: 35884
2008-07-08
22:34
Handle sqlite3_temp_directory on OS/2. (CVS 5379) file: [6c33e61f] check-in: [9da0b32c] user: pweilbacher branch: trunk, size: 34990
19:46
make OS/2 VFS functions static (CVS 5376) file: [7ca541fc] check-in: [b40d9496] user: pweilbacher branch: trunk, size: 34627
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: [38fd8cfb] check-in: [cdd4cf4c] user: danielk1977 branch: trunk, size: 34532
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: [20590077] check-in: [8fa33b79] user: danielk1977 branch: trunk, size: 34518
2008-06-24
22:50
OS/2 fixes for pre-C99 compilers and a return code correction in os2Access(). (CVS 5298) file: [4647d718] check-in: [3241a3bd] user: pweilbacher branch: trunk, size: 34825
2008-06-18
21:08
fix OS/2 files to compile again (looking at Windows equivalents for guidance) (CVS 5239) file: [9dc031a3] check-in: [8b14a220] user: pweilbacher branch: trunk, size: 34770
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: [9f74147f] check-in: [a03c5af1] user: drh branch: trunk, size: 34674
2008-06-12
12:38
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) file: [6cc3ff5e] check-in: [b60508cc] user: drh branch: trunk, size: 34449
02:16
Removed all C++ style comments. Ticket #3172. (CVS 5207) file: [ae37c597] check-in: [59f72425] user: shane branch: trunk, size: 34051
2008-05-20
19:08
Fix OS/2 compilation for pre-C99 compilers. (CVS 5150) file: [1578149e] check-in: [de8e6718] user: pweilbacher branch: trunk, size: 34049
2008-05-16
04:51
Add more version tags to files that lack them. Ticket #3120. (CVS 5137) file: [afb7ce54] check-in: [81a8c70e] user: danielk1977 branch: trunk, size: 34038
2008-05-12
16:56
check that DosWrite() was successful before trying again (CVS 5125) file: [0c3a5802] check-in: [1ef6458b] user: pweilbacher branch: trunk, size: 33973
00:32
Use short timeout for locking operations by default to be more in sync with the other platforms. (CVS 5119) file: [30d93571] check-in: [d00a015d] user: pweilbacher branch: trunk, size: 33973
00:29
Correctly test DosWrite() for failure return code (CVS 5118) file: [6811c0b4] check-in: [3eff0ef2] user: pweilbacher branch: trunk, size: 34094
2008-05-09
19:38
Fix leaked filename in case DosOpen() fails. (CVS 5115) file: [0965c36d] check-in: [ecc6c739] user: pweilbacher branch: trunk, size: 34080
2008-05-06
22:22
Fix most remaining testsuite failures on OS/2 by switching to exclusive locks that we meant to use from the start. (CVS 5092) file: [30c378b0] check-in: [5f682c9a] user: pweilbacher branch: trunk, size: 34021
22:15
The pathToDel element of the os2File structure should be in the local codepage instead of UTF-8 to make DosForceDelete() work. (CVS 5091) file: [dec26e64] check-in: [76028b5e] user: pweilbacher branch: trunk, size: 34020
21:42
Remove delOnClose flag from os2File structure, use pathToDel==NULL for the same check. (CVS 5090) file: [a5b4cab0] check-in: [02e123bb] user: pweilbacher branch: trunk, size: 34016
2008-04-23
23:03
We should better not pass open file handles to child processes, so add respective flag for DosOpen(). (CVS 5037) file: [41015b3f] check-in: [1518e854] user: pweilbacher branch: trunk, size: 34131
2008-04-15
18:50
Support UTF-8 filenames on OS/2 by converting them to and from the local codepage. Ticket 3052. (CVS 5014) file: [7a918c40] check-in: [cafa8ac2] user: pweilbacher branch: trunk, size: 34093
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: [85c44333] check-in: [15110ea0] user: drh branch: trunk, size: 31527
2008-02-14
00:00
small correctness fix for os2CheckReservedLock() (CVS 4785) file: [10b23539] check-in: [f364d934] user: pweilbacher branch: trunk, size: 31526
2008-02-13
23:48
always use random access mode when opening files (like on Windows) (CVS 4784) file: [c87c6501] check-in: [9f4da101] user: pweilbacher branch: trunk, size: 31436
2008-02-01
19:44
Use the buffer size as limit for temp file names. This is done for windows too, see check-in (4595). (CVS 4771) file: [bf1cd3d4] check-in: [99275bcd] user: pweilbacher branch: trunk, size: 31706
00:31
make os2Truncate() actually do something and fix os2FullPathname() to be more elegant and work more correctly in all cases (Ticket #2904) (CVS 4766) file: [0c3e3f98] check-in: [921c7a0a] user: pweilbacher branch: trunk, size: 31754
2007-12-30
23:38
fix case in os2GetTempname() where none of the usual environment variables are set to not overwrite two unrelated bytes (CVS 4648) file: [4aca68fa] check-in: [9719a063] user: pweilbacher branch: trunk, size: 32403
23:35
simplify os2FullPathname() and at the same time make the allocations more robust (CVS 4647) file: [507e9271] check-in: [6f8952a8] user: pweilbacher branch: trunk, size: 32363
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: [b88b833f] check-in: [4e91a267] user: drh branch: trunk, size: 32416
2007-10-24
23:04
Fix os2CurrentTime() to give correct results for negative timezones. (CVS 4513) file: [98f5486f] check-in: [a3b82548] user: pweilbacher branch: trunk, size: 32417
23:03
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) file: [ea8cb86c] check-in: [8a233845] user: pweilbacher branch: trunk, size: 32349
2007-10-21
22:47
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) file: [8d8ef446] check-in: [46b2d103] user: pweilbacher branch: trunk, size: 32353
2007-09-05
22:28
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) file: [5b5f4218] check-in: [96aa96ac] user: pweilbacher branch: trunk, size: 30682
2007-08-21
10:44
Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) file: [8769301b] check-in: [fbbd5bda] user: drh branch: trunk, size: 30399
2007-07-03
23:37
Fix compilation warnings shown when using strict GCC options for os_os2.c. (CVS 4154) file: [cba4e96f] check-in: [22277b7e] user: pweilbacher branch: trunk, size: 30415
2007-07-01
15:41
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) file: [a8220ba3] check-in: [cc210517] user: pweilbacher branch: trunk, size: 30329
2007-06-30
16:30
Including os2safe.h from os_os2.c is no longer necessary (now that it's including from os.h) (CVS 4148) file: [ca47aa5f] check-in: [6432bbe1] user: pweilbacher branch: trunk, size: 30241
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: [2ce97909] check-in: [23653f7a] user: drh branch: trunk, size: 30426
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: [313ece30] check-in: [0fb9af1d] user: drh branch: trunk, size: 30621
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: [cb2c4f6d] check-in: [0b832e21] user: drh branch: trunk, size: 30612
2007-03-23
10:08
Add a comment to the OsSectorSize() function. (CVS 3710) file: [de7e1660] check-in: [0fd9983a] user: danielk1977 branch: trunk, size: 30574
2007-03-19
05:54
Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700) file: [175101ff] check-in: [5752d84d] user: danielk1977 branch: trunk, size: 30110
2007-01-28
21:42
Implement the platform specific part of the shared library interface on OS/2 (CVS 3618) file: [8ee8207f] check-in: [027251a6] user: pweilbacher branch: trunk, size: 30087
21:12
Adapt returns of the os2Read() function to those of other platforms using checkin (3549) to prevent possible corruption (CVS 3617) file: [79df76be] check-in: [ba76107c] user: pweilbacher branch: trunk, size: 29442
2006-12-22
20:33
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) file: [1ece434c] check-in: [720189b8] user: pweilbacher branch: trunk, size: 29319
2006-12-21
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: [d3992247] check-in: [a1bcc6de] user: drh branch: trunk, size: 29133
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: [c1bfc0c3] check-in: [6324ea81] user: drh branch: trunk, size: 28737
2006-09-14
13:47
Enhanced I/O error simulation. (CVS 3418) file: [36196475] check-in: [86931854] user: drh branch: trunk, size: 28726
2006-06-24
12:39
(OS/2) Armor OS/2 against accidental deletion of files, too (patch by Daniel Kruse, verified by me) (CVS 3293) file: [1cf00781] check-in: [f357efb3] user: pweilbacher branch: trunk, size: 28669
2006-06-03
18:02
Added support for OS/2. Ticket #1817 (CVS 3198) file: [123cb394] check-in: [373246c2] user: drh branch: trunk, size: 28451 Added