SQLite
File History
Not logged in

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

History of src/os_unix.c

2010-09-02
14:00
[6152042c3a619fbc] part of check-in [36397f62f2] Fix the computation of the offset on the mmap() for the Nth shared memory region. Because of the way shared memory is accessed, the old computation, though wrong, still happened to always get the right answer. Nevertheless, it is good to do the computation correctly. (user: drh branch: trunk)
2010-08-18
00:24
[3853edc254c464c0] part of check-in [866e9286ae] Merge the 3.7.1 pre-release snapshot changes as of [2010-08-18] into the apple-osx branch. (user: drh branch: apple-osx)
00:09
[b7267d7fa3b77306] part of check-in [5e2ee7db0f] Updating apple-osx with minor source fixes, database truncate and replace private calls and a bunch of conditionalization for tests running in different environments (user: adam branch: apple-osx)
2010-08-11
06:14
[11194cbcf6a57456] part of check-in [f854cbe063] Fix memory allocation in proxy locking so that it works with SQLITE_MEMDEBUG. (user: drh branch: trunk)
06:04
[ae5ca8a603138070] part of check-in [aa092ac928] Merge experimental changes into trunk. (user: dan branch: trunk)
2010-08-07
11:46
[3109e0e5a0d5551b] part of check-in [f88c6367d2] Merge in all changes up to the 3.7.0.1 release. (user: drh branch: apple-osx)
2010-07-28
14:26
[ae5ca8a603138070] part of check-in [a038688c99] Support FCNTL_CHUNK_SIZE on windows too. (user: dan branch: experimental)
2010-07-27
18:34
[77e963fbbed6a2ca] part of check-in [7cf0e851d4] Add experimental unix-only file-control to grow and truncate the database file by a configurable chunk size. (user: dan branch: experimental)
2010-07-20
18:59
[3109e0e5a0d5551b] part of check-in [3b7330c19a] Fix a race condition in os_unix.c that may occur when one thread is opening a connection to a shared-memory block and another is either closing or locking the same shared-memory. (user: dan branch: trunk)
2010-07-15
18:38
[fa606537ade76f97] part of check-in [abff795f38] Previous check-in [534aab837e] accidently reverted some changes from [a121cd80c5]. This check-in restores those changes. (user: drh branch: trunk)
18:32
[d27404c02d394773] part of check-in [534aab837e] Optionally support shared-memory in /dev/shm or other tmpfs directory using an unsupported compile-time option. (user: drh branch: trunk)
14:59
[73cce1696c0c9e27] part of check-in [a121cd80c5] When creating a journal file on unix, attempt to create it with the same permissions as the associated database file. (user: dan branch: trunk)
2010-07-14
20:51
[fd7706aaec6ad9e4] part of check-in [e1e7312580] Fix a typo in a comment in os_unix.c. (user: drh branch: trunk)
14:48
[417a378a1941b920] part of check-in [e5d180eed2] On unix, try to create the *-wal and *-shm files with the same permissions as the associated database file. (user: dan branch: trunk)
01:45
[cfcb63d4aadadd75] part of check-in [90d73c66bf] Fix the unix driver to return an I/O error if unlink fails for any reason other than the file not existing in the first place. (user: drh branch: trunk)
00:22
[7845a3c91b5e5e1e] part of check-in [2b68e50268] Remove the xShmOpen method from the VFS. Shared-memory is opened automatically by a call to xShmMap. Rename the xShmClose method to xShmUnmap. (user: drh branch: trunk)
00:14
[7845a3c91b5e5e1e] part of check-in [c2d27cf51d] Change the name of the xShmClose VFS method to xShmUnmap, everywhere. (user: drh branch: experimental)
2010-07-13
23:41
[53a84d8a2aeaf8fa] part of check-in [6336de7aa9] Tweaks to the new shared-memory interface design - mostly comment changes. (user: drh branch: experimental)
18:44
[abefe4129fe19f03] part of check-in [f4780bde62] 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. (user: dan branch: experimental)
2010-07-03
17:13
[c6112f0ae34f23ae] part of check-in [51ec0e5432] Remove the unused xRename() method from the sqlite3_vfs object. Add better documentation on the xCurrentTimeInt64() method. (user: drh branch: trunk)
12:31
[d7910391a4c9fa68] part of check-in [48bf309391] Cherry-pick the correct changes out of the recent "mistake" branch while omitting the bugs. (user: drh branch: trunk)
2010-07-02
17:10
[d7910391a4c9fa68] part of check-in [26c7689cfe] Fix compiler warnings in the proxy locking code. (user: drh branch: mistake)
2010-06-26
21:34
[ec7c7f7ca224ce2f] part of check-in [e82d008eaf] Suppress various compiler warnings. (user: drh branch: trunk)
2010-06-23
17:58
[4b03e5a8a353b51a] part of check-in [a6dc0df304] Adjust the shared-memory locking range to account for the new version number values in the wal-index header. (user: drh branch: trunk)
2010-06-21
12:47
[5231a75a3799872b] part of check-in [ee0acef1fa] Merge the experimental UNDELETABLE_WHEN_OPEN optimization into the trunk. (user: drh branch: trunk)
06:00
[5231a75a3799872b] part of check-in [f6d26e07b7] Merge latest trunk change. (user: dan branch: experimental)
2010-06-19
23:53
[838e0c0cabb722ac] part of check-in [822a0283c6] Fix an uninitialized variable in os_unix.c. (user: drh branch: trunk)
15:10
[a76d1952ac798457] part of check-in [2241788bc8] Change the unix VFS to always allocate shared-memory using a file in the same directory as the database. Otherwise, a chroot might cause different processes to use different shared memory files resulting in database corruption. (user: drh branch: trunk)
2010-06-18
11:10
[2555f00c4c777539] part of check-in [077b0e5bcd] Change the implementation of the unix implementation of xAccess() so that it returns 0 (does not exist) to an SQLITE_ACCESS_EXISTS query on a file that exists but is zero bytes in size. (user: dan branch: experimental)
2010-06-16
19:48
[fdeb37c703243141] part of check-in [21ca87f691] Merge in changes up to and including the 3.6.23.1 release. (user: drh branch: apple-osx)
10:55
[ae173c9f6afaa58b] part of check-in [6c5c04eea1] Fix a memory leak that can occur in os_unix.c if an IO error occurs within the xUnlock method. (user: dan branch: trunk)
2010-06-14
18:01
[22bb2a8c1f3bbf65] part of check-in [58dfd83d8b] Move the xShmMap method to in between xShmLock and xShmBarrier, since it seems to fit in there logically. (user: drh branch: trunk)
17:09
[710418915cc3b59e] part of check-in [f295e7ed5f] Merge the experimental shared-memory mmap-by-chunk changes into the trunk. (user: drh branch: trunk)
16:16
[710418915cc3b59e] part of check-in [13e7a82422] Add the new xShmMap (formerly xShmPage) to os_win.c. (user: dan branch: experimental)
14:07
[0a57b86241011ca2] part of check-in [fc0cabc15c] Remove xShmGet/Size/Release from the sqlite3_vfs structure. Change the name of xShmPage to xShmMap. Remove some code that is now unused from os_unix.c and some of the test VFS implementations. (user: dan branch: experimental)
2010-06-11
19:04
[29dac62790ccea7d] part of check-in [ca68472db0] Experimental change to the xShmXXX parts of the VFS interface. (user: dan branch: experimental)
2010-06-07
19:26
[12051d37e533cdaa] part of check-in [95cc976f15] In os_unix.c, call munmap() to unmap a shared-memory region prior to closing the associated file descriptor. (user: dan branch: trunk)
2010-06-02
15:59
[8fa4eeb27c54f26e] part of check-in [f97bd520f0] Make sure the directory used by os_unix.c for shared-memory files is always the same, regardless of individual client permissions and environment variable settings. (user: drh branch: trunk)
14:45
[7ae9257f65b32f20] part of check-in [ebf4041383] Changes to make WAL more robust against SHM locking failures and OOM errors. (user: drh branch: trunk)
2010-06-01
21:02
[31511480da88947d] part of check-in [fc18c4aadb] The shared-memory used by WAL on linux now really is shared memory in /dev/shm. On other unix flavors, the file is in a temporary directory rather than in the same directory as the database. (user: drh branch: trunk)
15:24
[29dd06f485067232] part of check-in [1d3e569e59] The incremental checkpoint feature is not perfect yet, but it is working well enough to merge it into the trunk. (user: drh branch: trunk)
11:08
[29dd06f485067232] part of check-in [9622dd468c] Do not hold the shared-memory mutex in os_unix.c if returning NULL. (user: dan branch: wal-incr-ckpt)
00:03
[fe672ba65f15599b] part of check-in [bc707c83e5] Fix os_unix.c so that it will compile and build on a Mac. (user: drh branch: wal-incr-ckpt)
2010-05-31
20:28
[129e60ccca3abe59] part of check-in [8deba0cebd] Fix issues with locking_mode=EXCLUSIVE in WAL. (user: drh branch: wal-incr-ckpt)
16:56
[18ed6016685593e2] part of check-in [552658da28] Fix an inconsistent #ifdef in wal.c. Fix os_unix.c so that it does not allow moving an SHM lock directly exclusive to shared without going through unlocked. (user: drh branch: wal-incr-ckpt)
16:10
[833dbeae0072d457] part of check-in [149a7082e2] Get the new xShmLock interface design working on os_win.c. (user: drh branch: wal-incr-ckpt)
14:28
[824dc63f6732bdb1] part of check-in [cdbb4e7ca7] Remove the tests that enable tracing based on the existance of the "vdbe_*" files when in SQLITE_DEBUG mode. (user: drh branch: wal-incr-ckpt)
01:41
[f95ffaf6874cbd34] part of check-in [ace58acbf1] WAL runs but quickly deadlocks. (user: drh branch: wal-incr-ckpt)
2010-05-30
19:55
[df0c87b2d55772d5] part of check-in [ef3ba7a17f] Initial code for incremental checkpoint in WAL mode. This check-in compiles on unix and runs as long as you do not engage WAL mode. WAL mode crashes and burns. Consider this check-in a baseline implementation for getting the new capability up and running. (user: drh branch: wal-incr-ckpt)
2010-05-26
15:06
[683ba91de6841977] part of check-in [72de007312] 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). (user: drh branch: trunk)
2010-05-25
13:40
[a5771c3fcf78d0f2] part of check-in [40030c0739] 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. (user: drh branch: trunk)
2010-05-21
18:24
[35ace483789db8ed] part of check-in [7d01309da6] Comment out the SQLITE_FCNTL_SIZE_HINT from os_unix.c since it does not seem to provide any performance gain there. (user: drh branch: trunk)
2010-05-20
23:51
[5c53b43c846ff417] part of check-in [1bd011c9fe] 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. (user: drh branch: trunk)
2010-05-19
22:09
[fdeb37c703243141] part of check-in [776679af58] Cherry-pick the SQLITE_FCNTL_SIZE_HINT patch (check-in [2b7e3b4a30d6a7c4a8] and bump the version number to 3.6.23.2. (user: drh branch: branch-3.6.23)
19:26
[6db01eb2c87856f9] part of check-in [2b7e3b4a30] Add the SQLITE_FCNTL_SIZE_HINT operator to sqlite3_file_control() and use it to give the VFS hints about the ultimate size of a database file when the file is growing. (user: drh branch: trunk)
2010-05-18
13:27
[6db3289dcfe8f2ec] part of check-in [0a6787908e] Mark the shared-memory in the WAL implementation as volatile. (user: drh branch: trunk)
2010-05-17
15:33
[23b64faec0762bdc] part of check-in [9a08371171] Invoke the SQLITE_FCNTL_SIZE_HINT opcode on the sqlite3_file_control() interface for database files before extending the size of the file. The VFS can use this hint to preallocate space. (user: drh branch: branch-3.6.1)
2010-05-14
20:15
[28caddcd74e6f0de] part of check-in [9ef99d97d2] Fix a typo that (by bad luck) was not a syntax error but which caused some important lines of code to be skipped when SQLITE_DEBUG was not used. (user: drh branch: trunk)
16:34
[025da44ba18d91c2] part of check-in [4b69f2cd31] Pull in all the latest changes from the trunk. Update the win32 SHM methods to work with the new interface design. (user: drh branch: wal-win32)
14:52
[025da44ba18d91c2] part of check-in [d1debe5def] Simplifications to the SHM implementation in os_unix.c, taking advantage of the removal of the LinuxThreads mess. (user: drh branch: trunk)
12:43
[a725e2dc6f3d72b1] part of check-in [e294b696ba] Simplify os_unix.c by removing support for LinuxThreads. Linux systems must either use NPTL or else not share database connections across threads. (user: drh branch: trunk)
11:30
[1a02adfbc4d85256] part of check-in [5fe529f239] Change the OSTRACEn() macro to OSTRACE(()). Also rename some internal fields and variables in os_unix.c to be more meaningful and searchable. (user: drh branch: trunk)
2010-05-13
08:53
[a65eb0c527306fbf] part of check-in [bce21c1838] The refactored of VFS SHM primitives are now working so merge the wal-refactor branch back into the trunk. (user: drh branch: trunk)
08:33
[a65eb0c527306fbf] part of check-in [149d2ae4a6] Change the xShmSize() implementation in os_unix.c so that it will only increase and never decrease the size of a shared-memory segment. (user: drh branch: wal-refactor)
2010-05-12
18:01
[c7ff5a947fc0a09d] part of check-in [2b00152c1a] Refactoring the VFS-SHM methods used by WAL. This version compiles and runs non-WAL test cases but crashes and burns on wal.test. (user: drh branch: wal-refactor)
2010-05-11
16:29
[c306feb1be41283a] part of check-in [885e854e7c] Have os_unix.c use the suffix "-wal-index" for wal-index files instead of "-wal-inde". (user: dan branch: trunk)
2010-05-10
19:51
[34fe71c67fce7236] part of check-in [6e3735f72c] Fix an off-by-one error while constructing the name of the mmap file for the wal-index under os_unix.c. (user: drh branch: trunk)
18:10
[f3a7ea94e5b59b60] part of check-in [c67756c404] Merge [96d6eaf4d2] and [40b0a6357b]. (user: dan branch: trunk)
17:29
[f3a7ea94e5b59b60] part of check-in [96d6eaf4d2] Fix an uninitialized variable in OSX proxy locking. (user: drh branch: trunk)
2010-05-07
20:02
[164d85df39df72fb] part of check-in [a65c293926] Change the xShmOpen() method of the VFS to take the database file name as its argument, not the WAL file name. Also fix some unrelated compiler warnings. (user: drh branch: trunk)
2010-05-06
18:48
[00403219ceac733a] part of check-in [bb0b6021e7] Instead of transitioning to RECOVER state from CHECKPOINT when a recovery is required, perform the recovery while holding the CHECKPOINT lock. (user: dan branch: trunk)
2010-05-05
19:09
[2ce91d5d9a8d0e8d] part of check-in [e9bfa6e4ce] Further simplifications to the SHM locking logic. Remove the SQLITE_SHM_QUERY option. Unify the WRITE to READ and RECOVER to READ transitions. (user: drh branch: trunk)
18:20
[623a195fbcdb7b92] part of check-in [9de05bfb09] Simplifications to the SHM locking implementation in os_unix.c. (user: drh branch: trunk)
2010-05-03
18:22
[7ab8d2fe59954dca] part of check-in [551df11a56] Fix a bug in the xCurrentTime() method of the os_unix.c VFS. (user: drh branch: trunk)
17:18
[2d19037594cd2ae3] part of check-in [9d3f3736be] Fix a couple of errors in WAL code that can occur in an OOM situation. (user: dan branch: trunk)
16:30
[7d706a3a50818271] part of check-in [43b5b07f0d] Change the VFS definition so that all methods take a VFS object pointer as their first parameter. (user: drh branch: trunk)
14:32
[f3c0faad1c6de4f0] part of check-in [ab77b3ae6d] Use VFS method xCurrentTimeInt64 instead of xCurrentTime when it is available. Provide an implementation of xCurrentTimeInt64 for os_unix.c. (user: drh branch: trunk)
14:08
[5c821e4eb0409310] part of check-in [de9ae443cc] Merge the write-ahead-logging changes into the trunk. (user: drh branch: trunk)
08:19
[5c821e4eb0409310] part of check-in [23c0e6c3f3] Merge two wal leaves. (user: dan branch: wal)
2010-05-01
20:17
[5c821e4eb0409310] part of check-in [94dea5f9c1] Change the SHM interface so that it does not take the name of the shared object but rather the name of the WAL file and derives its own name from that. Remove the xShmDelete method from the VFS and replace it with a delete flag on xShmClose. (user: drh branch: wal)
18:23
[d003631afe10f2cb] part of check-in [69e07fdbde] Remove the xShmPush and xShmPull methods from the VFS. (user: drh branch: wal)
17:57
[bb8b65d92a79b4b1] part of check-in [6af2dca75b] Define an invariant to guarantee deadlock-free operation of SHM in os_unix.c and check that invariant with assert() statements. (user: drh branch: wal)
17:50
[d402146bd3731575] part of check-in [1a0f69bef2] Rework mutexes on the SHM implemention for os_unix to avoid a deadlock during WAL recovery. (user: drh branch: wal)
16:40
[27ec47f27987b9f2] part of check-in [9b230c43df] Support compile-time option SQLITE_OMIT_WAL, for building without WAL support. (user: dan branch: wal)
2010-04-30
17:47
[559f9f18ccd85a6d] part of check-in [8660cda6f8] Change the SHM VFS logic in os_unix.c so that it does not hold an exclusive lock n the mapped memory when also holding a CHECKPOINT lock. This improves concurrency between readers and checkpointers. (user: drh branch: wal)
16:48
[edbc13a32a6b835b] part of check-in [2afc33de2b] In the debugging output for SHM-LOCK in os_unix.c, use symbolic names for the lock states rather than raw numbers. (user: drh branch: wal)
16:41
[72413d328c45dce9] part of check-in [90119fecbc] Fix a problem in the previous commit. Both unixShm.lockState and unixShm.readLock should be set to READ when downgrading from a WRITE to a READ lock (user: dan branch: wal)
16:38
[d0deee9969cec736] part of check-in [55f5af5e17] Fix a bug whereby upgrading from a READ_FULL to a WRITE lock, and then back to a read lock was dropping all WAL locks. (user: dan branch: wal)
15:54
[7d10d3a8b4f3e0c7] part of check-in [69567c5fca] Fix a couple uninitialized variables in the xShmLock method of the unix VFS. Improved debugging logic for xShmLock. (user: drh branch: wal)
14:39
[b2322d8fb389b4bc] part of check-in [4cbe49f13f] Separate the concepts of underlying storage size and mapped size in the VFS shared-memory implementation. (user: drh branch: wal)
11:43
[7451a717574c9b98] part of check-in [1f9e8c5c27] Add a missing walIndexUnmap() call to the checkpoint code. Change a couple of SQLITE_CANTOPEN constants to SQLITE_CANTOPEN_BKPT. (user: dan branch: wal)
10:06
[f5e41bd2f563f85c] part of check-in [a4741cb54d] Add missing mutexes to unixShmClose(). (user: dan branch: wal)
09:52
[685b0347383b5d12] part of check-in [a8f958be80] Fix a couple of assert() statements in os_unix.c and wal.c. Combine sqlite3WalIsDirty() with sqlite3WalUndo(). (user: dan branch: wal)
09:32
[4237d2a642930730] part of check-in [72b95fde15] Add a missing walIndexUnmap() to sqlite3WalSnapshotOpen(). (user: dan branch: wal)
02:13
[d9b2b017216075bb] part of check-in [a92c1851da] The first 6 WAL tests now work. It's a start. (user: drh branch: wal)
2010-04-29
22:34
[bf4cc543fcb32dbc] part of check-in [62db5fa3b6] Refactor wal.c to use the VFS. This check-in compiles and links and works ok as long as you leave WAL turned off, but WAL does not work. (user: drh branch: wal)
16:40
[f0e002e74108c8a3] part of check-in [706611283e] Untested implementation of the shared-memory dead-man-switch. (user: drh branch: wal)
15:17
[340c503705cdb447] part of check-in [1bde41cf08] Progress towards a VFS that will support WAL. Locking code is in place but is untested. Still no support for the DMS. (user: drh branch: wal)
2010-04-28
17:49
[c8b7d1e0f4315e08] part of check-in [13d2d5a66e] Merge two "wal" leaves. (user: dan branch: wal)
17:21
[c8b7d1e0f4315e08] part of check-in [348409de26] Changes to the interface design for the xShmLock method of the VFS. (user: drh branch: wal)
2010-04-27
18:49
[332ff9185aedcbd2] part of check-in [8c2d43babd] Merge two "wal" leaves. (user: dan branch: wal)
11:49
[332ff9185aedcbd2] part of check-in [ed715b47c5] Add the xShmRelease() method to the VFS. The os_unix.c implementation of the shared memory logic is still non-functional. (user: drh branch: wal)
2010-04-26
00:04
[1acc854259b045cf] part of check-in [f5e615c28c] 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. (user: drh branch: wal)
2010-04-12
19:00
[5bf0015cebe2f216] part of check-in [409d61baeb] Import experimental write-ahead-logging code. (user: dan branch: wal)
2010-03-05
13:53
[148d2f625db37272] part of check-in [27413fc8dd] Adjustments to #ifdefs so that the #include of <sys/mount.h> is not included twice, because that confuses the amalgamation builder. (user: drh branch: trunk)
13:41
[d4832e89360c7d1b] part of check-in [0cc981f1cc] Adjust some #ifdefs so that the build works on Mac both with and without SQLITE_ENABLE_LOCKING_STYLE. (user: drh branch: trunk)
2010-03-04
22:36
[0cdbfd79dc896ef6] part of check-in [1a0fa8d19d] Second thoughts: Let Tiger users set SQLITE_ENABLE_LOCKING_STYLE=0. Was: Change SQLITE_ENABLE_LOCKING_STYLE to default off, even on Macs, since older Macs (Tiger) cannot compile the latest proxy locking sources. (user: drh branch: mistake)
16:12
[284398041b13abf5] part of check-in [fc2c63ac78] Suppress harmless compiler warnings. (user: drh branch: trunk)
2010-03-03
16:54
[97c2d5dd1015c35a] part of check-in [88b466bae4] Merged trunk to lemon-update-2010 branch. (user: icculus branch: lemon-update-2010)
2010-02-26
13:07
[97c2d5dd1015c35a] part of check-in [8f29490da6] Avoid incorrect compiler warnings by doing a couple of needless variable initializations. (user: drh branch: trunk)
2010-02-25
02:32
[bf7f66b06d9f507b] part of check-in [46f406b202] Merge in all of the logging enhancements. This is a cherrypick merge of the following check-ins: [103321e37a], [a8076aede3], [6d910245ad], [7c4cca6d1a], [edea3bb740], [1a6d4bb130], [a8c984c1d6], [69a493182f], and [1168763d2c]. (user: drh branch: branch-3.6.22)
2010-02-23
20:11
[79f2b9aec313d3e1] part of check-in [edea3bb740] Continuing improvements to error reporting and the sqlite3_log() routine. (user: drh branch: trunk)
17:36
[13b5d1ffc04cc420] part of check-in [7c4cca6d1a] Remove the obsolete sqlite3SafetyOn() mechanism. Add additional logging output for CORRUPT, and CANTOPEN errors. (user: drh branch: trunk)
2010-02-17
19:34
[0af0a55e2dd55bc4] part of check-in [4b72e39bd0] Merge latest changes from the trunk into the apple-osx branch. (user: drh branch: apple-osx)
2010-02-16
12:18
[0af0a55e2dd55bc4] part of check-in [7a1933097f] Change a C++ style comment in os_unix.c to use normal C style commenting. (user: dan branch: trunk)
2010-02-05
18:00
[85479b27b995c292] part of check-in [f64b81f13d] Make sure file descriptors are closed before unlinking in VxWorks. (user: drh branch: trunk)
2010-01-20
13:20
[0b97269557d5a148] part of check-in [fa0f6c140e] Align the os_unix.c source file with the version found on trunk. (user: drh branch: apple-osx)
13:07
[0b97269557d5a148] part of check-in [571594bfbe] Move the Apple OS-X VFS changes into the trunk. (user: drh branch: trunk)
2010-01-06
13:12
[b0f41dcee44f9388] part of check-in [541e2b488e] Update the OS-X branch to include all trunk changes through version 3.6.22. (user: drh branch: apple-osx)
2010-01-05
00:14
[b24510792108ffee] part of check-in [e02f255602] Fix a case in os_unix.c where two structures that might have uninitialized padding bytes are compared using memcmp(). (user: drh branch: trunk)
2009-12-07
23:53
[afabe88b8a208bd8] part of check-in [ad08794d72] Merge all changes associated with the version 3.6.21 release into the OS-X branch. (user: drh branch: apple-osx)
2009-12-04
14:25
[fe85acfeded5cc13] part of check-in [082b8da005] In the OSTRACE debugging macros in os_unix.c, identify the VFS currently in use. (user: drh branch: trunk)
2009-11-09
19:30
[6b74fa8300c2db55] part of check-in [62f15c0aea] Fix for lock structure sharing with AFP-style locking (user: adam branch: apple-osx)
2009-11-06
04:13
[bdd6ca0932dcb51c] part of check-in [ddb71cd9ed] Fix the backup API so that a backup from an empty database to a non-empty database works. Ticket [0bf974bdf9]. The only changes are in assert() statements. (user: drh branch: trunk)
2009-11-05
18:31
[1d06b265ff2de6ed] part of check-in [9552de8fb5] Fix an undefined variable on non-Mac builds. (user: drh branch: apple-osx)
2009-11-04
18:51
[a4b4ea928ce31ed3] part of check-in [590d4ac1ee] Fix documentation typos. (user: drh branch: shunning-error)
2009-11-03
22:34
[cb7a1418fb41307a] part of check-in [941a01eb86] Customizations for OSX contributed by Apple. (user: adam branch: apple-osx)
2009-11-01
19:26
[a4b4ea928ce31ed3] part of check-in [cfa2db0ff7] Fix compiler warnings. Better comments on some variables associated with LIKE/GLOB processing in the query planner. (user: drh branch: trunk)
2009-10-07
23:42
[5686c0e4f0aa2c93] part of check-in [56f609da4b] Use memcpy() rather than structure assignment so that memcmp() can later be used for comparison. Ticket [8550ecca70] (user: drh branch: trunk)
2009-09-10
19:20
[5369272992c14dd1] part of check-in [e9d064bd93] Make sure the threadsOverrideEachOthersLocks variable is only referenced by linux systems on a threadsafe compile. (user: drh branch: trunk)
2009-09-09
18:46
[4e5ce6099b6f9f71] part of check-in [ef99eb57c5] Trying to open a transaction in one thread and close it in another is a misuse with LinuxThreads. Doing so may cause memory and file-descriptors to be leaked. Update an assert() and some test cases to account for this. (user: dan branch: trunk)
16:10
[0b94e58153de8e4c] part of check-in [f0c72a53c5] Suppress some harmless compiler warnings. (user: drh branch: trunk)
2009-09-07
17:41
[52b10971479bb77c] part of check-in [ecbe0832be] Merge [/src/vinfo/1958db4493461b3a54217a6a45f2730287107860|1958db4493] and [/src/vinfo/26cd015c0ee1c18dd37f11b47ce35cfa320b3514|26cd015c0e]. (user: dan branch: trunk)
2009-09-03
16:23
[52b10971479bb77c] part of check-in [2aeab80e5b] Add the "unix-wfl" VFS that does whole-file locking in order to help NFS do better cache coherency. (user: drh branch: trunk)
2009-08-31
05:39
[f14ff07aec3c3c07] part of check-in [6e09e28751] Merge with main branch. (user: dan branch: trunk)
2009-08-27
17:56
[f14ff07aec3c3c07] part of check-in [609c5341be] Patch to the named semaphore locking mechanism used by VxWorks. (user: drh branch: trunk)
2009-08-25
05:57
[96e2e409df8851a3] part of check-in [2a5c9e1dbf] Fix a bad interaction between "proxy-locking" and [http://www.sqlite.org/src/vdiff/aa6acfa8caa2ef59b4c16dfe42c4b5644da96905|aa6acfa8ca]. (user: dan branch: trunk)
2009-08-24
18:57
[5fc8443b16d64faf] part of check-in [82d1934a42] Fix some errors in [http://www.sqlite.org/src/vdiff/aa6acfa8caa2ef59b4c16dfe42c4b5644da96905|aa6acfa8ca]. (user: dan branch: trunk)
2009-08-22
11:39
[f151f27d353bf424] part of check-in [aa6acfa8ca] Fix a problem in os_unix.c where a malloc failure could lead to a leaked file descriptor. (user: dan branch: trunk)
2009-08-21
17:18
[1546de71b888c9a2] part of check-in [9b4d9ab62d] When a database file is opened, try to find an unused file descriptor to reuse. This change affects unix (and other systems that use os_unix.c) only. Fix for cvstrac ticket [http://www.sqlite.org/cvstrac/tktview?tn=4018|#4018]. (user: dan branch: trunk)
08:29
[85f6ed28690a3c45] part of check-in [11a669b653] Add assert() statements to os_unix.c to check that the mutex is held when it should be. (user: dan branch: trunk)
2009-08-19
14:42
[6895098a9e7bd563] part of check-in [6c8a0e2b37] Merge with 709e16145e. (user: dan branch: trunk)
2009-08-17
15:52
[6895098a9e7bd563] part of check-in [67ad21abf8] Move error simulation code from the sqlite3_os_init() functions into a wrapper. (user: dan branch: trunk)
15:16
[aea2a5c1c07c4776] part of check-in [904a371c6c] Add tests to check that sqlite recovers from an error in sqlite3_initialize() correctly. (user: dan branch: trunk)
2009-07-03
12:57
[cdb2a08b9ce4aa13] part of check-in [304c5110ad] Test the result of pthread_create() and do not call pthread_join() if the thread creation failed. Ticket #3933. (CVS 6839) (user: drh branch: trunk)
2009-06-17
13:09
[b64129c296e480c2] part of check-in [59ec937ce2] Suppress some -Wextra compiler warnings from GCC. (CVS 6774) (user: drh branch: trunk)
2009-06-15
20:45
[f00dbdc09d67b7e4] part of check-in [1591b8322b] Changes to allow a clean compile with no floating-point instructions generated when SQLITE_OMIT_FLOATING_POINT is used. (CVS 6763) (user: drh branch: trunk)
2009-05-08
11:34
[e55d977c516ed880] part of check-in [254ca3273c] Fix a warning in the osx-specific part of os_unix.c. Ticket #3847. (CVS 6620) (user: danielk1977 branch: trunk)
2009-04-07
05:35
[9ad9f45049a3c9eb] part of check-in [efd0682b7e] Compile fixes and improvements for vxwork: fixed deadlock in semClose, detect if fcntl is usable, fall back to named semaphores if not. (CVS 6460) (user: chw branch: trunk)
00:35
[e5eef59cfb0f646b] part of check-in [47aa7eb0e0] It is OK for a unix file descriptor to be zero. It just can't be negative. Adjust an assert accordingly. Ticket #3781. (CVS 6457) (user: drh branch: trunk)
2009-03-30
07:39
[5d667f24615043c9] part of check-in [50fbcdea04] Another change related to (6401) and (6402): When an attempt to unlock a file fails in os_unix.c, close all files held open waiting for the unlock event anyway. This prevents a file-descriptor leak when testing IO errors. (CVS 6406) (user: danielk1977 branch: trunk)
2009-03-28
23:47
[b62e660f82f4aa37] part of check-in [2e7d3cc9f0] Previous commit ((6401)) did not quite fix the problem. This should work better. (CVS 6402) (user: drh branch: trunk)
23:23
[344fb50f9a4b28bd] part of check-in [fb35cff855] In the unix-backend, when simulating an I/O error on an unlock operation, still mark the connection as unlocked to avoid a future assert(). (CVS 6401) (user: drh branch: trunk)
2009-03-25
01:06
[7bf3ebde13154a97] part of check-in [cbf2ca4cc4] Use fdatasync() only on linux, unless -Dfdatasync=fdatasync is set at compilation time. (CVS 6383) (user: drh branch: trunk)
2009-03-21
14:56
[a20fe61c02511745] part of check-in [a331562727] Rig the unix backend to use fdatasync() by default, without having to set the HAVE_FDATASYNC macro. Systems that do not support fdatasync() can be compiled using -Dfdatasync=fsync. (CVS 6368) (user: drh branch: trunk)
14:41
[8f6ffa95c8dc79b9] part of check-in [0d6b11bcf6] On unix, always use fdatasync() instead of fsync() when available, even if the file size changes, since (we are told) fdatasync() will automatically flush the inode when the file size changes. (CVS 6367) (user: drh branch: trunk)
2009-03-01
22:29
[52352674c1968802] part of check-in [a2373e5409] Suppress some compiler warnings (where possible). Ticket #3696. (CVS 6331) (user: drh branch: trunk)
2009-02-09
17:34
[4e916cafbf5ec016] part of check-in [93e792ffa8] Add assert() statements to os_unix.c which fire if there is a read or write for the locking region of a database file. (CVS 6270) (user: drh branch: trunk)
05:32
[9f89f98c0782b89a] part of check-in [8227af3463] Ignore the return structure of and F_GETLK fcntl() call on djgpp. Fix for #3642. (CVS 6268) (user: danielk1977 branch: trunk)
2009-02-03
15:27
[f0fce3042011d462] part of check-in [b054b56917] Check at the write() call to work around the msdos bug in OSX actually succeeds and throw an error if it does not. #ifdef out the work-around for all platforms other than OSX. Ticket #3633. (CVS 6237) (user: drh branch: trunk)
2009-01-16
23:47
[c74255cc1fcddc38] part of check-in [191c399fc6] Remove a harmless UMR that occurs inside some debugging code. (CVS 6190) (user: drh branch: trunk)
2009-01-15
04:30
[c0ebce13fac2db79] part of check-in [fcb6c67712] Avoid using ENOTSUP on systems that do not define that symbol. Ticket #3512. (CVS 6182) (user: drh branch: trunk)
2009-01-14
23:03
[5d176993d0f41373] part of check-in [b676ccfd90] Add asserts to detect if a transaction commits without first incrementing the transaction counter. These asserts are intended to prevent future problems similar to ticket #3584. (CVS 6179) (user: drh branch: trunk)
2009-01-09
21:41
[7825c61785977133] part of check-in [64c56226b9] Coverage improvements in pragma.c. Change the __DARWIN__ macro to __APPLE__, which is available by default on Leopard. (CVS 6153) (user: drh branch: trunk)
2009-01-08
14:36
[a1f05f59c24e6118] part of check-in [81014334ad] Allow database files to be created in the root directory on unix. Ticket #3570. (CVS 6141) (user: drh branch: trunk)
2008-12-22
03:37
[e6eacc7ec735ded6] part of check-in [d9595b9618] Fix a variable type to prevent a warning in the proxy-locking code. (CVS 6051) (user: danielk1977 branch: trunk)
2008-12-11
02:56
[96b4a6e87335ba94] part of check-in [561d5de16e] Fix the TCL test harness so that it compiles and runs on OSX with SQLITE_ENABLE_LOCKING_STYLE. (CVS 6017) (user: drh branch: trunk)
2008-12-10
19:26
[970e4a98a2d026cb] part of check-in [c872d55493] 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) (user: drh branch: trunk)
2008-12-08
18:19
[cec838fe55eaa53f] part of check-in [73c7302c5f] The amalgamation now compiles cleanly on GCC with options -pedantic-errors -Wno-long-long. (CVS 5991) (user: drh branch: trunk)
2008-12-04
12:34
[e625d228800b367b] part of check-in [4697249fcc] Make sure dot-lock is fully enabled when SQLITE_ENABLE_LOCKING_STYLE is disabled. Fix compiler warnings when SQLITE_ENABLE_LOCKING_STYLE is disabled. (CVS 5976) (user: drh branch: trunk)
2008-12-03
22:48
[bc3e50bcc7d97c0e] part of check-in [24235300b3] Fix a missing forward declaration that is needed when SQLITE_PREFER_PROXY_LOCKING is defined. (CVS 5972) (user: drh branch: trunk)
22:32
[540aebcdfbaa2e42] part of check-in [31f6090e22] Reorganize the proxy-locking method in os_unix.c. Additional cleanup. (CVS 5971) (user: drh branch: trunk)
21:26
[199a3f3af7e0ba45] part of check-in [3efedac6aa] Make os_unix compile with SQLITE_ENABLE_PROXY_LOCKING (CVS 5970) (user: aswift branch: trunk)
19:34
[0c5fa756d8f8d0a9] part of check-in [215d36ea89] Continue with the cleanup of os_unix.c. (CVS 5969) (user: drh branch: trunk)
2008-11-29
02:20
[a5c0e3fe58b85c81] part of check-in [c13df0311e] Continuing to refactor os_unix.c. This is an incremental check-in. (CVS 5967) (user: drh branch: trunk)
00:56
[9c5269d610ec2d43] part of check-in [1017d2fb19] Continuing work on the os_unix.c refactoring. Removed all of the LOCKING_STYLE_* constants and instead pass around pointers to the underlying sqlite3_io_method objects. (CVS 5966) (user: drh branch: trunk)
2008-11-28
15:37
[26f4b3dde5bac6ba] part of check-in [7825cd63e5] First step in refactoring os_unix.c. This is work in progress. The code compiles and runs on Linux and MacOSX (as long as SQLITE_ENABLE_LOCKING_STYLE is turned off), but there are a few test failures. (CVS 5965) (user: drh branch: trunk)
2008-11-25
12:07
[add9937ac646b0f5] part of check-in [622cb59791] Move the definition of function transferOwnership() in os_unix.c to below the static functions it calls. (CVS 5954) (user: danielk1977 branch: trunk)
2008-11-21
22:21
[d6218ae6a616f4ac] part of check-in [adb0aafaa6] Factor out and simplify the canonical pathname logic in the VxWorks OS interface. (CVS 5943) (user: drh branch: trunk)
20:32
[d3803e7c5f148782] part of check-in [30a0132a83] Work toward cleaning up and refactoring the os_unix.c VFS module. Change IS_VXWORKS to OS_VXWORKS. The VxWorks implementation can now be built and tested on Linux using -DOS_VXWORKS=1 -Dsem_t=int -DPATH_MAX=512 -DNO_GETTOD=1. (CVS 5942) (user: drh branch: trunk)
00:24
[28cc4da7886c265c] part of check-in [6f910b7036] Fixes to the proxy locking so that os_unix.c compiles on linux with proxy locking omitted. (CVS 5935) (user: drh branch: trunk)
00:10
[bdb0b66407141b7c] part of check-in [b9bc36d3d5] Added support for proxy file locking style Added pragma support for controlling proxy file locking Added file control access to last errno and proxy locking Added support for TMPDIR environment variable Extended unit tests to cover new proxy locking pragmas and file control features (CVS 5934) (user: aswift branch: trunk)
2008-11-19
16:52
[03c76b5269361adc] part of check-in [d1abe8a1c9] Fix some compiler warnings that show up when building the amalgamation only. (CVS 5927) (user: danielk1977 branch: trunk)
14:35
[975cdd3e1bc1de82] part of check-in [70b2f6839c] Fix a few more compiler warnings. (CVS 5926) (user: danielk1977 branch: trunk)
13:52
[88cfaa018b62a708] part of check-in [92c91a6cd7] In os_unix.c, use "IS_VXWORKS" instead of "defined(__RTP__) || defined(_WRS_KERNEL)". Purely because it's easier on the eyes. (CVS 5925) (user: danielk1977 branch: trunk)
11:35
[d8555013e65f0e7b] part of check-in [2f5aaad90b] Eliminate some of the "unused parameter" warnings in os_unix.c. (CVS 5923) (user: danielk1977 branch: trunk)
09:05
[a5f8a41b471196b5] part of check-in [88134322c3] Changes to avoid "unused parameter" compiler warnings. (CVS 5921) (user: danielk1977 branch: trunk)
2008-11-17
19:18
[16b0981836576ad7] part of check-in [8009220c36] Modifications to avoid unsigned/signed comparisons in various files. (CVS 5914) (user: danielk1977 branch: trunk)
08:05
[a25bea30c5beb2e1] part of check-in [f45a149363] Added support for vxworks >= 6.4; RTP mode tested, kernel mode untested. (CVS 5910) (user: chw branch: trunk)
2008-11-11
18:34
[af390f03ebe339e6] part of check-in [8ecae0943b] Change the way threadsOverrideEachOthersLocks() works to avoid trying to write-lock a (potentially) read-only files. Also, assume that on non-linux systems threads do override each others locks. Ticket #3472. (CVS 5883) (user: danielk1977 branch: trunk)
2008-11-07
00:06
[d17f694eda9d5836] part of check-in [fb311d6f40] Add documentation to make it clear that short reads from xRead in the VFS must be zero-filled. (CVS 5867) (user: drh branch: trunk)
2008-10-16
13:27
[5e3b3c9a54546249] part of check-in [8065a92f70] Fix an error in (5826). (CVS 5828) (user: danielk1977 branch: trunk)
2008-10-15
16:02
[85d7e98eb2a81b9a] part of check-in [8ef141644e] Do not open and sync the directory in unixDelete() if the SQLITE_DISABLE_DIRSYNC option is defined. (CVS 5826) (user: danielk1977 branch: trunk)
2008-10-14
17:58
[48527028ce548efb] part of check-in [b7687e2f2d] Fix the xRandomness() method on the unix VFS to return the number of bytes of randomness obtained. (CVS 5821) (user: drh branch: trunk)
2008-09-24
09:12
[f33b69d8a85372b2] part of check-in [0fb98c3535] Fix some function declarations (change "int foo()" to "int foo(void)"). Ticket #3399. (CVS 5740) (user: danielk1977 branch: trunk)
2008-09-23
10:23
[ee778087d7b73746] part of check-in [bae1d5b169] Enable the LOCKING_STYLE extensions by default on a Mac. Leave them disabled on all other posix platforms. (CVS 5737) (user: drh branch: trunk)
2008-09-22
11:46
[badd226d71460f0b] part of check-in [7bd2da93c6] Add instrumentation to os_unix.c to test that a return value of SQLITE_FULL from an xSync() callback is handled correctly. (CVS 5730) (user: danielk1977 branch: trunk)
2008-09-15
04:20
[8f4def6a92681735] part of check-in [c32cb106c5] Check if error code ENOTSUP is supported before using it. Ticket #3375. (CVS 5697) (user: danielk1977 branch: trunk)
2008-09-04
17:17
[075c3e474d202031] part of check-in [85c2a58901] Add support for the SQLITE_THREADSAFE=2 and SQLITE_DEFAULT_MEMSTATUS compilation options. (CVS 5676) (user: danielk1977 branch: trunk)
06:22
[e99f82f1f777cd60] part of check-in [6e8fb64639] If SQLITE_ENABLE_LOCKING_STYLE is defined, have the os_unix.c module offer the following extra VFS implementations for explicitly selecting a locking-style: "unix-none", "unix-afp", "unix-posix", "unix-flock" and "unix-dotfile". (CVS 5674) (user: danielk1977 branch: trunk)
2008-08-22
18:41
[4665cef7639dd937] part of check-in [f8a70501c2] quieting compiler warning about pointer/int conversion size mismatch (CVS 5602) (user: aswift branch: trunk)
00:47
[f1be99705e4542f0] part of check-in [2416708208] Fix os_unix.c so that it will compile on Linux again. (CVS 5588) (user: drh branch: trunk)
00:22
[9fddf8735f77fec2] part of check-in [c1af14e2b6] Added SQLITE_IOERR_LOCK extended error code and support for detecting and returning errors in the os_unix lock, unlock and check reserved lock variants, also added support for populating and returning system error codes so that they can be accessed via xGetLastError, unfortunately xGetLastError can't seem to access the unixFile structure where the lastErrno is recorded. (CVS 5586) (user: aswift branch: trunk)
2008-07-30
17:28
[fe0dbc35bcd3de49] part of check-in [a480a8845f] When opening a zero-size database on unix, write one byte into the file before interrogating the inode number. This works around issues with msdos filesystems mounted on OS-X. Ticket #3260. (CVS 5504) (user: drh branch: trunk)
15:27
[c778a6b7098f54ee] part of check-in [db4022db64] In the unix OS implementation, replace inode hash tables with linked lists. (CVS 5503) (user: drh branch: trunk)
2008-07-10
00:32
[1df6108efdb7957a] part of check-in [636cd72329] Remove unused code. Test coverage enhancements. Modify the algorithm used to select column names for VIEWs of joins so that the constructed column names omits the underlying table names. (CVS 5386) (user: drh branch: trunk)
2008-06-30
10:16
[3d19f0491e0b32e5] part of check-in [ba8819a6f3] Fix a malloc() failure related problem in os_unix.c. (CVS 5328) (user: danielk1977 branch: trunk)
2008-06-28
11:23
[715e702be9229d12] part of check-in [f70d552bcd] Rearrange some ENABLE_LOCKING_STYLE related code in os_unix.c. (CVS 5324) (user: danielk1977 branch: trunk)
2008-06-26
10:41
[8b5116abc14013f0] part of check-in [cdd4cf4ce2] 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) (user: danielk1977 branch: trunk)
2008-06-25
17:19
[800138f4b9e2c26c] part of check-in [8fa33b79d7] 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) (user: danielk1977 branch: trunk)
2008-06-18
17:09
[b8c07b0cd85c9909] part of check-in [5059644c4b] Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234) (user: danielk1977 branch: trunk)
2008-06-13
18:24
[dd4a7b19ec008697] part of check-in [a03c5af115] Progress toward implementation of sqlite3_config() and a rework of the mutex and memory allocation subsystems. This is an incremental check-in. (CVS 5218) (user: drh branch: trunk)
2008-06-06
15:49
[47936aee8265e482] part of check-in [b8f1da52c3] Add the xGetLastError() member function to the sqlite3_vfs structure. It is neither called nor implemented at this point. (CVS 5192) (user: danielk1977 branch: trunk)
11:11
[067a4d5a26a49cc1] part of check-in [5173b3e816] 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) (user: danielk1977 branch: trunk)
2008-06-05
11:39
[bea384cc48cc0363] part of check-in [4226ac54be] Modify the signatures of the sqlite3_vfs.xAccess and sqlite3_vfs.xCheckReservedLock functions. (CVS 5188) (user: danielk1977 branch: trunk)
2008-05-29
20:22
[a6b02934fdd4682d] part of check-in [9883b406ce] Consolidated inline assembly versions of "hwtime()" into hwtime.h. Provided MSVC version. Modified code for consistent use of hwtime(). Changed implementation to use sqlite_uint64 and sqlite_int64 instead of unsigned long long int and long long int for MSVC compiler support. (CVS 5178) (user: shane branch: trunk)
2008-05-16
04:51
[06dceb3230249d6e] part of check-in [81a8c70ed7] Add more version tags to files that lack them. Ticket #3120. (CVS 5137) (user: danielk1977 branch: trunk)
2008-05-05
16:56
[a810e2aefdaddacf] part of check-in [bdd89cd231] Better error messages when trying to open a large file using a version of SQLite that omits large file support. Tickets #3096 and #3094. (CVS 5085) (user: drh branch: trunk)
2008-04-30
08:56
[8cf512c4321c3114] part of check-in [fc0ca647bd] Fix test for buffer overrun in unixGettempname(). Fix for #3091. (CVS 5069) (user: danielk1977 branch: trunk)
2008-03-19
14:15
[fdec4e5ee5dd555a] part of check-in [15110ea027] 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) (user: drh branch: trunk)
2008-03-07
20:14
[4cdd17e768888b86] part of check-in [22bd537ee2] Another fix to the OsUnlock I/O error logic. (CVS 4839) (user: drh branch: trunk)
19:51
[04ff58d84ae02d4e] part of check-in [b4c1258edb] Correctly handle I/O errors that occur during OsUnlock(). Before this fix, an I/O error during OsUnlock() could lead to database corruption. That is not a serious problem, though, since errors during OsUnlock() are not possible on most systems. (CVS 4838) (user: drh branch: trunk)
15:34
[bf339cd689054c8e] part of check-in [40f55c09db] Cleanup the locking-style code in os_unix.c. (CVS 4837) (user: drh branch: trunk)
00:27
[b21695b8cc529f9a] part of check-in [6ebce3b798] Updates to the locking-style code in os_unix.c. Not yet working. (CVS 4834) (user: drh branch: trunk)
2008-01-16
17:46
[e4daef7628f690fa] part of check-in [5807921f5a] Get all tests running without memory leaks. (CVS 4714) (user: drh branch: trunk)
2007-12-13
21:54
[4e67737fec1d1c95] part of check-in [4e91a267fe] 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) (user: drh branch: trunk)
2007-12-06
13:26
[10641ed959b96091] part of check-in [f015a38771] Use the specified buffer length, not the maximum buffer length in unixFullPathname() and related functions. (CVS 4595) (user: drh branch: trunk)
2007-10-30
17:28
[db6755454c84004d] part of check-in [c249d5da72] Avoid leaking a file descriptor after a malloc failure on unix. (CVS 4518) (user: danielk1977 branch: trunk)
2007-10-23
15:59
[e556e86a2f027102] part of check-in [d7ed7cd077] Add comments to the code warning that _XOPEN_SOURCE might need to be defined manually if using USE_PREAD or USE_PREAD64. (CVS 4509) (user: drh branch: trunk)
2007-09-20
10:02
[308bd8ad6977f66f] part of check-in [27fe128833] Fixes for uninitialized variables. Tickets #2658 and #2659. (CVS 4437) (user: drh branch: trunk)
08:38
[89283ae67b4830c5] part of check-in [91831ff292] The code is correct as it contains an assert(3) in the "default" switch case, but GCC 4.3 is not able to detect this and instead complains with "warning: 'amode' may be used uninitialized in this function". Hence, although the assert(3) already protects the code here, get rid of this compiler warning by doing a simple initialization of the "amode" variable. (CVS 4436) (user: rse branch: trunk)
2007-09-17
07:02
[8d4f5e952adcbd04] part of check-in [8b29f5fbfc] 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) (user: danielk1977 branch: trunk)
06:06
[2c6a5507cd2c6522] part of check-in [ad3687b16e] Change the names of xGetTempName and sqlite3OsGetTempName to xGetTempname. To be consistent with xFullPathname and sqlite3OsFullPathname. (CVS 4432) (user: danielk1977 branch: trunk)
2007-09-05
13:56
[522486e24d1a743e] part of check-in [1786e9c881] Remove the unixFile.isOpen variable (no longer in use). (CVS 4401) (user: danielk1977 branch: trunk)
2007-09-03
17:42
[99bf97b31b29dd06] part of check-in [ed15db4610] Unix OS interface returns SQLITE_CANTOPEN following a getcwd() failure. (CVS 4384) (user: drh branch: trunk)
15:19
[75521336c950555f] part of check-in [020a2b10d4] Honor the SQLITE_OPEN_ flags passed into sqlite3_open_v2(). Some test cases added but more are needed. Ticket #2616. (CVS 4376) (user: drh branch: trunk)
2007-09-01
16:16
[3b1b9c6d1b09b9cd] part of check-in [fb27692ab1] Remove the syncOk argument to pager_recycle. Now that sqlite3_memory_release uses a global lru list of page, it is no longer required. (CVS 4364) (user: danielk1977 branch: trunk)
06:51
[9043705193a53f9b] part of check-in [5f48fb95c2] Fix for registration of non-default vfs objects. (CVS 4360) (user: danielk1977 branch: trunk)
2007-08-31
18:34
[4d36cd037540a9c2] part of check-in [306586c412] 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) (user: drh branch: trunk)
16:11
[5c8fd11fa182b66f] part of check-in [d3ab3e3911] Initial implementation of the sqlite3_file_control() interface. Compiles and passes all historical tests but the new method is itself untested. (CVS 4353) (user: drh branch: trunk)
2007-08-30
16:13
[84dcfc01006ae0b4] part of check-in [e30546504c] Prevent sqlite from opening directories as databases under unix. Fix for test cae in misc7.test. (CVS 4342) (user: danielk1977 branch: trunk)
14:49
[0f3997dc16c4e83e] part of check-in [5a22d8695b] Remove the SYNC_BARRIER flag. (CVS 4337) (user: danielk1977 branch: trunk)
2007-08-27
23:26
[89bf24aa2475048a] part of check-in [dc80b2e1f4] Work around problem with forward declarations of constants in MSVC in the amalgamation. Ticket #2574. (CVS 4304) (user: drh branch: trunk)
21:10
[7a340c712efa1bde] part of check-in [0791f917bb] Added the 34to35.html document describing the changes between 3.4.2 and 3.5.0. Minor interface cleanups. (CVS 4302) (user: drh branch: trunk)
2007-08-24
16:08
[27b1fad58587bc94] part of check-in [b8451da378] 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) (user: drh branch: trunk)
03:51
[c45b20f868fab117] part of check-in [3a68fcddfa] The win32 driver compiles but does not yet work well. Many bugs fixed. (CVS 4282) (user: drh branch: trunk)
2007-08-23
02:47
[3ff776e03535b64d] part of check-in [21f6b31097] Improvements to memory leak detection. The --backtrace=NNN option is now recognized by tester.tcl. Memory leak summaries are automatically written to the file ./memleak.txt and each leak is tagged with the test in which it occurred. The quick.test script runs on Linux with no errors and no leaks. (CVS 4273) (user: drh branch: trunk)
2007-08-22
20:18
[3e1ce27aa8364f92] part of check-in [db818430e9] The malloc.test script now passes all tests with no errors. (CVS 4271) (user: drh branch: trunk)
2007-08-21
13:51
[7aad42b1ee70d680] part of check-in [6225cd461c] Remove the obsolete static mutexes. Use only the lastest static mutex code. (CVS 4259) (user: drh branch: trunk)
10:44
[55e4d3c441e6b9e2] part of check-in [fbbd5bda54] Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) (user: drh branch: trunk)
2007-08-20
22:48
[41a737d14d00b93f] part of check-in [1315bd8e12] Work toward multithreading support. Currently crashes quickly on a test. (CVS 4253) (user: drh branch: trunk)
16:07
[10fb60a8d9174dcb] part of check-in [917790413c] Call sqlite3OsSleep() with an argument in microseconds, not milliseconds. (CVS 4248) (user: danielk1977 branch: trunk)
14:23
[7ff8ad09e8e8b6b3] part of check-in [40f66ada81] Changes to crash-test io backend (test6.c) so that it works with the sqlite3_vfs interface. (CVS 4247) (user: danielk1977 branch: trunk)
06:44
[dc726e5fa18f114c] part of check-in [41f2175b1e] Update the locking-style code in os_unix.c. The updates are as yet untested. (CVS 4244) (user: danielk1977 branch: trunk)
05:36
[bf192a86b9aa5ca3] part of check-in [cb24cda179] Fix full_fsync() related functionality broken as part of the migration to sqlite3_vfs. (CVS 4243) (user: danielk1977 branch: trunk)
2007-08-18
10:59
[07c91dfdf6ae2001] part of check-in [a258c4ec24] Further progress on migration to sqlite3_vfs. (CVS 4242) (user: danielk1977 branch: trunk)
2007-08-17
16:50
[4b27202b4bfc1548] part of check-in [08a0f48028] Remove some old OsFile and IoMethod related code. Add the sqlite3OsLockState function. (CVS 4241) (user: danielk1977 branch: trunk)
15:53
[bf86c474a5febb67] part of check-in [af3e3c7acd] Begin migration to using sqlite3_vfs interface. (CVS 4240) (user: danielk1977 branch: trunk)
2007-08-16
13:01
[e685354a7f21cb47] part of check-in [3d60c14a32] Remove the thread specific data subsystem from the unix build. Remove legacy cruft from sqliteInt.h. Use the new mutex subsystem in the PRNG. (CVS 4237) (user: drh branch: trunk)
10:09
[7c7dcb7dcc93fcec] part of check-in [77b1671351] More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233) (user: danielk1977 branch: trunk)
04:30
[67601899b573c8a7] part of check-in [deb7ecd65f] Half-way through a major refactoring of the memory allocation. I have not even attempted to compile so I am certain there are countless errors. (CVS 4231) (user: drh branch: trunk)
2007-08-15
17:08
[05ad65c32b4937fd] part of check-in [af9503daf3] Modify the crash-recovery test code in test6.c for 3.5. Also change some other code to use the new sqlite3_io_methods interface. Lots of things are broken now. (CVS 4228) (user: danielk1977 branch: trunk)
2007-08-07
17:13
[9d2a421acc607262] part of check-in [7550dd1d59] Remove all tabs from source code files. Ticket #2556. (CVS 4198) (user: drh branch: trunk)
2007-06-29
12:04
[4099d05dc4b01997] part of check-in [f1e5fed8eb] Set FD_CLOEXEC on all open files under Unix. Ticket #2475. (CVS 4146) (user: drh branch: trunk)
2007-06-19
10:50
[113ae3557500a0a0] part of check-in [0b20a69609] Cast the 2nd parameter of ftruncate to off_t to work around bugs in some unix implementations. Ticket #2425. (CVS 4089) (user: drh branch: trunk)
2007-06-08
18:27
[f2ccf2e9a925fc67] part of check-in [8f5b789fea] Use C-sylte comments exclusively, never C++ comments. Ticket #2406. (CVS 4052) (user: drh branch: trunk)
2007-05-04
13:15
[cb1fb044b84870c7] part of check-in [ba4845b32b] 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) (user: drh branch: trunk)
2007-04-06
18:23
[426b4c03c304ad78] part of check-in [26b2e1aede] Additional coverage testing. (CVS 3823) (user: drh branch: trunk)
2007-04-02
18:06
[13c6f73a7b0c2c6c] part of check-in [96b678818c] Do not use the second parameter to gettimeofday() on unix. Pass it a NULL. (CVS 3804) (user: drh branch: trunk)
2007-04-01
23:49
[ccb003fb9fadc032] part of check-in [18aec1ddfb] Fix some warnings about unused and uninitialized variables. (CVS 3788) (user: drh branch: trunk)
18:46
[5e3cbef7efc5f848] part of check-in [ddfc3b2df0] Make unix builds threadsafe by default. (CVS 3787) (user: drh branch: trunk)
2007-03-30
11:29
[4291be23eec73d1e] part of check-in [23653f7aab] 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) (user: drh branch: trunk)
2007-03-29
20:19
[fe0c0175036a5fb4] part of check-in [8d0073c0e8] Assume any return code from fcntl() other than -1 is success. Formerly we only assumed that 0 was success. Ticket #2173. (CVS 3754) (user: drh branch: trunk)
18:19
[5f7ee6c930084bca] part of check-in [0fb9af1d6e] 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) (user: drh branch: trunk)
2007-03-27
16:19
[0d91b28d57c0885f] part of check-in [b24a6e7b02] 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) (user: danielk1977 branch: trunk)
2007-03-26
22:05
[1f32d15449caa02a] part of check-in [0b832e218e] Modify sources to that they can be combined into a single sqlite3.c source file. Eliminate all type-pruned pointer warnings. (CVS 3722) (user: drh branch: trunk)
2007-03-23
10:08
[4642f23ed0c1ae0f] part of check-in [0fd9983a98] Add a comment to the OsSectorSize() function. (CVS 3710) (user: danielk1977 branch: trunk)
2007-03-22
15:22
[f6c261661a4b88da] part of check-in [177cd92910] In os_unix.c, make a distinction between pread() and pread64(). Add a new compile-time macro USE_PREAD64 to select the latter. (CVS 3709) (user: drh branch: trunk)
2007-03-19
05:54
[33ee7c1483fbd4d6] part of check-in [5752d84d37] Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700) (user: danielk1977 branch: trunk)
2007-03-15
01:16
[a3b26ad8270aea89] part of check-in [5af61402f6] Enhanced temp-file security under unix. There are no known attacks against prior versions - this check-in is just an added precaution. (CVS 3687) (user: drh branch: trunk)
2007-02-27
02:01
[abdb0f7b8e3f078b] part of check-in [3ad96dbe09] Improvements to OS layer tracing on the unix backend. (CVS 3664) (user: drh branch: trunk)
2007-02-06
11:11
[2f7f7dbb95bbfa10] part of check-in [e4408dd1fd] Check the return value of lseek() in os_unix.c to make sure it really worked. (CVS 3628) (user: drh branch: trunk)
2007-01-31
23:37
[09d422370948fb50] part of check-in [f044c5f49f] Fixed incorrect typecast for flock structure ptr in fcntl() call in sqlite3TestLockingStyle() Restored previous fullfsync behavior, try fsync() if fcntl(fd, F_FULLFSYNC, 0) returns an error. (CVS 3621) (user: aswift branch: trunk)
2007-01-03
23:36
[9fbbd8ab0a6b3992] part of check-in [a593d5743e] Additional changes in the pager and os interface layers to fix problems that might be contributing to recently observed database corruption. (CVS 3549) (user: drh branch: trunk)
2006-12-21
01:29
[d4bc8cbe1c0dc330] part of check-in [a1bcc6de57] 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) (user: drh branch: trunk)
2006-11-11
01:31
[d3b6b66b79777c91] part of check-in [b9dd16ef3d] The uninitialized file descriptor from the unixFile structure is passed to sqlite3DetectLockingStyle in allocateUnixFile rather than the file descriptor passed in. This was causing the locking detection on NFS file systems to behave somewhat randomly and the result was locks were not respected and data loss could occur. (CVS 3508) (user: aswift branch: trunk)
2006-11-06
21:20
[f9a46b57af055b2c] part of check-in [6324ea811e] 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) (user: drh branch: trunk)
2006-10-11
17:19
[523b674d93e00173] part of check-in [aa0b96c3df] Bug fix: named local variable lockStyle as lockingStyle in SQLITE_ENABLE_LOCKING_STYLE block in allocateUnixFile (CVS 3473) (user: aswift branch: trunk)
2006-10-03
17:40
[a4fa8871c85e4daf] part of check-in [f4103dea5e] Add the OS-X locking style patches to os_unix.c. Disabled by default. (CVS 3459) (user: drh branch: trunk)
2006-09-15
07:28
[3ed7fd1639c052d1] part of check-in [ba579ddc43] Add support for extended result codes - additional result information carried in the higher bits of the integer return codes. This must be enabled using the sqlite3_extended_result_code() API. Only a few extra result codes are currently defined. (CVS 3422) (user: drh branch: trunk)
2006-09-14
13:47
[4a99fca111a7189b] part of check-in [86931854fc] Enhanced I/O error simulation. (CVS 3418) (user: drh branch: trunk)
2006-04-19
01:24
[17d91581a0ab478a] part of check-in [4f195aa1eb] Remove a superfluous call to access() in the unix driver. Error spotted by Coverity. (CVS 3175) (user: drh branch: trunk)
2006-03-23
22:42
[35ad4d81c90800f5] part of check-in [5a24f61981] Use the pread()/pwrite() interface on Posix if compiled with -DUSE_PREAD=1. Note that on Linux this is slower and does not work for large files. (CVS 3147) (user: drh branch: trunk)
2006-02-14
10:48
[757a7b726764367f] part of check-in [f4150c29df] Changes so that test_async.c works with memory management turned on. (CVS 3093) (user: danielk1977 branch: trunk)
2006-02-13
18:42
[365edd498b0fac09] part of check-in [111a426b3e] Disable the /./ and /../ collapser logic in sqlite3OsFullPathname under Unix. (CVS 3092) (user: drh branch: trunk)
17:03
[7604ea2bdb447c1f] part of check-in [42379c6230] Add in-process file locking to test_async.c. The unix implementation of sqlite3OsFullPathname() now attempts to remove /./ and /../ elements from the path. (CVS 3090) (user: drh branch: trunk)
2006-02-11
02:03
[378a89aaf15d83b9] part of check-in [c0e987bcfa] Fix typo in os_unix.c. (CVS 3082) (user: drh branch: trunk)
01:25
[88f3f422f4715b70] part of check-in [f2069d0bf3] Add support and documentation for the fullfsync pragma. Also include some other unrelated documentation updates. (CVS 3080) (user: drh branch: trunk)
2006-02-10
13:11
[bd42a51385691dc4] part of check-in [4b6f568884] More comments on the unix locking code. Ticket #1672. (CVS 3075) (user: drh branch: trunk)
04:33
[50e51ba8a78e4a26] part of check-in [a6c30be214] Fix deadlock problem in the unix mutex. Ticket #1672. (CVS 3071) (user: drh branch: trunk)
2006-02-09
23:05
[dfd3b03ab09a43d5] part of check-in [d54d3b82c4] Ignore errors when when calling fsync() on a directory. Ticket #1657. (CVS 3068) (user: drh branch: trunk)
2006-01-31
23:03
[9de1887768d94a63] part of check-in [e83a19e8cb] Add the SQLITE_THREADS_OVERRIDE_LOCKS compile-time option that disables the run-time test to see if threads can override each others locks on unix. (CVS 3050) (user: drh branch: trunk)
2006-01-27
06:32
[73c5e722a661ed98] part of check-in [2e23231f0c] Fix a couple of (harmless) intel compiler warnings. (CVS 3034) (user: danielk1977 branch: trunk)
2006-01-23
16:24
[b25eca667f926d24] part of check-in [892e644d20] Fix uninitialized variable in os_unix.c. (CVS 3006) (user: drh branch: trunk)
2006-01-20
18:10
[38a55e51fb2c6f32] part of check-in [507653a98c] More compiler warnings fixed - or in some cases comments are added to explain that the compiler is wrong. (CVS 2984) (user: drh branch: trunk)
2006-01-18
18:22
[a242a9458b08f01f] part of check-in [c7b9d50d0a] Include the ThreadData structure in internal malloc() testing. Also fixes for revealed bugs. (CVS 2974) (user: danielk1977 branch: trunk)
17:25
[9d44bcfbc1e09973] part of check-in [e1ad9df1cf] 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) (user: drh branch: trunk)
16:51
[51fa18a26a390912] part of check-in [ac090f2ab3] Use a global variable protected by a mutex instead of thread-specific-data to record malloc() failures. (CVS 2972) (user: danielk1977 branch: trunk)
15:25
[fb7ae89d8672102b] part of check-in [e0b022e5b2] Change sqlite3MallocClearFailed() calls to sqlite3ApiExit(), a better API. (CVS 2970) (user: danielk1977 branch: trunk)
14:06
[7c085f8079223090] part of check-in [8830bbbac8] Convert the unix driver to use a recusive mutex. Similar changes to the windows driver are pending. (CVS 2968) (user: drh branch: trunk)
2006-01-17
16:10
[5f1ce55c02641142] part of check-in [9e2e40845d] Arrange for ThreadData to be automatically deallocated even if SQLITE_MEMDEBUG is defined. Fix for #1623. (CVS 2965) (user: danielk1977 branch: trunk)
2006-01-15
17:27
[7daa1720d46bbc31] part of check-in [2170e803ad] Clean up comments in os_unix.c. (CVS 2950) (user: drh branch: trunk)
02:43
[7457d51c00337bf1] part of check-in [ad8f12cad1] Closing a file from the wrong thread is harmless on most systems. (See ticket #1611) But on systems like RedHat9 with broken fcntl() locks, it leaks file descriptors. That is better than the alternative of prematurely breaking locks and causing database corruption. Nevertheless, it would be good if we could figure out a way to report errors when closing a file from the wrong thread. (CVS 2946) (user: drh branch: trunk)
02:30
[a1245b110150254e] part of check-in [f68e05cb2b] Add tests and fix bugs in the new cross-thread lock resolution code. When an unlock fails, do not leak file descriptors (ticket #1611). But we really ought to report SQLITE_MISUSE or some other error instead of just returning SQLITE_OK. (CVS 2945) (user: drh branch: trunk)
00:13
[e6ff5035b3d06fc6] part of check-in [03c422ecb5] Documentation updates. Fix to date.c. But most importantly: database connections are now allowed to change threads as long as they are not holding a lock. (CVS 2944) (user: drh branch: trunk)
2006-01-12
01:25
[bc35a237a10c2ecb] part of check-in [a8c74febec] Improve performance by about 10% by avoiding excess calls to get the thread-specific data. (CVS 2921) (user: drh branch: trunk)
2006-01-11
23:40
[d3ec9c61a1194d3e] part of check-in [fb518b0ce4] Testing of the automatic TSD deallocation logic. The sqlite3_thread_cleanup() API is documented. This should close ticket #1601. (CVS 2920) (user: drh branch: trunk)
21:41
[557a21c563496a1c] part of check-in [5d9c6aa964] 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) (user: drh branch: trunk)
2006-01-09
23:40
[8943febbedc79649] part of check-in [ec332d8822] Added database server example code (untested). Fixed serveral bugs including the autovacuum compile problem described by ticket #1593. (CVS 2897) (user: drh branch: trunk)
06:29
[c5d1a3fe88ad93b5] part of check-in [82b81f69c7] Rename DbSchema to "Schema" and SqliteTsd to "ThreadData". (CVS 2893) (user: danielk1977 branch: trunk)
2006-01-07
04:06
[ba70f76230c9cd95] part of check-in [77ac231c0e] Drop the mutex if the TSD key allocation fails. Ticket #1585. (CVS 2880) (user: drh branch: trunk)
2006-01-06
21:52
[05223f8440da9b3e] part of check-in [9d71b7deaf] Changes so that SQLITE_OMIT_PARSER and SQLITE_OMIT_DISKIO work. (CVS 2878) (user: drh branch: trunk)
14:46
[1ade7cd84c6f18dd] part of check-in [373b56f004] Fix an alignment problem in the sqlite3OsRandomSeed(). Ticket #1584. (CVS 2872) (user: drh branch: trunk)
14:32
[d220bf3721357581] part of check-in [2529c2e11f] 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) (user: drh branch: trunk)
00:36
[d99158f78926e9cc] part of check-in [3aa8befedf] Windows implementation of the thread-specific data interface. (CVS 2864) (user: drh branch: trunk)
2006-01-05
13:48
[d52d87a06ce62c7c] part of check-in [6fdbb8b771] Disable automatic invocation of sqlite3_release_memory() when a malloc() fails in those cases where the global mutex is held. (CVS 2860) (user: danielk1977 branch: trunk)
2006-01-02
20:00
[e4fbf1370e1a0387] part of check-in [a582b15959] Add the xInMutex method to the os-layer switch for testing whether or not mutexes are used correctly. (CVS 2851) (user: drh branch: trunk)
2005-12-15
10:50
[6394d2fa3a8bfbce] part of check-in [81a41f6637] Move malloc(), free(), realloc() and allocationSize() into the Os vtbl. (CVS 2819) (user: danielk1977 branch: trunk)
10:11
[df6e4972099aa526] part of check-in [c1ed79f594] Add the sqlite3_os_routine_set()/get() functions. (CVS 2818) (user: danielk1977 branch: trunk)
2005-12-09
20:02
[f11eba69eea2ae27] part of check-in [83a5915155] Clean up annoying (and pointless) compiler warnings about differing signedness. (CVS 2810) (user: drh branch: trunk)
14:25
[01648f7fa16cddb1] part of check-in [601c335463] Many small changes to ensure memory is not leaked after malloc() fails. (CVS 2808) (user: danielk1977 branch: trunk)
2005-12-06
12:52
[76189e4cb5e1ad45] part of check-in [e1606658f1] Some elements of the new malloc() failure handling. Not all cases work properly yet. Also, library is not threadsafe if malloc() fails right now. (CVS 2800) (user: danielk1977 branch: trunk)
2005-11-30
03:20
[1a7278bf7ad95f8c] part of check-in [bd8740d1ae] 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) (user: drh branch: trunk)
2005-11-29
19:56
[471d3642d0f41ecd] part of check-in [fa1d7ecfcc] The crash test works now, at least on unix. Untested on windows. But it never worked on windows before so if it still does not there is no big loss. I am still troubled by the current design of the OS overloading mechanism. Expect to see more changes. (CVS 2794) (user: drh branch: trunk)
03:13
[02b6a1c7e7a646da] part of check-in [058f317538] 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) (user: drh branch: trunk)
2005-11-26
03:43
[09f174975fe054ed] part of check-in [57a674fc71] Add an OS method for making copies of file descriptors. This fixes the crash tests. (CVS 2786) (user: drh branch: trunk)
00:25
[57f47fd917299155] part of check-in [1f69aec285] 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) (user: drh branch: trunk)
2005-11-25
10:38
[1c51efc1755b5413] part of check-in [f1298bb103] Add the compilation option SQLITE_DISABLE_DIRSYNC (CVS 2782) (user: danielk1977 branch: trunk)
09:01
[4847182df127270d] part of check-in [f882a516da] If SQLITE_DISABLE_LFS is defined, omit the bigfile tests. (CVS 2781) (user: danielk1977 branch: trunk)
08:47
[0a75314cdd881e13] part of check-in [84aae3b0ae] Check the return code of full_fsync() when used to sync a directory fd. (CVS 2780) (user: danielk1977 branch: trunk)
2005-11-24
23:14
[6878d8aeaa5ddd0c] part of check-in [84aa4d5800] The --enable-cross-thread-connect configuration option or the -DSQLITE_ALLOW_XTHREAD_CONNECT compile-time option permits database connections to be moved across threads. This will cause latch-ups and failures on some linux systems such as RedHat-9. Do not use these options if you want a portable build. (CVS 2778) (user: drh branch: trunk)
2005-10-20
07:28
[2af2d2cea9cc6282] part of check-in [e261b8b09a] Changes to prevent various compiler warnings. (CVS 2750) (user: drh branch: trunk)
2005-10-05
10:29
[23d6c04d08dbf712] part of check-in [115340d4e8] Another attempt to get fdatasync to be ignored on non-conforming posix systems. Now a system has to opt-in for fdatasync instead of opt-out. Ticket #1467. (CVS 2741) (user: drh branch: trunk)
2005-09-22
15:45
[407dd07818d13807] part of check-in [a9b341dccf] Optionally call fdatasync() instead of fsync() only if _POSIX_SYNCHRONIZED_IO is positive, which should only be the case on operating systems that actually support fdatasync(). (CVS 2732) (user: drh branch: trunk)
2005-09-09
01:32
[c86cf43b7ca9200e] part of check-in [461e3a0a27] Defend against disk I/O errors that happen during an sqlite3OsSeek(). (CVS 2679) (user: drh branch: trunk)
2005-09-08
12:38
[4838fab463f7753c] part of check-in [3c555a8749] While doing a transaction comment, use fdatasync() instead of fsync() in cases there the file size is unchanged. (CVS 2673) (user: drh branch: trunk)
2005-09-06
21:40
[cbdac6b207295ebc] part of check-in [b86bd70f30] Changes to reduce the amount of stack space required. (CVS 2661) (user: drh branch: trunk)
2005-08-29
23:00
[b4c4592589113db0] part of check-in [ed2ca0873f] Increase resolution of time-of-day on unix. Add an experimental sqlite3_profile() API. (CVS 2639) (user: drh branch: trunk)
2005-08-21
21:45
[7fae44e25c613734] part of check-in [545e702a23] Clean up possible locking problem in multithreaded applications that take a malloc failure. (CVS 2611) (user: drh branch: trunk)
2005-08-13
17:17
[535cd82c2fa0b8c4] part of check-in [7961ec0ccb] Give the same access permissions to journal files as is given to databases. (CVS 2590) (user: drh branch: trunk)
2005-06-15
17:47
[be8f327f9578a6bd] part of check-in [006dda3119] Changes to the unix OS layer aimed at finding and fixing tickets #1272 and #1285. (CVS 2517) (user: drh branch: trunk)
2005-06-07
22:22
[45540d7ee5095566] part of check-in [62a7353d4a] Changes to support linking without a parser and without a disk I/O interface. (CVS 2504) (user: drh branch: trunk)
2005-06-06
15:06
[443ca9d19945a08b] part of check-in [c1691004d6] Handle failures of getcwd() without segfaulting. Ticket #1274. (CVS 2490) (user: drh branch: trunk)
2005-05-17
11:25
[cb8a39901b8eb920] part of check-in [bfa55bec32] Provide a compile-time parameter to set the default file creation permissions under Unix. Ticket #1247. (CVS 2461) (user: drh branch: trunk)
2005-03-18
14:03
[fba0167576f09e24] part of check-in [f2f31919fd] Remove unused code from util.c. Enhance the trace output in os_unix.c. (CVS 2397) (user: drh branch: trunk)
2005-03-11
17:52
[d4823c6b3dd86e8c] part of check-in [3c57a4571f] Fix bugs discovered in 3.1.4. F_FULLFSYNC not F_FULLSYNC. And a bug in "make doc". Also typos in the documentation. (CVS 2379) (user: drh branch: trunk)
2005-03-10
14:11
[4fe368b6213f6734] part of check-in [58b8733b96] Disable F_FULLSYNC if the sychronous pragma is not set to FULL. (CVS 2372) (user: drh branch: trunk)
2005-02-03
00:29
[68d3d32937eee90f] part of check-in [4b399ae779] 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) (user: drh branch: trunk)
2005-01-21
17:53
[1f17ceff056c6493] part of check-in [aab8e7f8d8] Initialize the random number generator from /dev/urandom, if available. (CVS 2258) (user: drh branch: trunk)
2005-01-19
23:24
[77319e31f5284c57] part of check-in [d8b2a7e091] Continued refactoring of the name resolution logic and query optimizer. (CVS 2236) (user: drh branch: trunk)
2005-01-08
15:44
[08340c864822115b] part of check-in [0a90eaf398] Fixes to the temp_store_directory pragma. (CVS 2185) (user: drh branch: trunk)
2004-12-20
19:01
[f3835451ffa69072] part of check-in [772e22cbd6] Add PRAGMA 'temp_store_directory'. Added os_*.c function sqlite3OsIsDirWritable(), split pragma.c changeTempStorage() function into invalidateTempStorage(). (CVS 2171) (user: tpoindex branch: trunk)
2004-10-06
15:41
[5824b22ba41fe9d5] part of check-in [d790c84c5a] Convert many constants to have type "const". (CVS 2006) (user: drh branch: trunk)
2004-10-02
20:38
[5c1f362846afec42] part of check-in [c4697503d0] 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) (user: drh branch: trunk)
2004-10-01
14:38
[ca7891d1f8499455] part of check-in [44e56f0bba] Additional code to test the SQLITE_FULL return when the disk is full. (CVS 1994) (user: drh branch: trunk)
03:02
[8ee13cc8efb47dd3] part of check-in [11a37a74b1] Fully release exclusive locks in the Unlock primitive of Unix. Ticket #913. (CVS 1993) (user: drh branch: trunk)
02:00
[6a02c1bc1d6d7333] part of check-in [8972c004dc] Use type i64 instead of off_t for file offsets since off_t is giving portability problems. Ticket #924. (CVS 1992) (user: drh branch: trunk)
2004-08-29
23:42
[a5625eed7ab071d1] part of check-in [431f7436a6] Change the name of the global variable to sqlite3_temp_directory to avoid a naming conflict with version 2.8. (CVS 1918) (user: drh branch: trunk)
2004-08-14
17:10
[3239a45dbd2f5019] part of check-in [fce56ba6a3] Add the ability to specify a alternative temporary file directory using the "sqlite_temp_directory" global variable. (CVS 1885) (user: drh branch: trunk)
2004-08-04
14:44
[d084e3443211e155] part of check-in [add266ccc3] Separate P4 timing asm code out of the SQLITE_DEBUG macro so that SQLITE_DEBUG can be used on non-x86 machines and with compilers other than GCC. Ticket #838. (CVS 1876) (user: drh branch: trunk)
2004-07-20
14:06
[02a08065f90ca273] part of check-in [3c5aa850ee] Lemon collapses common destructors and reduce actions into a single case. (CVS 1837) (user: drh branch: trunk)
01:14
[ee607890d9062b51] part of check-in [4d77037be3] Report an error when attempting to open a directory as a database. Ticket #687. (CVS 1832) (user: drh branch: trunk)
2004-07-19
22:08
[4d5cb2f992235b6f] part of check-in [511ee63924] The OsFile under Unix records a pointer back to the pager. This is intended to be used for an externalized locking patch. (CVS 1821) (user: drh branch: trunk)
2004-07-17
21:44
[7dca8d07ac1d6e2b] part of check-in [1d30d0dd46] Use the F_FULLFSYNC fctrl if it is available. Record the name of files that are opened in the OsFile structure. (CVS 1799) (user: drh branch: trunk)
2004-06-29
11:08
[7df6ae05faa5b841] part of check-in [20db8124ac] Comment out unused routine in os_unix.c. (CVS 1759) (user: drh branch: trunk)
07:45
[8acbb7190cd6d91d] part of check-in [ffd3312b66] Bug-fixes to get the two threadtest C programs working again. (CVS 1756) (user: danielk1977 branch: trunk)
03:29
[2d787fd91a1b202e] part of check-in [a8417cb83e] Try to get threads working again on Linux. (CVS 1755) (user: drh branch: trunk)
2004-06-28
08:25
[295d0d4fe8a3f531] part of check-in [b0fcc99d22] Add a simple test case for inter-process locking. (CVS 1752) (user: danielk1977 branch: trunk)
2004-06-25
08:32
[bd62e20d3abfb96c] part of check-in [b68b4a4262] A few more comment changes. No code alterations. (CVS 1689) (user: danielk1977 branch: trunk)
07:21
[63608cd3dd4dd71a] part of check-in [084f3fffbd] Add a comment on the implementation of sqlite3OsLock(). No code changes. (CVS 1688) (user: danielk1977 branch: trunk)
2004-06-22
11:29
[39e73ed02fc992a6] part of check-in [d16b863849] Add os_test.c. Not activated yet. (CVS 1655) (user: danielk1977 branch: trunk)
2004-06-21
18:14
[3d3553d71cbf1430] part of check-in [afc398c2ca] Fix an uninitialized variable. The variable was harmless, but pedantic error checking in MSVC raised an exception on it. (CVS 1651) (user: drh branch: trunk)
2004-06-18
17:10
[47176c8e9b90ba75] part of check-in [2590fffcaa] Changes to allow libsqlite3.a and libsqlite.a to be both linked into the same program at the same time. (CVS 1621) (user: drh branch: trunk)
06:02
[add5af1cc4ff7262] part of check-in [960f55f3ec] Fix a couple of gcc warnings. (CVS 1615) (user: danielk1977 branch: trunk)
2004-06-17
19:04
[132864ff57457192] part of check-in [9fb29f7331] Documentation updates in preparation for the release of version 3.0.0. (CVS 1613) (user: drh branch: trunk)
2004-06-15
11:40
[8832c78dd95c115b] part of check-in [e21a181376] Minor bugfixes and test case adjustments for version 2 test cases to work with version 3. (CVS 1598) (user: danielk1977 branch: trunk)
00:29
[7eac2e8403008488] part of check-in [186c6f93e1] Add the sqlite3OsFileModTime() interface. But it is still unused. The change counter in page 1 is always incremented. (CVS 1594) (user: drh branch: trunk)
2004-06-14
09:35
[558006f887570435] part of check-in [cb3cbe00be] Ensure master journal file is deleted when a transaction is committed. (CVS 1586) (user: danielk1977 branch: trunk)
2004-06-12
02:17
[7ece785e36c4ecb5] part of check-in [dcad244f58] Bug fix in the unix locking code. (CVS 1574) (user: drh branch: trunk)
2004-06-09
17:37
[1d6f3d1a87d4aa0e] part of check-in [dc0763455b] Fixes to the file locking. 109 tests are now failing. (CVS 1548) (user: drh branch: trunk)
2004-06-08
00:47
[3747274f2712e95f] part of check-in [4dfdea7373] Do not require a RESERVED lock when transitioning from SHARED to EXCLUSIVE. (CVS 1542) (user: drh branch: trunk)
2004-06-07
16:27
[f78604d00c0769e4] part of check-in [0c2d169cf3] 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) (user: drh branch: trunk)
2004-06-04
10:38
[a4feb70b23fa5272] part of check-in [d2f69e5ef2] Defer the exclusive db lock until the pager cache is flushed to disk. 41 tests now fail. (CVS 1528) (user: danielk1977 branch: trunk)
2004-06-03
16:08
[3175540f8d1c820d] part of check-in [d57e5252c8] Untested updates to support atomic multi-file transactions (CVS 1526) (user: danielk1977 branch: trunk)
2004-06-02
06:30
[36682ee5e93c2fda] part of check-in [51348b82c4] Fix a segfault in sqlite3OsLock() (CVS 1525) (user: danielk1977 branch: trunk)
2004-06-01
14:09
[3dc2868d7ff47732] part of check-in [023d1760c1] Unix version of sqlite3OsLock(). (CVS 1520) (user: danielk1977 branch: trunk)
2004-05-22
21:30
[585665eccd31a9bb] part of check-in [18e690e405] Remove the OP_SetInsert opcode. (CVS 1443) (user: drh branch: trunk)
17:41
[e93a6858b4ab880c] part of check-in [5c61be1c47] Split up os.c into separate files, one for each platform. (CVS 1441) (user: drh branch: trunk)