aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAge
* 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
| * | Prototype change for a new sqlite3_file_control() that will cause thedrh2011-07-26
| | | | | | | | | | | | | | | -wal and -shm files to persist after the last database connection closes. FossilOrigin-Name: e34c553bf04761e86f3bd72f91439c05886caa5c
* | | Use osStat() instead of stat() consistently in os_unix.cdrh2011-07-28
|/ / | | | | FossilOrigin-Name: 9109128cb5640d687251dfbefa2fd998063cd9fb
* / Enable the SQLITE_FCNTL_SIZE_HINT on unix even if SQLITE_FCNTL_CHUNK_SIZEdrh2011-07-25
|/ | | | | has not been set. FossilOrigin-Name: 05c9832e5f6eb705f1dce4e65cf4e2d56512ff6b
* In os_unix.c, check if the ESTALE macro is defined before using it.dan2011-07-15
| | | FossilOrigin-Name: 87017410f2fc3f2ae15ef06714563ba9ad4350c7
* Fix some harmless compiler warnings that were occurring with THREADSAFE=0.drh2011-06-24
| | | FossilOrigin-Name: 9b191bb4c7c1e1b12b188c0b3eee1f8f587887c8
* Rework the autoconf script to better deal with utime() and dlopen().drh2011-06-20
| | | FossilOrigin-Name: f69ed286ffb3f62f5cb5c1f7df55fa4d2468b472
* Make use of the sqlite3GetBoolean() interface for more robust processingdrh2011-06-01
| | | | | of the readonly_shm query parameter inside of unixShmMap(). FossilOrigin-Name: 1f930d7e04cd4a5ff3d91a0e9f1b62114f1cebd2
* Simplify the wal-readonly branch so that it does not require changes todrh2011-06-01
| | | | | anything other than os_unix.c and wal.c and a couple of new error codes. FossilOrigin-Name: d6b4709de4d1f8af001f58938247f00a652a616e
* Merge the latest trunk changes into the wal-readonly branch.drh2011-05-31
|\ | | | | FossilOrigin-Name: 2c6b5a28e3f6b7cb96b944d0a254f3707885f1ce
| * Add the ability to limit filenames to 8+3 using thedrh2011-05-17
| | | | | | | | | | | | SQLITE_ENABLE_8_3_NAMES compile-time option together with a URI parameter of "8_3_names=1". FossilOrigin-Name: 96d609856025919571f781207dfa6a24b1732e8d
* | Add experimental support for read-only connections to WAL databases.dan2011-05-10
|/ | | FossilOrigin-Name: bb59f9862da45d25fb51d7821130854828c91c98
* Invoke the unix open() system call through a wrapper to avoid problems drh2011-04-25
| | | | | resulting from differing declarations to that function in various systems. FossilOrigin-Name: 4c7ff4dd352276e9c01cc536e188cbcd69396952
* Change the prototype for the open() system call to agree with Posix. Thoughdrh2011-04-17
| | | | | | a faulty function prototype in a pointer cast is a seemingly innocuous error, the correct prototype is necessary for pthreads to work correctly on NetBSD. FossilOrigin-Name: 3e135748f1efacb52b414b3ac3f4ae2c08bcd8fb
* Fix #ifs involving SQLITE_ENABLE_LOCKING_STYLE so that they check the value ofdrh2011-04-15
| | | | | that macro and not whether it is defined. FossilOrigin-Name: 8775f159c129e1ee36a1a13c362184713376bd40
* Make sure the unix backend returns SQLITE_FULL if write() fails with andrh2011-04-15
| | | | | ENOSPC error code. FossilOrigin-Name: 721e3c16b389a43f5d7c47a8fd0294473a39dad2