aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAge
...
* Changes to allow a clean compile with no floating-point instructionsdrh2009-06-15
| | | | | generated when SQLITE_OMIT_FLOATING_POINT is used. (CVS 6763) FossilOrigin-Name: 1591b8322babebc45df3b799cc5e457288f28594
* Fix a warning in the osx-specific part of os_unix.c. Ticket #3847. (CVS 6620)danielk19772009-05-08
| | | FossilOrigin-Name: 254ca3273cfbd833de82296b4859e1ec5535e8be
* Compile fixes and improvements for vxwork: fixed deadlock in semClose,chw2009-04-07
| | | | | detect if fcntl is usable, fall back to named semaphores if not. (CVS 6460) FossilOrigin-Name: efd0682b7e78acc4242cf257fc246350fc29b5c8
* It is OK for a unix file descriptor to be zero. It just can't be negative.drh2009-04-07
| | | | | Adjust an assert accordingly. Ticket #3781. (CVS 6457) FossilOrigin-Name: 47aa7eb0e047e30bbf09cb08c1e48c61f8d9861c
* Another change related to (6401) and (6402): When an attempt to unlock a ↵danielk19772009-03-30
| | | | | | | file fails in os_unix.c, close all files held open waiting for the unlock event anyway. This prevents a file-descriptor leak when testing IO errors. (CVS 6406) FossilOrigin-Name: 50fbcdea045f7d4266d9afa721616c720564aa93
* Previous commit ((6401)) did not quite fix the problem. This should workdrh2009-03-28
| | | | | better. (CVS 6402) FossilOrigin-Name: 2e7d3cc9f04de1fe7ef95cd5736dbc409c209cef
* In the unix-backend, when simulating an I/O error on an unlock operation,drh2009-03-28
| | | | | still mark the connection as unlocked to avoid a future assert(). (CVS 6401) FossilOrigin-Name: fb35cff855e17771caee2a992e7b2b4105b94862
* Use fdatasync() only on linux, unless -Dfdatasync=fdatasync is set atdrh2009-03-25
| | | | | compilation time. (CVS 6383) FossilOrigin-Name: cbf2ca4cc41f1f710635b863db6e98074bd5e8bc
* Rig the unix backend to use fdatasync() by default, without having to set thedrh2009-03-21
| | | | | | HAVE_FDATASYNC macro. Systems that do not support fdatasync() can be compiled using -Dfdatasync=fsync. (CVS 6368) FossilOrigin-Name: a331562727be465874a66c2c1d15ee070f96f7e0
* On unix, always use fdatasync() instead of fsync() when available, even ifdrh2009-03-21
| | | | | | the file size changes, since (we are told) fdatasync() will automatically flush the inode when the file size changes. (CVS 6367) FossilOrigin-Name: 0d6b11bcf67f86e5554806869d32338e5831833e
* Suppress some compiler warnings (where possible). Ticket #3696. (CVS 6331)drh2009-03-01
| | | FossilOrigin-Name: a2373e5409e4e59903f315a4446db8cb6ba000cc
* Add assert() statements to os_unix.c which fire if there is a read ordrh2009-02-09
| | | | | write for the locking region of a database file. (CVS 6270) FossilOrigin-Name: 93e792ffa88ba2e8422d041f36b70d9b2e220da2
* Ignore the return structure of and F_GETLK fcntl() call on djgpp. Fix for ↵danielk19772009-02-09
| | | | | #3642. (CVS 6268) FossilOrigin-Name: 8227af3463ded1c52d0a16c63b8dbc516eab57f0
* Check at the write() call to work around the msdos bug in OSX actuallydrh2009-02-03
| | | | | | succeeds and throw an error if it does not. #ifdef out the work-around for all platforms other than OSX. Ticket #3633. (CVS 6237) FossilOrigin-Name: b054b569172c53f4e185e4a64f41d08784aa0f8b
* Remove a harmless UMR that occurs inside some debugging code. (CVS 6190)drh2009-01-16
| | | FossilOrigin-Name: 191c399fc6354b35477ec21f685377e2af26f49b
* Avoid using ENOTSUP on systems that do not define that symbol.drh2009-01-15
| | | | | Ticket #3512. (CVS 6182) FossilOrigin-Name: fcb6c677124102558f7a7a22bc3569b664424a4c
* Add asserts to detect if a transaction commits without first incrementingdrh2009-01-14
| | | | | | the transaction counter. These asserts are intended to prevent future problems similar to ticket #3584. (CVS 6179) FossilOrigin-Name: b676ccfd9019e65b52251332d94de1b3018ec823
* Coverage improvements in pragma.c. Change the __DARWIN__ macro to __APPLE__,drh2009-01-09
| | | | | which is available by default on Leopard. (CVS 6153) FossilOrigin-Name: 64c56226b91e57883c8059f65330318e53376b8a
* Allow database files to be created in the root directory on unix.drh2009-01-08
| | | | | Ticket #3570. (CVS 6141) FossilOrigin-Name: 81014334ad57e380e21c47ad6eebe9f16b4ad24c
* Fix a variable type to prevent a warning in the proxy-locking code. (CVS 6051)danielk19772008-12-22
| | | FossilOrigin-Name: d9595b961800a13c141bebdb8c0a67377f30efad
* Fix the TCL test harness so that it compiles and runs on OSX withdrh2008-12-11
| | | | | SQLITE_ENABLE_LOCKING_STYLE. (CVS 6017) FossilOrigin-Name: 561d5de16ec07546a3bb691f308fb2495a0d0a43
* Never use strlen(). Use our own internal sqlite3Strlen30() which isdrh2008-12-10
| | | | | | guaranteed to never overflow an integer. Additional explicit casts to avoid nuisance warning messages. (CVS 6007) FossilOrigin-Name: c872d554930ecf221ac2be5f886d5d67bb35288c
* The amalgamation now compiles cleanly on GCC with optionsdrh2008-12-08
| | | | | -pedantic-errors -Wno-long-long. (CVS 5991) FossilOrigin-Name: 73c7302c5f76a2f61ecd75f8bda69bb500d3119c
* Make sure dot-lock is fully enabled when SQLITE_ENABLE_LOCKING_STYLE isdrh2008-12-04
| | | | | | disabled. Fix compiler warnings when SQLITE_ENABLE_LOCKING_STYLE is disabled. (CVS 5976) FossilOrigin-Name: 4697249fcc6041ba7d2fb89589c855a8bec71eb2
* Fix a missing forward declaration that is needed whendrh2008-12-03
| | | | | SQLITE_PREFER_PROXY_LOCKING is defined. (CVS 5972) FossilOrigin-Name: 24235300b3f64f0396e1016afbe31aec9ea69b62
* Reorganize the proxy-locking method in os_unix.c. Additional cleanup. (CVS ↵drh2008-12-03
| | | | | 5971) FossilOrigin-Name: 31f6090e22b54d657afc8c23171d000d47850205
* Make os_unix compile with SQLITE_ENABLE_PROXY_LOCKING (CVS 5970)aswift2008-12-03
| | | FossilOrigin-Name: 3efedac6aa4f544d40c2f782109d4e1795e449a0
* Continue with the cleanup of os_unix.c. (CVS 5969)drh2008-12-03
| | | FossilOrigin-Name: 215d36ea89078036fb66b5154f054613b735dab3
* Continuing to refactor os_unix.c. This is an incremental check-in. (CVS 5967)drh2008-11-29
| | | FossilOrigin-Name: c13df0311ef4f6a510f42105293f7c53c323fda8
* Continuing work on the os_unix.c refactoring. Removed all of thedrh2008-11-29
| | | | | | LOCKING_STYLE_* constants and instead pass around pointers to the underlying sqlite3_io_method objects. (CVS 5966) FossilOrigin-Name: 1017d2fb1935a278ef442030bf7bdf5e112c566a
* First step in refactoring os_unix.c. This is work in progress. The codedrh2008-11-28
| | | | | | compiles and runs on Linux and MacOSX (as long as SQLITE_ENABLE_LOCKING_STYLE is turned off), but there are a few test failures. (CVS 5965) FossilOrigin-Name: 7825cd63e5cb390a9c2c05957ebc9b189612f04a
* Move the definition of function transferOwnership() in os_unix.c to below ↵danielk19772008-11-25
| | | | | the static functions it calls. (CVS 5954) FossilOrigin-Name: 622cb59791ab9f61c2e5131cb6ece5e75cdc9fae
* Factor out and simplify the canonical pathname logic in the VxWorks OSdrh2008-11-21
| | | | | interface. (CVS 5943) FossilOrigin-Name: adb0aafaa6b1ea06541f653a2559f099fb1b2795
* Work toward cleaning up and refactoring the os_unix.c VFS module.drh2008-11-21
| | | | | | Change IS_VXWORKS to OS_VXWORKS. The VxWorks implementation can now be built and tested on Linux using -DOS_VXWORKS=1 -Dsem_t=int -DPATH_MAX=512 -DNO_GETTOD=1. (CVS 5942) FossilOrigin-Name: 30a0132a83ce95d45f106fce1439e7509fdc64d1
* Fixes to the proxy locking so that os_unix.c compiles on linux with proxydrh2008-11-21
| | | | | locking omitted. (CVS 5935) FossilOrigin-Name: 6f910b7036817f4bb4de807bf48938d20ab033cc
* Added support for proxy file locking styleaswift2008-11-21
| | | | | | | | Added pragma support for controlling proxy file locking Added file control access to last errno and proxy locking Added support for TMPDIR environment variable Extended unit tests to cover new proxy locking pragmas and file control features (CVS 5934) FossilOrigin-Name: b9bc36d3d5e35821ef69c0881a84c0afed253c9e
* Fix some compiler warnings that show up when building the amalgamation only. ↵danielk19772008-11-19
| | | | | (CVS 5927) FossilOrigin-Name: d1abe8a1c9a990b02c71d6c249436381c9fde443
* Fix a few more compiler warnings. (CVS 5926)danielk19772008-11-19
| | | FossilOrigin-Name: 70b2f6839ca97dfc08f72875283f5c75c8fcf0cc
* In os_unix.c, use "IS_VXWORKS" instead of "defined(__RTP__) || ↵danielk19772008-11-19
| | | | | defined(_WRS_KERNEL)". Purely because it's easier on the eyes. (CVS 5925) FossilOrigin-Name: 92c91a6cd7bcbe79206bdf7708fe9049a7b7fdd6
* Eliminate some of the "unused parameter" warnings in os_unix.c. (CVS 5923)danielk19772008-11-19
| | | FossilOrigin-Name: 2f5aaad90b7e3bbb31866c43db3e24a1be26f03b
* Changes to avoid "unused parameter" compiler warnings. (CVS 5921)danielk19772008-11-19
| | | FossilOrigin-Name: 88134322c36b41304aaeef99c39b4ef5b495ca3b
* Modifications to avoid unsigned/signed comparisons in various files. (CVS 5914)danielk19772008-11-17
| | | FossilOrigin-Name: 8009220c36635dd9b6efea7dc13281ca9625c40a
* Added support for vxworks >= 6.4; RTP mode tested, kernel mode untested. ↵chw2008-11-17
| | | | | (CVS 5910) FossilOrigin-Name: f45a1493636a5ee474dd6c0b5d286be2249b05aa
* Change the way threadsOverrideEachOthersLocks() works to avoid trying to ↵danielk19772008-11-11
| | | | | write-lock a (potentially) read-only files. Also, assume that on non-linux systems threads do override each others locks. Ticket #3472. (CVS 5883) FossilOrigin-Name: 8ecae0943b06102fe22133db0dcaf58ecbd39545
* Add documentation to make it clear that short reads from xRead in the VFSdrh2008-11-07
| | | | | must be zero-filled. (CVS 5867) FossilOrigin-Name: fb311d6f4098a08f05b3fac9a2a7e2a53c38bb5f
* Fix an error in (5826). (CVS 5828)danielk19772008-10-16
| | | FossilOrigin-Name: 8065a92f705dfa04863ba4a828f5bd2803901be8
* Do not open and sync the directory in unixDelete() if the ↵danielk19772008-10-15
| | | | | SQLITE_DISABLE_DIRSYNC option is defined. (CVS 5826) FossilOrigin-Name: 8ef141644edc5182785c6a554222c2ffbe92fef5
* Fix the xRandomness() method on the unix VFS to return the number of bytesdrh2008-10-14
| | | | | of randomness obtained. (CVS 5821) FossilOrigin-Name: b7687e2f2dfa5b0a01ba87ae0bf13684cda50499
* Fix some function declarations (change "int foo()" to "int foo(void)"). ↵danielk19772008-09-24
| | | | | Ticket #3399. (CVS 5740) FossilOrigin-Name: 0fb98c35353d8c0a8d669bbe45fe84e3a5060621
* Enable the LOCKING_STYLE extensions by default on a Mac. Leave themdrh2008-09-23
| | | | | disabled on all other posix platforms. (CVS 5737) FossilOrigin-Name: bae1d5b16948705b7dec7b139e3586b4b510cbfa