aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAge
...
* When using mmap mode on unix, use a read-only mapping by default. Write to ↵dan2015-11-17
| | | | | the database file using write(). Unless SQLITE_MMAP_READWRITE is defined, in which case use a read/write mapping and write into the file using memcpy(). FossilOrigin-Name: 67c5d3c646c8198c8637069140aca952b802df25
* On unix, if a file is opened via a symlink, create, read and write journal ↵dan2015-10-31
| | | | | and wal files based on the name of the actual db file, not the symlink. FossilOrigin-Name: c7c8105099c0412ac6c605f98987092c10bde57c
* Strengthen the implementations of xShmMemoryBarrier on both the unix anddrh2015-09-24
| | | | | windows VFSes, so that they likely work even if SQLITE_THREADSAFE=0 is used. FossilOrigin-Name: c6ab807b72ddfc1462f61aa91442b6fac04ace8a
* Very minor optimizations in the unix VFS.drh2015-09-01
| | | FossilOrigin-Name: 6db3ff45bc15ece29cb2c7a736e5c6d005dde200
* Add static mutexes for use by the built-in / third-party VFSs and use the ↵mistachkin2015-07-03
| | | | | built-in VFS mutex where appropriate. FossilOrigin-Name: b202e2a1d73d104d795d2252b1c6f61d65bfb295
* Fix signed/unsigned comparison compiler warnings. Add thedrh2015-04-30
| | | | | | SQLITE_OMIT_RANDOMNESS compile-time option to cause the PRNG to be seeded identically on every run, for testing purposes. FossilOrigin-Name: 93ce2bca701efc67aeb517c4d641bde71332e8a0
* Use sqlite3_malloc64() in place of sqlite3_malloc() internally.drh2015-04-29
| | | FossilOrigin-Name: 48f553b05c05373c0af4b9c3a542979db3a2ee19
* Merge updates from trunk. Make OSTRACE changes work on Linux.mistachkin2015-04-16
|\ | | | | FossilOrigin-Name: cd1542664eb3eb46d486664ded49cd9c4bef3948
| * Add #ifdef magic for HAVE_GETHOSTUUID so that the build will hopefully nowdrh2015-04-13
| | | | | | | | | | work on more verions of MacOS with SQLITE_ENABLE_LOCKING_STYLE turned on. FossilOrigin-Name: 211411d02c0729c9af0e3cc7e4910db2e7e0d08e
| * Disable the SQLITE_FCNTL_WAL_BLOCK feature for now. It needs more work anddrh2015-04-03
|/ | | | | is not yet ready for release. FossilOrigin-Name: 4ae9a3acc4eeeb7998769eb856c97c2233476f72
* Do not invoke a C preprocessor macro with an empty argument, as (reportedly)drh2015-03-21
| | | | | some versions of GCC are unable to deal with that. FossilOrigin-Name: de9da317d4df3efefe9a1a48f954af8a19e7d098
* Fix the blocking WAL lock so that it works and so that it compiles on a Mac.drh2015-03-21
| | | FossilOrigin-Name: 67d69d21de32816894be53e4b446656d4174eb0d
* Arrange for some of the transient locks in WAL mode to block, as a singledrh2015-03-10
| | | | | to the OS to fix priority inversions. FossilOrigin-Name: c6e6d5f4e06c3ac0bfb620c0c728fbc7230c4a02
* Clean up #ifdef logic dealing with VxWorks in os_unix.c. On VxWorks, drh2015-03-03
| | | | | | automatically use posix advisory locking if it is available or fall back to named semaphore locking if not. FossilOrigin-Name: ac8c7ca3db14ec19be1f19cfaf14b47fdda0c9ef
* Fix compiler warnings when compiling under VxWorks 7.drh2015-03-03
| | | FossilOrigin-Name: 55c21521a64703d7050c7f8975538f4cfae95eb7
* Changes so that the amalgamation and the command-line shell build withoutdrh2015-03-02
| | | | | | modifications on VxWorks 7. Still gives a few compiler warnings, and still mostly untested on that platform. FossilOrigin-Name: 7d92f1f11ee69b0ba7d5a48f0611016d77d41c78
* Fix a compiler warning associated with USE_PREAD64.drh2015-02-21
| | | FossilOrigin-Name: c299e55a661c04f71ab43cb8aed04f8ece6e0567
* Fix over-length source code lines in os_unix.c.drh2015-02-21
| | | FossilOrigin-Name: 7560a9fa50236ecaa0617f1ab5bb5662f4a61c72
* Remove a redundant call to statfs() in the xOpen() method of the unix VFS.drh2015-02-19
| | | | | Also fix an unused local variable warning. FossilOrigin-Name: 8215727dda384351765ab1d5c53ea80775b4ec65
* Move the os_unix.c file closer to apple-osx.drh2015-02-19
| | | FossilOrigin-Name: 81f242e338d6122e27aad86986bfd140012c6582
* Make use of the fdatasync() interface if the HAVE_FDATASYNC macro is true.drh2015-01-10
| | | FossilOrigin-Name: 694228e4632c2999efa47ecb49f679c177db02e5
* Fix a problem in the unix implementation of FCNTL_SIZE_HINT on systems that ↵dan2015-01-06
| | | | | do not support posix_fallocate(). FossilOrigin-Name: af20eae1e6f608e4e61a07c3d14cf88c12751353
* Ensure that when a file is extended using FCNTL_SIZE_HINT the last page is ↵dan2014-12-30
| | | | | allocated on disk, even if the file will only use part of it. FossilOrigin-Name: c7f84717d61197afa9e0ac607c4b349361e6e2b7
* If the sorter uses mmap'd temp files, ensure all pages of the temp file have ↵dan2014-12-30
| | | | | been allocated before it is accessed. Otherwise, a disk-full condition might result in a SIGBUS exception. FossilOrigin-Name: 776648412c30dce206f1024ff849c2cb025bb006
* Disable shared memory operations using the unix-nolock VFS.drh2014-09-22
| | | FossilOrigin-Name: 10a6e510497b471d67ac3dfb19ff256a7d18adf4
* Make the "nolock" VFS on unix a version-3 VFS so that the sorter candrh2014-09-19
| | | | | use memory-mapped I/O. FossilOrigin-Name: 3db78d6100a1ecf58c18eec3abefa7d1250c649c
* Fixes to os_unix.c to support database (and other) files larger than 2GiB on ↵dan2014-09-06
|\ | | | | | | | | Android. FossilOrigin-Name: ad7063aa1a0db32cdbe71815545b2edca57d3bcc
| * Merge latest trunk changes with this branch.dan2014-09-06
| |\ | |/ |/| FossilOrigin-Name: 9dca7ce55797b3eb617859f6189c1a2ec6f66566
* | Fix typos in comments. No code changes.peter.d.reid2014-09-06
| | | | | | FossilOrigin-Name: e62aab5e9290503869e1f4d5e0fefd2b4dee0a69
| * Fixes to os_unix.c to support database (and other) files larger than 2GiB.dan2014-09-06
|/ | | FossilOrigin-Name: e7fae33c0754488336ce093189a83dfe1b818d89
* Attempt to make the xDelete method of the unix VFS more robust on VxWorks.drh2014-09-01
| | | FossilOrigin-Name: b0f6b91f36b503d8ba8d5257bb194f8c1afb4833
* Minor change to unixDelete for VxWorks with a DOS filesystem.drh2014-08-13
| | | FossilOrigin-Name: f01d42cc8b00d2b7c4f14defcb05fdc493cf1bfd
* Fix typos in the VxWorks code of os_unix.c.drh2014-08-12
| | | FossilOrigin-Name: 19682e8fdc4a3b7884dba3e4387763e435ec16e6
* Changes that will perhaps enable SQLite to work better on VxWorks.drh2014-08-11
| | | FossilOrigin-Name: de27c742c0dcda20b51339598bf6094a8dcf5fb9
* The SQLITE_IOERR_BLOCKED extended error code is not longer used, so removedrh2014-08-08
| | | | | | assert() statements and documentation for that error code. Also make other documentation improvements. FossilOrigin-Name: 36b7c5cefcad6bad044806092593c84876fee8bc
* Fix a problem with SQLITE_OMIT_WAL builds.dan2014-06-23
| | | FossilOrigin-Name: 612b6d1b1f74eaf618520b90811eca10f978fc71
* Add the SQLITE_UNLINK_AFTER_CLOSE compile-time option. If enabled, thedrh2014-06-16
| | | | | unlink of temporary files on unix is deferred until after the file is closed. FossilOrigin-Name: e43a2f92b616ec885a1ee62911fa8f6991d277f7
* Back out the unix VFS changes that seeks to avoid fstat() calls after andrh2014-06-16
| | | | | unlink(). That change did not clear the problem on FuseFS. FossilOrigin-Name: 0617e20a33e08754aea14e60db44e557c13978e3
* Avoid an unnecessary initialization of the szFile field of unixFile indrh2014-06-09
| | | | | the unix VFS. FossilOrigin-Name: 6484fb5a25c2a0e5d26694285a4908a22c67ba17
* Enhance the unix VFS so that it keeps track of the size of unlinked filesdrh2014-06-09
| | | | | | | internally and thus avoids the need to call fstat() on those files, since fstat() does not work reliably on unlinked files on some implementations of FuseFS. FossilOrigin-Name: c41df393c6afbfbfdc4d1b885024e083c6f6de1f
* Add a test to ensure os_unix.c works with 64KiB OS pages.dan2014-03-20
| | | FossilOrigin-Name: e3d2be3ba47cdaafd26347620ae3bc2813203f16
* Add an experimental fix to avoid attempting to mmap memory from an offset ↵dan2014-03-20
| | | | | that is not a multiple of the system page size on systems with page sizes larger than 32KB. FossilOrigin-Name: 6f3a5c24d254fc6faf607b505bdef4a7aafc21af
* Fix redundant definitions of _LARGE_FILE and _LARGEFILE_SOURCE.drh2014-02-07
| | | FossilOrigin-Name: 4043d879795bfad55af35e9cb48e0a42eb4087ae
* Fixes for various clang warnings.drh2014-01-24
| | | FossilOrigin-Name: 87bf60637e5863c54c5e2d05aaaca0835b7aace8
* Fix another harmless compiler warning in unixUnfetch().dan2014-01-10
| | | FossilOrigin-Name: 0484549bb82ca5246488330c8d266e429ccd19b9
* Fix harmless compiler warning in unixUnfetch().drh2014-01-09
| | | FossilOrigin-Name: 618f248f4ea9fb0b6ff019a4c2cd72857389301f
* Try to detect process ID changes due to fork() calls in os_unix.c anddrh2014-01-01
| | | | | reset the PRNG when a process ID change is detected. FossilOrigin-Name: e1eba1fb09d7db49d77928bd115b27b8002ae640
* Actually look at i-node numbers to determine whether or not the databasedrh2013-12-07
| | | | | file has moved. FossilOrigin-Name: 2b1884dc14f9a04a04eebb3245fbe0daaff399eb
* Fix two potential (and apparently harmless) shift overflows discovered bydrh2013-12-05
| | | | | the -fcatch-undefined-behavior option of clang. FossilOrigin-Name: e19eead8c9977ed4f00eac54c5bc7e90db78caa8
* Fix a problem in os_unix.c causing compilation failure if SQLITE_DEBUG and ↵dan2013-10-31
| | | | | SQLITE_MAX_MMAP_SIZE=0 are both defined. FossilOrigin-Name: 090db8c81d8ca216277d11c8c4751c0a37801524