aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAge
* Fix the computation of the offset on the mmap() for the Nth shared memorydrh2010-09-02
| | | | | | | 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. FossilOrigin-Name: 36397f62f2e3a62b4d5730b29c197449c6850cac
* Fix memory allocation in proxy locking so that it works with SQLITE_MEMDEBUG.drh2010-08-11
| | | FossilOrigin-Name: f854cbe06355dd3455b8af4ad6366949c412434e
* Support FCNTL_CHUNK_SIZE on windows too.dan2010-07-28
| | | FossilOrigin-Name: a038688c991435967b935946c2283707820bb5da
* Add experimental unix-only file-control to grow and truncate the database ↵dan2010-07-27
| | | | | file by a configurable chunk size. FossilOrigin-Name: 7cf0e851d4c5e826ea22ed08291b7c91d7b1abc7
* Fix a race condition in os_unix.c that may occur when one thread is opening ↵dan2010-07-20
| | | | | a connection to a shared-memory block and another is either closing or locking the same shared-memory. FossilOrigin-Name: 3b7330c19a5327322068e9460018fe0152b8ac87
* Previous check-in [534aab837e] accidently reverted somedrh2010-07-15
| | | | | changes from [a121cd80c5]. This check-in restores those changes. FossilOrigin-Name: abff795f38e33d778c8dd494a601bc029237da9e
* Optionally support shared-memory in /dev/shm or other tmpfs directorydrh2010-07-15
| | | | | using an unsupported compile-time option. FossilOrigin-Name: 534aab837e5a34fd58963ab2b505bfbb9da2e8ee
* When creating a journal file on unix, attempt to create it with the same ↵dan2010-07-15
| | | | | permissions as the associated database file. FossilOrigin-Name: a121cd80c5ac94e5977bc3164d2500e0ea132fed
* Fix a typo in a comment in os_unix.c.drh2010-07-14
| | | FossilOrigin-Name: e1e7312580a8b19825b0c52fa8af6c9382f99f22
* On unix, try to create the *-wal and *-shm files with the same permissions ↵dan2010-07-14
| | | | | as the associated database file. FossilOrigin-Name: e5d180eed245437b61bfb257ee01e2571c93afe7
* Fix the unix driver to return an I/O error if unlink fails for any reasondrh2010-07-14
| | | | | other than the file not existing in the first place. FossilOrigin-Name: 90d73c66bfa880cdeb688b3016c8b1c58bfcf35f
* Change the name of the xShmClose VFS method to xShmUnmap, everywhere.drh2010-07-14
| | | FossilOrigin-Name: c2d27cf51d33e6f38bab37008d39074051f75274
* Tweaks to the new shared-memory interface design - mostly comment changes.drh2010-07-13
| | | FossilOrigin-Name: 6336de7aa96a6e1e68cc123e5d5f485d790d95a2
* Changes so that the xShmOpen VFS method is no longer required. Its job can ↵dan2010-07-13
| | | | | be done by the first call to xShmMap. Rename xShmClose to xShmUnmap. FossilOrigin-Name: f4780bde62c6c19146d2723c101540b8db898d38
* Remove the unused xRename() method from the sqlite3_vfs object.drh2010-07-03
| | | | | Add better documentation on the xCurrentTimeInt64() method. FossilOrigin-Name: 51ec0e5432dd6849b83a3d969a018482eb3bb083
* Fix compiler warnings in the proxy locking code.drh2010-07-02
| | | FossilOrigin-Name: 26c7689cfedf03e65bcd51df68d128101ed2c1ec
* Suppress various compiler warnings.drh2010-06-26
| | | FossilOrigin-Name: e82d008eaffb5522080cad6c69c1b194b78eadbd
* Adjust the shared-memory locking range to account for the new version numberdrh2010-06-23
| | | | | values in the wal-index header. FossilOrigin-Name: a6dc0df304876b51cef5402b0e21330f10aabccf
* Merge latest trunk change.dan2010-06-21
|\ | | | | FossilOrigin-Name: f6d26e07b70965e332b1589804ca938593a5f432
| * Fix an uninitialized variable in os_unix.c.drh2010-06-19
| | | | | | FossilOrigin-Name: 822a0283c6bc1c75001f3d1c528a4ff89c6b039c
| * Change the unix VFS to always allocate shared-memory using a file in thedrh2010-06-19
| | | | | | | | | | | | | | same directory as the database. Otherwise, a chroot might cause different processes to use different shared memory files resulting in database corruption. FossilOrigin-Name: 2241788bc85fbc48e9cfecb95fe0a858338e37cb
* | Change the implementation of the unix implementation of xAccess() so that it ↵dan2010-06-18
|/ | | | | returns 0 (does not exist) to an SQLITE_ACCESS_EXISTS query on a file that exists but is zero bytes in size. FossilOrigin-Name: 077b0e5bcd849130c8df373fc2134c4b44351882
* Fix a memory leak that can occur in os_unix.c if an IO error occurs within ↵dan2010-06-16
| | | | | the xUnlock method. FossilOrigin-Name: 6c5c04eea1f0e8d61883ee8675c249fbf895dc01
* Move the xShmMap method to in between xShmLock and xShmBarrier, since it seemsdrh2010-06-14
| | | | | to fit in there logically. FossilOrigin-Name: 58dfd83d8b7905391e2a06bb918ffa209c6de6b5
* Add the new xShmMap (formerly xShmPage) to os_win.c.dan2010-06-14
| | | FossilOrigin-Name: 13e7a8242206bca4b5bf356ef074e66474d39609
* Remove xShmGet/Size/Release from the sqlite3_vfs structure. Change the name ↵dan2010-06-14
| | | | | of xShmPage to xShmMap. Remove some code that is now unused from os_unix.c and some of the test VFS implementations. FossilOrigin-Name: fc0cabc15c97dde6a852b4f07df6d30f1d2c04bc
* Experimental change to the xShmXXX parts of the VFS interface.dan2010-06-11
| | | FossilOrigin-Name: ca68472db01c14a899892007d1cbaff5e86ae193
* In os_unix.c, call munmap() to unmap a shared-memory region prior to closing ↵dan2010-06-07
| | | | | the associated file descriptor. FossilOrigin-Name: 95cc976f1520bdaedd8f93b0e9fbef94e4e2c8cc
* Make sure the directory used by os_unix.c for shared-memory files is alwaysdrh2010-06-02
| | | | | | the same, regardless of individual client permissions and environment variable settings. FossilOrigin-Name: f97bd520f06a16c61ccdd9ebeda7e138896b9ac2
* Changes to make WAL more robust against SHM locking failures and OOM errors.drh2010-06-02
| | | FossilOrigin-Name: ebf4041383c3cdddb5861960359abd209d4a1028
* The shared-memory used by WAL on linux now really is shared memory in /dev/shm.drh2010-06-01
| | | | | | On other unix flavors, the file is in a temporary directory rather than in the same directory as the database. FossilOrigin-Name: fc18c4aadb908c3b6f9b6481a2efca6a0daadc64
* Do not hold the shared-memory mutex in os_unix.c if returning NULL.dan2010-06-01
| | | FossilOrigin-Name: 9622dd468c8914262e9d8bd8dbca9e22ec6ee75c
* Fix os_unix.c so that it will compile and build on a Mac.drh2010-06-01
| | | FossilOrigin-Name: bc707c83e5f9849d9d201d695d0d071ca9ed93cb
* Fix issues with locking_mode=EXCLUSIVE in WAL.drh2010-05-31
| | | FossilOrigin-Name: 8deba0cebd135a18da68530fab9e7d19dc21ddcb
* Fix an inconsistent #ifdef in wal.c. Fix os_unix.c so that it does not allowdrh2010-05-31
| | | | | moving an SHM lock directly exclusive to shared without going through unlocked. FossilOrigin-Name: 552658da2845c2323167b6c7db6e5c00090f280c
* Get the new xShmLock interface design working on os_win.c.drh2010-05-31
| | | FossilOrigin-Name: 149a7082e266edf0dc25c23823a9e240f5285215
* Remove the tests that enable tracing based on the existance of the "vdbe_*"drh2010-05-31
| | | | | files when in SQLITE_DEBUG mode. FossilOrigin-Name: cdbb4e7ca7ec27e7e80dd66529d9d565f547887a
* WAL runs but quickly deadlocks.drh2010-05-31
| | | FossilOrigin-Name: ace58acbf1fad13d2be96cafebc3a22875098d03
* Initial code for incremental checkpoint in WAL mode. This check-in compilesdrh2010-05-30
| | | | | | | 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. FossilOrigin-Name: ef3ba7a17ff90674d702e5694b9e792851ab6998
* Change the semantics of xShmGet() such that it will never increase the sizedrh2010-05-26
| | | | | | 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). FossilOrigin-Name: 72de00731245277b2209103ec0a76e3d4f56530e
* Update header comments in wal.c to correctly describe the WAL file format.drh2010-05-25
| | | | | | 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. FossilOrigin-Name: 40030c0739f821ea8ee188c28c579507f10448bc
* Comment out the SQLITE_FCNTL_SIZE_HINT from os_unix.c since it does not drh2010-05-21
| | | | | seem to provide any performance gain there. FossilOrigin-Name: 7d01309da658d6b658c1b2e53bbdc5112fb0a4d9
* Add a new xShmBarrier method to the VFS - a shared-memory fence operation.drh2010-05-20
| | | | | | Implement the same in both unix and win32. Use it to make the WAL subsystem more robust. FossilOrigin-Name: 1bd011c9fed5ef29fb616b4d0a52df3b82221b1f
* Add the SQLITE_FCNTL_SIZE_HINT operator to sqlite3_file_control() and use itdrh2010-05-19
| | | | | | to give the VFS hints about the ultimate size of a database file when the file is growing. FossilOrigin-Name: 2b7e3b4a30d6a7c4a8a4b8e7dd2ed728b565c96d
* Mark the shared-memory in the WAL implementation as volatile.drh2010-05-18
| | | FossilOrigin-Name: 0a6787908e989bd5e6af25acbdc59ebc8fa61d6d
* Fix a typo that (by bad luck) was not a syntax error but which caused some drh2010-05-14
| | | | | important lines of code to be skipped when SQLITE_DEBUG was not used. FossilOrigin-Name: 9ef99d97d25aae81df971d40ad10c544b8f30053
* Simplifications to the SHM implementation in os_unix.c, taking advantagedrh2010-05-14
| | | | | of the removal of the LinuxThreads mess. FossilOrigin-Name: d1debe5def82a6bc72f11b8787176ac60259630f
* Simplify os_unix.c by removing support for LinuxThreads. Linux systems mustdrh2010-05-14
| | | | | either use NPTL or else not share database connections across threads. FossilOrigin-Name: e294b696ba91512b1ca5547774c51ea07b4cb5bc
* Change the OSTRACEn() macro to OSTRACE(()). Also rename some internal fieldsdrh2010-05-14
| | | | | and variables in os_unix.c to be more meaningful and searchable. FossilOrigin-Name: 5fe529f239cddbf4b7ea57abb02d95cc0d94f5f5
* Change the xShmSize() implementation in os_unix.c so that it will onlydrh2010-05-13
| | | | | increase and never decrease the size of a shared-memory segment. FossilOrigin-Name: 149d2ae4a6fe2f86822f286d2a7092c51bec7ebb