aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAge
...
* Fix a couple uninitialized variables in the xShmLock method of the unix VFS.drh2010-04-30
| | | | | Improved debugging logic for xShmLock. FossilOrigin-Name: 69567c5fca9e30b7660e6f56350be929c3890d7e
* Separate the concepts of underlying storage size and mapped size in thedrh2010-04-30
| | | | | VFS shared-memory implementation. FossilOrigin-Name: 4cbe49f13fed288f94ff305bcfd99df907bf7baf
* Add a missing walIndexUnmap() call to the checkpoint code. Change a couple ↵dan2010-04-30
| | | | | of SQLITE_CANTOPEN constants to SQLITE_CANTOPEN_BKPT. FossilOrigin-Name: 1f9e8c5c27ae2c68bc01d8e2bb2c662be7b3f161
* Add missing mutexes to unixShmClose().dan2010-04-30
| | | FossilOrigin-Name: a4741cb54dd5e753d48fd05ac9dbe27ee4aa1ec0
* Fix a couple of assert() statements in os_unix.c and wal.c. Combine ↵dan2010-04-30
| | | | | sqlite3WalIsDirty() with sqlite3WalUndo(). FossilOrigin-Name: a8f958be804ee05c4137b3cd110db344713af5f2
* Add a missing walIndexUnmap() to sqlite3WalSnapshotOpen().dan2010-04-30
| | | FossilOrigin-Name: 72b95fde15dae56390dc8d4168fb2757447e289e
* The first 6 WAL tests now work. It's a start.drh2010-04-30
| | | FossilOrigin-Name: a92c1851da10acf51e7f6f086b8a23bd731940b3
* Refactor wal.c to use the VFS. This check-in compiles and links and worksdrh2010-04-29
| | | | | ok as long as you leave WAL turned off, but WAL does not work. FossilOrigin-Name: 62db5fa3b61be885b2d94e9b9ce3877b2c588350
* Untested implementation of the shared-memory dead-man-switch.drh2010-04-29
| | | FossilOrigin-Name: 706611283ea2575c2942543391026b36061cfc1c
* Progress towards a VFS that will support WAL. Locking code is in placedrh2010-04-29
| | | | | but is untested. Still no support for the DMS. FossilOrigin-Name: 1bde41cf081570ad257f927b641e752dff4ed014
* Changes to the interface design for the xShmLock method of the VFS.drh2010-04-28
| | | FossilOrigin-Name: 348409de26eafe12f5cb1236e8e167a4183d4051
* Add the xShmRelease() method to the VFS. The os_unix.c implementation ofdrh2010-04-27
| | | | | the shared memory logic is still non-functional. FossilOrigin-Name: ed715b47c5f7657fbf901805981867898054b14d
* Begin moving WAL-specific I/O into the VFS. This checkin contains VFSdrh2010-04-26
| | | | | | 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. FossilOrigin-Name: f5e615c28c7035a7e6d896790b51cf9bc7371d5f
* Import experimental write-ahead-logging code.dan2010-04-12
| | | FossilOrigin-Name: 409d61baeb0a19d1700c973f16c8acef7b8506cd
* Adjustments to #ifdefs so that the #include of <sys/mount.h> is not includeddrh2010-03-05
| | | | | twice, because that confuses the amalgamation builder. FossilOrigin-Name: 27413fc8dd52b754b4be9344a66bb9e0d752d48e
* Adjust some #ifdefs so that the build works on Mac both with and withoutdrh2010-03-05
| | | | | SQLITE_ENABLE_LOCKING_STYLE. FossilOrigin-Name: 0cc981f1ccc2c99b87eb968590ad18b2d3ebf37b
* Suppress harmless compiler warnings.drh2010-03-04
| | | FossilOrigin-Name: fc2c63ac78ba7d48fe3232f88093e980ea34eaa9
* Avoid incorrect compiler warnings by doing a couple of needlessdrh2010-02-26
| | | | | variable initializations. FossilOrigin-Name: 8f29490da62df07ea922b03cab52b6edd2669edb
* Continuing improvements to error reporting and the sqlite3_log() routine.drh2010-02-23
| | | FossilOrigin-Name: edea3bb740ddd096a46e00678b59d465bb1e2903
* Remove the obsolete sqlite3SafetyOn() mechanism. Add additional loggingdrh2010-02-23
| | | | | output for CORRUPT, and CANTOPEN errors. FossilOrigin-Name: 7c4cca6d1a23a6d1591b62f58c3716a944969947
* Change a C++ style comment in os_unix.c to use normal C style commenting.dan2010-02-16
| | | FossilOrigin-Name: 7a1933097f2a95bd495c1621fca99e8952a1b25a
* Make sure file descriptors are closed before unlinking in VxWorks.drh2010-02-05
| | | FossilOrigin-Name: f64b81f13de4875343c752e7183bf61032dc9594
* Move the Apple OS-X VFS changes into the trunk.drh2010-01-20
| | | FossilOrigin-Name: 571594bfbe89d9949bdb8b07712e96d0a3467c6e
* Fix a case in os_unix.c where two structures that might have uninitializeddrh2010-01-05
| | | | | padding bytes are compared using memcmp(). FossilOrigin-Name: e02f25560216c7c96c5e1c7e71a8531650b3a96f
* In the OSTRACE debugging macros in os_unix.c, identify the VFS currentlydrh2009-12-04
| | | | | in use. FossilOrigin-Name: 082b8da005128f47f63e95b6b702bf4517221b2a
* Fix the backup API so that a backup from an empty database to a non-emptydrh2009-11-06
| | | | | | database works. Ticket [0bf974bdf9]. The only changes are in assert() statements. FossilOrigin-Name: ddb71cd9ed395804a13dc136bb7688a7627c798f
* Fix compiler warnings. Better comments on some variables associated withdrh2009-11-01
| | | | | LIKE/GLOB processing in the query planner. FossilOrigin-Name: cfa2db0ff7a94e7f66c35f672ee41cadd45a6dd7
* Use memcpy() rather than structure assignment so that memcmp() can laterdrh2009-10-07
| | | | | be used for comparison. Ticket [8550ecca70] FossilOrigin-Name: 56f609da4bfcc794e1f8573652dcde8515e87098
* Make sure the threadsOverrideEachOthersLocks variable is only referenced bydrh2009-09-10
| | | | | linux systems on a threadsafe compile. FossilOrigin-Name: e9d064bd9318c2bc9248df948f71fd30f24525eb
* Trying to open a transaction in one thread and close it in another is a ↵dan2009-09-09
| | | | | 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. FossilOrigin-Name: ef99eb57c536d82e7c19fd3d990c17793cc64a3f
* Suppress some harmless compiler warnings.drh2009-09-09
| | | FossilOrigin-Name: f0c72a53c5d57d7487b48a06a40816153f47aaac
* Add the "unix-wfl" VFS that does whole-file locking in order to help NFSdrh2009-09-03
| | | | | do better cache coherency. FossilOrigin-Name: 2aeab80e5b84f5e94c5c99b4adeca805601c844b
* Patch to the named semaphore locking mechanism used by VxWorks.drh2009-08-27
| | | FossilOrigin-Name: 609c5341bea16e4e8bcd15388b209c753ca9e0bb
* Fix a bad interaction between "proxy-locking" and ↵dan2009-08-25
| | | | | [http://www.sqlite.org/src/vdiff/aa6acfa8caa2ef59b4c16dfe42c4b5644da96905|aa6acfa8ca]. FossilOrigin-Name: 2a5c9e1dbf7f5f4b2081c964450a9305a4516f5b
* Fix some errors in ↵dan2009-08-24
| | | | | [http://www.sqlite.org/src/vdiff/aa6acfa8caa2ef59b4c16dfe42c4b5644da96905|aa6acfa8ca]. FossilOrigin-Name: 82d1934a428a34c292a612fb67bbcea262990e0f
* Fix a problem in os_unix.c where a malloc failure could lead to a leaked ↵dan2009-08-22
| | | | | file descriptor. FossilOrigin-Name: aa6acfa8caa2ef59b4c16dfe42c4b5644da96905
* When a database file is opened, try to find an unused file descriptor to ↵dan2009-08-21
| | | | | 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]. FossilOrigin-Name: 9b4d9ab62d687289837b13b07885e72cc3abe8a9
* Add assert() statements to os_unix.c to check that the mutex is held when it ↵dan2009-08-21
| | | | | should be. FossilOrigin-Name: 11a669b6537d6bac67764fd91a319234345ac504
* Move error simulation code from the sqlite3_os_init() functions into a wrapper.dan2009-08-17
| | | FossilOrigin-Name: 67ad21abf88abb7a3e2eacddcaf1ab5d54149807
* Add tests to check that sqlite recovers from an error in ↵dan2009-08-17
| | | | | sqlite3_initialize() correctly. FossilOrigin-Name: 904a371c6c9d3f20332b37767b06161fa0a78113
* Test the result of pthread_create() and do not call pthread_join() if thedrh2009-07-03
| | | | | thread creation failed. Ticket #3933. (CVS 6839) FossilOrigin-Name: 304c5110ad958b2cc1ddff30e68c8791109128b5
* Suppress some -Wextra compiler warnings from GCC. (CVS 6774)drh2009-06-17
| | | FossilOrigin-Name: 59ec937ce226bbf6c48c5e0466d3bab48873c9ea
* Changes to allow a clean compile with no floating-point instructionsdrh2009-06-15
| | | | | generated when SQLITE_OMIT_FLOATING_POINT is used. (CVS 6763) FossilOrigin-Name: 1591b8322babebc45df3b799cc5e457288f28594
* Fix a warning in the osx-specific part of os_unix.c. Ticket #3847. (CVS 6620)danielk19772009-05-08
| | | FossilOrigin-Name: 254ca3273cfbd833de82296b4859e1ec5535e8be
* Compile fixes and improvements for vxwork: fixed deadlock in semClose,chw2009-04-07
| | | | | detect if fcntl is usable, fall back to named semaphores if not. (CVS 6460) FossilOrigin-Name: efd0682b7e78acc4242cf257fc246350fc29b5c8
* It is OK for a unix file descriptor to be zero. It just can't be negative.drh2009-04-07
| | | | | Adjust an assert accordingly. Ticket #3781. (CVS 6457) FossilOrigin-Name: 47aa7eb0e047e30bbf09cb08c1e48c61f8d9861c
* Another change related to (6401) and (6402): When an attempt to unlock a ↵danielk19772009-03-30
| | | | | | | 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) FossilOrigin-Name: 50fbcdea045f7d4266d9afa721616c720564aa93
* Previous commit ((6401)) did not quite fix the problem. This should workdrh2009-03-28
| | | | | better. (CVS 6402) FossilOrigin-Name: 2e7d3cc9f04de1fe7ef95cd5736dbc409c209cef
* In the unix-backend, when simulating an I/O error on an unlock operation,drh2009-03-28
| | | | | still mark the connection as unlocked to avoid a future assert(). (CVS 6401) FossilOrigin-Name: fb35cff855e17771caee2a992e7b2b4105b94862
* Use fdatasync() only on linux, unless -Dfdatasync=fdatasync is set atdrh2009-03-25
| | | | | compilation time. (CVS 6383) FossilOrigin-Name: cbf2ca4cc41f1f710635b863db6e98074bd5e8bc