aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAge
* Avoid a race condition that might cause a busy_timeout to last longer thandrh2018-03-26
| | | | | it should. FossilOrigin-Name: b81960561b47a1b49646f2f8870dd0684dc4ca7c0b9e11076fd713de66b75972
* Add infrastructure to support for using F_SETLKW with a timeout on systemdrh2018-03-26
| | | | | that support that functionality. Requires SQLITE_ENABLE_SETLK_TIMEOUT. FossilOrigin-Name: 2e54a7433ece4eb27e71bda6f2d121d5aa46ddd5a481357d8543d1432aaad689
* Remove an unnecessary memset().drh2018-02-21
| | | FossilOrigin-Name: e7b7f5884a78630c6ba6a217c36247397e62f1928d4b480df929efcfc4a01893
* Only try to use the geteuid() interface on unix if HAVE_FCHOWN is defined.drh2018-02-19
| | | | | This fixes the build for vxWorks, we are told. FossilOrigin-Name: 38f654dc117bb11d61407327884b5c913cfaf920547bebc4ce5a4cf983e5c20e
* Allocation the mutex used by the unix VFS only once at initialization, insteaddrh2018-02-05
| | | | | of every time it is needed. FossilOrigin-Name: 5764dc160783f5c4017204b3e26a89d31240c868484ced8214c9ad872bd77bd4
* Fix an error in the setDeviceCharacteristics() procedure for thedrh2018-01-15
| | | | | (unsupported) QNX code in os_unix.c. FossilOrigin-Name: 8151913a3987f4dd2d6efee046727f5fa9b6f11d5d3867ea8f512c03a212ac2b
* Fix a problem in os_unix.c causing it to return SQLITE_CANTOPEN instead ofdan2018-01-10
| | | | | SQLITE_READONLY_RECOVERY. FossilOrigin-Name: 6a16f554f027ba268276b728588b5eaea837cbed85358a06a2f6da3b70e834ad
* In the os_unix.c implementation of xOpen(), do not returndan2018-01-09
| | | | | | | SQLITE_READONLY_DIRECTORY in cases where the file cannot be opened for reasons other than a readonly directory, such as the process running out of file descriptors. FossilOrigin-Name: fa8b80bb967792de99808712ac03e37ace0f11eb8fbe444aacd3d19184c425ea
* An improved way of generating the SQLITE_READONLY_DIRECTORY error.drh2017-12-13
| | | | | The error message submitted to sqlite3_log() is still correct this way. FossilOrigin-Name: 1c0aa919ee429cd194820ec9c54084563f39e63fd399b23f859fc6703b429b15
* New result code SQLITE_READONLY_DIRECTORY is returned when an attempt isdrh2017-12-13
| | | | | | | made to write on a database file that is in a read-only directory and hence the journal file could not be created. This situation formerly returned SQLITE_CANTOPEN, which less helpful. FossilOrigin-Name: 3ec73c38f878d73d278fce99ba10c708dcc475835774f1e17769ff7315be6d7c
* Minor enhancement to two assert() statements in the default VFSes.drh2017-12-13
| | | FossilOrigin-Name: 9cede8a83ca4cd88d504050115e1e89e7b3d3cd3cb2ffb5b8961e311a23ff5e2
* Fix a harmless API signature mismatch in the unix VFS.drh2017-12-09
| | | FossilOrigin-Name: bab9de7fdda20a724f7c21ec2c25b488ece08b685f1e4fd15c9e73b6b4a0133a
* Change the name of SQLITE_READONLY_CANTLOCK to SQLITE_READONLY_CANTINIT.drh2017-11-08
| | | FossilOrigin-Name: 6d7f94faa7e6de62f82bc6cac019508a9c1ffd6fa1d14f52fa93e9c06afdd32f
* On unix, if the *-shm file cannot be opened for read/write access, open itdan2017-11-07
| | | | | read-only and proceed as if the readonly_shm=1 URI option were specified. FossilOrigin-Name: ba718754fa5ab8596cb84b751051de98afa2706fe6c5df39ad6d925d790719ee
* If a readonly_shm connection cannot map the *-shm file because no otherdan2017-11-01
| | | | | | process is holding the DMS lock, have it read from the database file only, ignoring any content in the wal file. FossilOrigin-Name: ce5d13c2de69b73378637d4f7e109714f7cd17bf1d1ad995e0be442d517ed1b3
* Fix a race condition in os_unix.c that might allow a client to use a *-shmdan2017-11-01
| | | | | | file corrupted by a power failure if another client fails between locking the *-shm file and truncating it to zero bytes. FossilOrigin-Name: d655bfabd110999b6808073c334869c5b6a8334df56811df883e47e56d3f1cbb
* Fix an error in the previous commit on this branch.dan2017-10-26
| | | FossilOrigin-Name: f71dfee06ce1e0eee760cfca19482bdec7729d6c7d28f10f4cfd21e1f92a04b0
* Instead of extra locks, use F_GETLK to ensure that readonly_shm clients cannotdan2017-10-26
| | | | | connect to a wal-mode database if there are no writers. FossilOrigin-Name: 5492f457dc7cc5c416de4b4e61e84bd2f10b4e6ce54011b7a60feb47f629c923
* Use extra locks to prevent a readonly_shm=1 process from connecting to adrh2017-10-25
| | | | | WAL-mode database if there are no writers. FossilOrigin-Name: 35d979082b4ab36d6a8975f8f15a50e69f46b72a173164d2b353377b9f758bd8
* Do not reference the ioctl() system call in the unix backend unless itdrh2017-10-25
| | | | | | is actually needed by the Batch Atomic Write extension. This should allow the build to work on VxWorks. FossilOrigin-Name: adfa7ed2de3e833fff65935455e71236a59602aaf7b97ece667ab300dca9f673
* Add another test case for the problem fixed by the previous commit.dan2017-09-14
| | | FossilOrigin-Name: 1a7e0b61c8a6bdd3ed105b9bc8a3732668fd7a897d2ed16c99445498e3c87089
* Avoid an out-of-bounds read that can be caused by a specially constructeddan2017-09-14
| | | | | journal file. FossilOrigin-Name: cf5bf42cad6e019a38dc0a36ff1f53ada619eef5259e175c3554a16669e03202
* Fix error tests in seldom-used compile-time branches of the unix backend.drh2017-08-22
| | | FossilOrigin-Name: 885c2b44a44f8d054014e4079b2cac8279c11d13206d5b5215189ef75b9c5254
* For the unix VFS, avoid an unnecessary stat() system call prior to openingdrh2017-08-18
| | | | | any file in the common case where there are no unused file descriptors. FossilOrigin-Name: 3075cfa07489eaf13cb9a2760e2391e79dd73181fe1730fae7bdcd6ad66d2a1f
* On Windows, avoid casting a value larger than 2^31 to a (SIZE_T) on systems ↵mistachkin2017-08-07
| | | | | where it is a 32-bit type. FossilOrigin-Name: f08d63b413601b22726e8b96ff8eb779857321b9df30db0333f71e50ffb5077d
* Fix a problem with handling SQLITE_FCNTL_MMAP_SIZE requests with a negativedan2017-08-07
| | | | | parameter in os_unix.c. FossilOrigin-Name: 4249fcf7b0c0233f9b3ba5139702738d5221c5309240e6e91dc139eff59471fe
* Avoid casting a value larger than 2^31 to a (size_t) on systems where itdan2017-08-07
| | | | | is a 32-bit type. FossilOrigin-Name: 46c3085dcad6372ac20eff499e17fe11680fdf4adb9186bf8b12221a5047e485
* Add new extended error codes for the atomic write file-controls.drh2017-07-28
| | | FossilOrigin-Name: 94a2004756ffe027b3495be91366750135c294a9c460edc9a1b4b9422dcc33bd
* Do not set device-capabilities flags SEQUENTIAL or SAFE_APPEND for f2fsdan2017-07-27
| | | | | file-systems. FossilOrigin-Name: 4477e60cd801dab7a8aec12c5bc5e81e774bedbfed38abbc8eb8b37336141a44
* Omit unused batch-atomic-write code if SQLITE_ENABLE_BATCH_ATOMIC_WRITE isdrh2017-07-22
| | | | | not defined. FossilOrigin-Name: a89b62c4966cd297326e8712da40e0962d2328d7ba1f201d5abcec911eeef347
* Use ioctl(F2FS_IOC_GET_FEATURES) to determine whether or not atomic batchdan2017-07-21
| | | | | writes are available. FossilOrigin-Name: 532bbf1f2b1028db4e581c756533aa660e482d833caaed4eafb299ef9b584f3a
* Add support for F2FS atomic writes. Untested at this point.dan2017-07-20
| | | FossilOrigin-Name: 416973ede3bde8567d1f2699728f72352979e054ef988d1c1e1cfe4290f6f8b8
* Work around a bug in the definition of "ino_t" on some versions of Android.drh2016-12-05
| | | FossilOrigin-Name: 8df492c1711bfea250264fdaa4892e0842705f83
* Add the "modeof=<filename>" URI parameter to os_unix.c - used to specify a ↵dan2016-08-11
| | | | | file to copy permissions from when a new database is created. Also allow passing NULL as the second parameter to sqlite3rbu_vacuum(). FossilOrigin-Name: ed406d31ff54ee3de8db91690a966e5c561f8f94
* Fix the temporary directory search algorithm for unix so that it failsdrh2016-04-29
| | | | | | gracefully even if all candidate directories are inaccessible. This fixes a bug that was introduced by check-in [9b8fec60d8e]. FossilOrigin-Name: 614bb709d34e11488da88861243023cc5de4b409
* The pcache and the built-in VFSes should not use mutexes whendrh2016-04-26
| | | | | SQLITE_CONFIG_SINGLETHREAD is set. FossilOrigin-Name: 12418b100196abbfbfb85e0ab4bb6b1cbf335df7
* Fix the fix to the temporary directory search algorithm so that it continuesdrh2016-04-23
| | | | | to return "." as a fallback if that directory has the correct permissions. FossilOrigin-Name: b38fe522cfc971b37ca04e7b63a92bbb6e0b01e1
* Change the temporary directory search algorithm on unix so that directoriesdrh2016-04-21
| | | | | | with only -wx permission are allowed. And do not allow "." to be returned if it lacks -wx permission. FossilOrigin-Name: 67985761aa93fb613b87d340e75371fa55b0f778
* The last parameter to pread64() and pwrite64() should be off64_t, not off_t.drh2016-04-18
| | | FossilOrigin-Name: 3a7d72986fabe9434ff5bd02c93169314f072b23
* Update comments on the unix file locking protocol. No changes to code.drh2016-04-07
| | | FossilOrigin-Name: 716b20de4306de1653ba5bcdbfb8d210d2d46e1a
* Remove an unreachable branch from the unlink verification logic in the UNIXdrh2016-03-21
| | | | | VFS. FossilOrigin-Name: 4dc30cce7fdb7dba9a9aad96bb8b499b965610b2
* Experimental implementation of the sqlite3_system_errno() interface.drh2016-03-17
| | | FossilOrigin-Name: 6782c87b3722fbd09684a5b1e5df05247956f1c6
* Avoid a few unnecessary fstat()s on journal files.drh2016-03-16
|\ | | | | FossilOrigin-Name: dbf84705913c0845ca4e75eb30c91536c754efeb
| * Avoid unnecessary work inside of verifyDbFile() in the unix VFS.drh2015-12-08
| | | | | | FossilOrigin-Name: f3c0579e931799088e9a83757e25bae229120697
* | Further fixes to the pread()/pwrite() enabling logic.drh2016-03-04
| | | | | | FossilOrigin-Name: 38fb54e7854ac0500a88585ff9dd7487b4b2e586
* | Fix the build for cases when pread()/pwrite() are not available.drh2016-03-04
| | | | | | FossilOrigin-Name: 7d67d876b70c7a4199697c5b112d809c600e140e
* | Update the configure script to detect pread/pwrite and update os_unix.c todrh2016-03-04
| | | | | | | | | | use those routines if they are available. FossilOrigin-Name: 2cffb9e50bed77d1079603f5b4a71b7559de7294
* | Enhance ability to debug out-of-memory errors.mistachkin2016-02-13
| | | | | | FossilOrigin-Name: 6a9c4a3ebfb7cc0738ef6634440ccab44a21ff28
* | Refinements to synchronous logic: drh2016-02-04
| | | | | | | | | | | | | | | | | | (1) Use PAGER_SYNCHRONOUS_FULL rather than the corresponding magic number. (2) Honor SQLITE_NO_SYNC on xDelete calls with sync (3) Count xDelete syncs during testing (4) Fix #ifs on SQLITE_EXTRA_DURABLE so that directory syncs on journal unlink are off by default. FossilOrigin-Name: e3157cb5ad0d22758e766a95fb1463a7810f7d7f
* | Ensure that unixFullpathname() always nul-terminates its output buffer, even ↵dan2016-01-26
| | | | | | | | | | when returning an error. FossilOrigin-Name: 4a4385564dd3887a7953820b60c99d6ce289f96a