aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAge
...
* Ignore the value of SQLITE_FCNTL_CHUNK_SIZE if it is negative.drh2012-04-05
| | | FossilOrigin-Name: 1b08fef9451f4d59148548faed115d1a5d0bcd98
* Fix a harmless compiler warning introduced by the previous check-in.drh2012-02-13
| | | FossilOrigin-Name: a8a042a751557d06bf04455ed7629cb29adcd87f
* On unix, ignore the umask when creating journal files. That way, journal filesdrh2012-02-13
| | | | | | | will have exactly the same permissions as the original database and any process that has permission to write to the database can also recover hot journals. FossilOrigin-Name: 84b324606adc8437338c086404eb157f30f04130
* Fix a typo in the type of the fchown() function in os_unix.c.dan2012-02-13
| | | FossilOrigin-Name: bfbfe05b81919ecc3d6e7be4c24994f795f16582
* Make fchown() an overrideable system call in os_unix.c.drh2012-02-11
| | | FossilOrigin-Name: 98efac9630ca96ba0497c8e206dc5022612ff381
* Silence GCC compiler warnings about unused return value from fchown().drh2012-02-11
| | | FossilOrigin-Name: b022547389a40930cf0d2a75f5eb293acc9fbfe0
* When creating journal files (including -wal and -shm files) try to set thedrh2012-02-11
| | | | | | ownership to be the same as the original database. This will prevent root from locking out the original owner of the file. FossilOrigin-Name: 1254dffe4071656a783cd000b1dd40c975ac18cb
* Remove a redundant test from the shared-memory logic in os_unix.c.drh2012-02-11
| | | FossilOrigin-Name: 31142ca795005bf664f34000591e6572c72652f2
* Fix an important bug in the handling of EINTR in unixRead(). Never camedrh2012-02-10
| | | | | up on x86 but crashes on sparc. FossilOrigin-Name: 1a16db0bca717a2582a48332d81854ca90d6d49b
* Only require double-zero terminators on database filenames, not any everydrh2012-01-10
| | | | | | | files supplied to the xOpen method. This backs out [2544f233f1]. Also refactor the fillInUnixFile() routine in os_unix.c to reduce the number of parameters. FossilOrigin-Name: cb774b26e13745cfad0d76a71e47466d703e0007
* Make sure the name of the shared memory file has two zero-terminators in thedrh2012-01-05
| | | | | UNIX VFS, so that sqlite3_uri_parameter() will work correctly on that name. FossilOrigin-Name: 3d088ba5e36c0b6bccc86986f8fa9a22b340c297
* Change the unix VFS so that it ignores all but the least-significant bitdrh2012-01-05
| | | | | | of the syncDir flag to xDelete. Add an assert to prove that the core only ever uses that one bit. FossilOrigin-Name: e75fd3b27423272b988921ac0e272f9600818b8c
* Remove the SQLITE_FCNTL_SYNC_OMITTED cases from the unix and windows VFSesdrh2012-01-05
| | | | | as they are no longer needed because of check-in [fd3822f1f2]. FossilOrigin-Name: 7cf568a101cda20ab6005bd250154b7f6960193a
* Make sure filenames passed into sqlite3OsOpen() always have the extradrh2012-01-03
| | | | | zero-terminators needed by sqlite3_uri_parameter(). FossilOrigin-Name: d73e93cfdc9441ade77b796dcdcf6eeb753cb398
* Remove the code that attempts to find the sector size from the OS anddrh2012-01-02
| | | | | | hardcode the xSectorSize methods of the unix and windows VFSes to return SQLITE_DEFAULT_SECTOR_SIZE, which is now set to 4096 unless overridden. FossilOrigin-Name: 03d8362cd2cadab8e1cc5b18a3194152f2bd0a84
* Change the name ZERO_DAMAGE to the more descriptive POWERSAFE_OVERWRITE.drh2011-12-23
| | | | | The query parameter used to control this device characteristic is now "psow". FossilOrigin-Name: 6191c5e45175f5c6040e891843b0725a929d6dd7
* Merge the latest trunk changes into the statvfs branch.drh2011-12-23
|\ | | | | FossilOrigin-Name: d5e36327c12f264429eb079bddbb71a310f76389
| * Add interfaces sqlite3_uri_boolean() and sqlite3_uri_int64() which aredrh2011-12-23
| | | | | | | | | | | | wrappers around sqlite3_uri_parameter() combined with internal routines for converting strings to booleans and 64-bit integers. FossilOrigin-Name: 83d26b9a9115eadac9e59a33d608bca0ab2519e3
* | Add the ability to enable or disable SQLITE_IOCAP_ZERO_DAMAGE using a URIdrh2011-12-21
| | | | | | | | | | | | | | | | parameter for both unix and windows. Add a file-control to query or disable the ZERO_DAMAGE setting. Add the -uri option to the "sqlite3" TCL command in tclsqlite3.c. Allow the sqlite3_uri_parameter() interface to accept a NULL pointer for its first parameter. FossilOrigin-Name: c83627b73285f883719845c1b9fe85f378f28dd2
* | Add SQLITE_IOCAP_ZERO_DAMAGE and enable it for both unix and windows. Usedrh2011-12-17
| | | | | | | | | | | | | | this device characteristic to reduce the required work in journaling. A side effect is that this changes the default page exists back to 1024 even with the use of statvfs(). FossilOrigin-Name: a0be6ea464695fdf1eaf2b7cf0652778617814f2
* | Fix a bad #endif with the previous check-in on this branch.drh2011-12-17
| | | | | | FossilOrigin-Name: 915713ffe4d02ddf1d09a82e39a47b88d3d95ea0
* | Add support for statvfs() in os_unix.c, for determining the sector size.drh2011-12-17
|/ | | | | This causes many TCL test failures under Linux. FossilOrigin-Name: e0d44450b9bec8ea7b057c1ad0a2088cd3f1f221
* Merge the nx-devkit changes into trunk. This includes the newdrh2011-12-14
|\ | | | | | | | | SQLITE_FCNTL_VFSNAME file-control. FossilOrigin-Name: da118e02c0576ce16f7a26663f59413316223d55
| * Add a file-control that will discover the name of the bottom-level VFS anddrh2011-12-14
| | | | | | | | | | all the shims in between. FossilOrigin-Name: cdbfb553af02d10767a905489d9dfc57fc6be54e
| * Backport a minimal set of changes needed to get 8+3 filenames and thedrh2011-12-12
| | | | | | | | | | multiplexor shim playing well together. FossilOrigin-Name: c4e2ce486217c96373836bfe641f46abf891799a
* | Fix os_unix.c so that, unless 8.3 filenames are actually in use, journal and ↵dan2011-12-12
| | | | | | | | | | wal file permissions are assigned correctly even if SQLITE_ENABLE_8_3_NAMES is defined. FossilOrigin-Name: 169e12295cca701443746b1209bd6a7714fd8988
* | Fix harmless compiler warnings.drh2011-12-11
|/ | | FossilOrigin-Name: 1e6a698aab9270637d3ea00fd6b0e94f4172e875
* Make the unix VFS tolerant of read() calls that return less than thedrh2011-11-07
| | | | | requested number of bytes. FossilOrigin-Name: a210695abcfa5cb04279edfd04824d881b7c4ada
* Use mkdir() and rmdir() rather than open() and unlink() to create the lockdrh2011-11-04
| | | | | | files with the unix-dotlock VFS. The change is backwards compatible and, we are told, works better on some network filesystems. FossilOrigin-Name: e2f08426d7a84a2ac6148f485b7af377201a175b
* Fix an issue with finding the access permissions of journal files whendrh2011-10-20
| | | | | 8+3 filenames are in use. FossilOrigin-Name: 2b35c5144ddcc2ed6d0fcaa8c0ba5d20b9487be7
* Added the tool/warnings-clang.sh script. Changes so that there are nodrh2011-10-15
| | | | | | warnings with either gcc or clang even including FTS4 and RTREE and both with and without SQLITE_THREADSAFE=0. FossilOrigin-Name: 39408702a989f907261c298bf0947f3e68bd10fe
* Add assert() statements and eliminate needless variable assignments in orderdrh2011-10-14
| | | | | | | to get the clang scan-build utility to report zero problems against the SQLite core. Clang's static analysis did find one real problem - but it was in the command-line shell, not in the SQLite core. FossilOrigin-Name: 60fee9574b0125705787e33c16f116cf188c8323
* Fix a harmless compiler warning introduced into os_unix.c by one of the drh2011-10-13
| | | | | recent changes. FossilOrigin-Name: 4bf4d5ebfbf5d157a8bf3a3817e2ce350f25af0e
* The date/time functions return NULL if the xCurrentTime ordrh2011-10-12
| | | | | | xCurrentTimeInt64 VFS methods fail. Ticket [0b803bff856c644c] FossilOrigin-Name: c96651dd6ceadd51c9e1f4d942177d3c128c47b4
* Change the behavior of the readonly_shm=1 query parameter so that it neverdrh2011-10-11
| | | | | attempts to open the -shm file read/write. FossilOrigin-Name: f1364004836078378e4005ab3eb9c0a04e3d4ce7
* When finding the appropriate file permissions for journal files withdrh2011-10-05
| | | | | | SQLITE_ENABLE_8_3_NAMES, ignore "-" characters in the name of the containing directory. FossilOrigin-Name: 328cc1867ffbbf1c953dfd843649f5f209c8e6ec
* Formerly, we enabled fdatasync() on linux only. But now we learn thatdrh2011-08-31
| | | | | | fdatasync() is not supported on Android. So we disable fdatasync() on Linux too. It can be reenabled at compile-time for those who really need it. FossilOrigin-Name: 70b5b309568ac55565558d5456aca1e431cfd26b
* Always include the unixShm.id field, even when not debugging.drh2011-08-31
| | | FossilOrigin-Name: 07803476206b8cde60ccc320b9ccdc0d48a41d65
* Make sure SQLITE_FCNTL_SIZE_HINT a no-op if the chunk size is not greater ↵mistachkin2011-08-30
| | | | | than zero. FossilOrigin-Name: 88b763e8d73fafa1538b08af28b1c8b723b39c61
* Back out [05c9832e5f6eb] since it was causing a performance regression withdrh2011-08-29
|\ | | | | | | | | no obvious benefit. FossilOrigin-Name: 639cc85a911454bffdcccb33f2976c683953ae64
* | Fix several harmless compiler warnings and a documentation bug.drh2011-08-26
| | | | | | FossilOrigin-Name: 5454d0fe227b7c1f0e7715b6c08f97019628fc4c
* | Fix the SQLITE_DISABLE_DIRSYNC compile time option.dan2011-08-25
| | | | | | FossilOrigin-Name: 6deb3ea1f080324ea23ebdc9008753fbbc4063e2
* | If the application-defined openDirectory() function returns SQLITE_CANTOPEN,drh2011-08-23
| | | | | | | | | | | | then silently ignore the error. This allows the chromium sandbox to disallow opening of directories without causing errors. FossilOrigin-Name: 880b51150aaed804005f5062b4dd2fa0ffafa147
* | Change to test instrumentation of os_unix.c: Regard IO errors that occur ↵dan2011-08-23
| | | | | | | | | | within SQLITE_FCNTL_SIZE_HINT requests as benign. FossilOrigin-Name: ca47da2a1f6e6d221470e7f02b129fc21c288d7b
* | When retrying a write() after an EINTR error on unix, be sure to alsodrh2011-08-19
| | | | | | | | | | rerun the previous lseek(). Ticket [e59bdf6116036a] FossilOrigin-Name: 21452f3ae6b5882b03c7cc41e661c7b8144cc3df
* | Make the openDirectory routine in os_unix.c overrideable so that it candrh2011-08-10
| | | | | | | | | | be turned into a harmless no-op for the chromium sandbox. FossilOrigin-Name: 6b236069e1ea3c99ff0a007a790d4baebda70b13
* | In os_unix.c, do not open the directory containing the database file whendrh2011-08-08
| | | | | | | | | | | | | | | | the database file is opened. Instead, wait until time to fsync() the directory. And do not report an error if the open fails, since some systems (Ex: AIX and a chromium sandbox) are unable to open and fsync directories. FossilOrigin-Name: 713b1b7dc1296e9cee42aeaad8c85528155f721d
* | Allow the unlink() system call to be overridden in os_unix.c.drh2011-08-08
| | | | | | FossilOrigin-Name: 8d1b5c3ac027ac00d57a250aad45230a09645617
* | Merge changes for the new sqlite3_file_control() that will cause the -wal ↵mistachkin2011-07-28
|\ \ | | | | | | | | | | | | and -shm files to persist after the last database connection closes. FossilOrigin-Name: 1b56677bdfb102d070a2057a65ba424fec81131d
| * | Test cases added. Fix the query mode.drh2011-07-26
| | | | | | | | | FossilOrigin-Name: a9d8794ae949df570466a84836882bc8bed95c7c