aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
Commit message (Collapse)AuthorAge
...
* Fix full_fsync() related functionality broken as part of the migration to ↵danielk19772007-08-20
| | | | | sqlite3_vfs. (CVS 4243) FossilOrigin-Name: cb24cda179c2b526c5ac48be75e372d2b9db808c
* Further progress on migration to sqlite3_vfs. (CVS 4242)danielk19772007-08-18
| | | FossilOrigin-Name: a258c4ec240f96bccfe493e98d0827ec7dd12e67
* Remove some old OsFile and IoMethod related code. Add the sqlite3OsLockState ↵danielk19772007-08-17
| | | | | function. (CVS 4241) FossilOrigin-Name: 08a0f48028794abbeae1b4852652062b38d37d88
* Begin migration to using sqlite3_vfs interface. (CVS 4240)danielk19772007-08-17
| | | FossilOrigin-Name: af3e3c7acdc67013dd733effebe981620d922dd1
* Remove the thread specific data subsystem from the unix build. Removedrh2007-08-16
| | | | | legacy cruft from sqliteInt.h. Use the new mutex subsystem in the PRNG. (CVS 4237) FossilOrigin-Name: 3d60c14a32955b69e714a73372924d421899f83b
* More work on refactoring of malloc() interfaces. There are still many ↵danielk19772007-08-16
| | | | | errors. (CVS 4233) FossilOrigin-Name: 77b1671351fe94b0ebc126a63140643deae2aa64
* Half-way through a major refactoring of the memory allocation.drh2007-08-16
| | | | | | I have not even attempted to compile so I am certain there are countless errors. (CVS 4231) FossilOrigin-Name: deb7ecd65f7b83eaf0ba610eeef3b0ede61db1c3
* Modify the crash-recovery test code in test6.c for 3.5. Also change some ↵danielk19772007-08-15
| | | | | other code to use the new sqlite3_io_methods interface. Lots of things are broken now. (CVS 4228) FossilOrigin-Name: af9503daf3f7703fcddad754bc1dc9e179830b6e
* Remove all tabs from source code files. Ticket #2556. (CVS 4198)drh2007-08-07
| | | FossilOrigin-Name: 7550dd1d5980a399fbb06b4ed69216700f879a0b
* Set FD_CLOEXEC on all open files under Unix. Ticket #2475. (CVS 4146)drh2007-06-29
| | | FossilOrigin-Name: f1e5fed8eb0fb92bd0f040666c017850afe3cf9f
* Cast the 2nd parameter of ftruncate to off_t to work around bugs indrh2007-06-19
| | | | | some unix implementations. Ticket #2425. (CVS 4089) FossilOrigin-Name: 0b20a69609c64af922bedab381f7d075e9da4fc5
* Use C-sylte comments exclusively, never C++ comments. Ticket #2406. (CVS 4052)drh2007-06-08
| | | FossilOrigin-Name: 8f5b789fea23d76128c10b37158de2525a54ce20
* Eliminate all uses of sprintf() and strcpy(). These were not beingdrh2007-05-04
| | | | | | misused. But getting rid of them removes a library dependency. And it avoids warnings from the OpenBSD compiler. Ticket #2336. (CVS 3916) FossilOrigin-Name: ba4845b32bdf38e623c4f7246e6e327715bbba4b
* Additional coverage testing. (CVS 3823)drh2007-04-06
| | | FossilOrigin-Name: 26b2e1aede3f776134b2d6e941d17a907843e650
* Do not use the second parameter to gettimeofday() on unix. Pass it a NULL. ↵drh2007-04-02
| | | | | (CVS 3804) FossilOrigin-Name: 96b678818c9a536b77f10b25256facf4bff1ff65
* Fix some warnings about unused and uninitialized variables. (CVS 3788)drh2007-04-01
| | | FossilOrigin-Name: 18aec1ddfb08b74f0ef9cf1215eac7af71449db3
* Make unix builds threadsafe by default. (CVS 3787)drh2007-04-01
| | | FossilOrigin-Name: ddfc3b2df0b37be66fc55bb216cdcb6ba67aa7fd
* Move the sqlite3_temp_directory global variable out of the OS porting layerdrh2007-03-30
| | | | | | and into main.c so that it is more accessible to non-standard OS porting layers. (CVS 3759) FossilOrigin-Name: 23653f7aab6609f69948a7366bef9ebd0fd4d0b1
* Assume any return code from fcntl() other than -1 is success. Formerly wedrh2007-03-29
| | | | | only assumed that 0 was success. Ticket #2173. (CVS 3754) FossilOrigin-Name: 8d0073c0e8408558dae39f789ac3fa2622b52365
* Change the name of PAGER_SECTOR_SIZE to SQLITE_DEFAULT_SECTOR_SIZE. Makedrh2007-03-29
| | | | | the new OS-layer interface routine for finding sector size optional. (CVS 3750) FossilOrigin-Name: 0fb9af1d6e20bf25511c6d2097937cc11137776e
* Test handling of IO errors that occur in OsDelete() or OsTruncate() ↵danielk19772007-03-27
| | | | | operations. Also use an anonymous file for temporary storage during a VACUUM. (CVS 3729) FossilOrigin-Name: b24a6e7b024c8b9a0b6fd15bd8f247e458781ca2
* Modify sources to that they can be combined into a single sqlite3.c sourcedrh2007-03-26
| | | | | file. Eliminate all type-pruned pointer warnings. (CVS 3722) FossilOrigin-Name: 0b832e218ec12b0eb559e407d80aba6709e2ea85
* Add a comment to the OsSectorSize() function. (CVS 3710)danielk19772007-03-23
| | | FossilOrigin-Name: 0fd9983a98d8d61654f252f1708a4d7232a96b53
* In os_unix.c, make a distinction between pread() and pread64(). Add a newdrh2007-03-22
| | | | | compile-time macro USE_PREAD64 to select the latter. (CVS 3709) FossilOrigin-Name: 177cd92910d01c97eb3133a59fad417edbb1aa92
* Add new OS file method to return the sector-size of the underlying storage: ↵danielk19772007-03-19
| | | | | sqlite3OsSectorSize() (CVS 3700) FossilOrigin-Name: 5752d84d374205e011d49b0221d6237967fe0743
* Enhanced temp-file security under unix. There are no known attacks againstdrh2007-03-15
| | | | | prior versions - this check-in is just an added precaution. (CVS 3687) FossilOrigin-Name: 5af61402f65bddc4040a20470f267c9404cba631
* Improvements to OS layer tracing on the unix backend. (CVS 3664)drh2007-02-27
| | | FossilOrigin-Name: 3ad96dbe09b99bd5f623de0de3072a25e9e2bc17
* Check the return value of lseek() in os_unix.c to make sure it really ↵drh2007-02-06
| | | | | worked. (CVS 3628) FossilOrigin-Name: e4408dd1fd32e6c5057cce0fdfa70eb2d9bd2531
* Fixed incorrect typecast for flock structure ptr in fcntl() call in ↵aswift2007-01-31
| | | | | | | sqlite3TestLockingStyle() Restored previous fullfsync behavior, try fsync() if fcntl(fd, F_FULLFSYNC, 0) returns an error. (CVS 3621) FossilOrigin-Name: f044c5f49f116ede8ab2d5ab43caa5ca9dd54ffe
* Additional changes in the pager and os interface layers to fix problems thatdrh2007-01-03
| | | | | might be contributing to recently observed database corruption. (CVS 3549) FossilOrigin-Name: a593d5743eab12c0f93a7bc436f0d69dfab0c387
* Move the shared-library loading routines into the OS portability layer,drh2006-12-21
| | | | | | thus enabling the os_win.c code to handle the character encoding confusion of win95/nt/ce. Ticket #2023. (CVS 3541) FossilOrigin-Name: a1bcc6de578992b28924c1cf974ea58251454e2d
* The uninitialized file descriptor from the unixFile structure is passed to ↵aswift2006-11-11
| | | | | sqlite3DetectLockingStyle in allocateUnixFile rather than the file descriptor passed in. This was causing the locking detection on NFS file systems to behave somewhat randomly and the result was locks were not respected and data loss could occur. (CVS 3508) FossilOrigin-Name: b9dd16ef3df0785d8d0eea9a6f2ad580a7289834
* Use the difference between the SQLITE_IOERR_SHORT_READ and SQLITE_IOERR_READdrh2006-11-06
| | | | | | returns from sqlite3OsRead() to make decisions about what to do with the error. (CVS 3503) FossilOrigin-Name: 6324ea811eec1200cee89e6f377368eaf2fcda77
* Bug fix: named local variable lockStyle as lockingStyle in ↵aswift2006-10-11
| | | | | SQLITE_ENABLE_LOCKING_STYLE block in allocateUnixFile (CVS 3473) FossilOrigin-Name: aa0b96c3dfa1d8008cd944281c227604b2ee16d1
* Add the OS-X locking style patches to os_unix.c. Disabled by default. (CVS ↵drh2006-10-03
| | | | | 3459) FossilOrigin-Name: f4103dea5e1a87adccccca715946e174d1cc7450
* Add support for extended result codes - additional result informationdrh2006-09-15
| | | | | | | carried in the higher bits of the integer return codes. This must be enabled using the sqlite3_extended_result_code() API. Only a few extra result codes are currently defined. (CVS 3422) FossilOrigin-Name: ba579ddc4361fc6e8ea66f9385770d70dfe94751
* Enhanced I/O error simulation. (CVS 3418)drh2006-09-14
| | | FossilOrigin-Name: 86931854fc5a63571719639d9a23b1d6614a6153
* Remove a superfluous call to access() in the unix driver. Error spotteddrh2006-04-19
| | | | | by Coverity. (CVS 3175) FossilOrigin-Name: 4f195aa1ebef5129e6f912e78b3d5f97b393a06c
* Use the pread()/pwrite() interface on Posix if compiled with -DUSE_PREAD=1.drh2006-03-23
| | | | | Note that on Linux this is slower and does not work for large files. (CVS 3147) FossilOrigin-Name: 5a24f61981df4d8b696f03372eba2d37228906d9
* Changes so that test_async.c works with memory management turned on. (CVS 3093)danielk19772006-02-14
| | | FossilOrigin-Name: f4150c29df2774b4422d4296d913cdbcee62c859
* Disable the /./ and /../ collapser logic in sqlite3OsFullPathname under ↵drh2006-02-13
| | | | | Unix. (CVS 3092) FossilOrigin-Name: 111a426b3e2fae77c9e6c3cd903fd80652b23720
* Add in-process file locking to test_async.c. The unix implementation ofdrh2006-02-13
| | | | | | sqlite3OsFullPathname() now attempts to remove /./ and /../ elements from the path. (CVS 3090) FossilOrigin-Name: 42379c623073eb541d053c2dff9f49087fb290f8
* Fix typo in os_unix.c. (CVS 3082)drh2006-02-11
| | | FossilOrigin-Name: c0e987bcfa899c073d54fbd5a3606c704b8bc3d9
* Add support and documentation for the fullfsync pragma. Also includedrh2006-02-11
| | | | | some other unrelated documentation updates. (CVS 3080) FossilOrigin-Name: f2069d0bf3161591535e68b7389792e9cb7fe043
* More comments on the unix locking code. Ticket #1672. (CVS 3075)drh2006-02-10
| | | FossilOrigin-Name: 4b6f5688843ebe39f6bd3e863666a44d486fbe0f
* Fix deadlock problem in the unix mutex. Ticket #1672. (CVS 3071)drh2006-02-10
| | | FossilOrigin-Name: a6c30be214bb575f9ecfa299b7a597d21e3d3aca
* Ignore errors when when calling fsync() on a directory. Ticket #1657. (CVS ↵drh2006-02-09
| | | | | 3068) FossilOrigin-Name: d54d3b82c468b7e6dd39aac6aac56b26b3918c37
* Add the SQLITE_THREADS_OVERRIDE_LOCKS compile-time option that disablesdrh2006-01-31
| | | | | the run-time test to see if threads can override each others locks on unix. (CVS 3050) FossilOrigin-Name: e83a19e8cb6d721b02502925b362f2e86b2de742
* Fix a couple of (harmless) intel compiler warnings. (CVS 3034)danielk19772006-01-27
| | | FossilOrigin-Name: 2e23231f0c10b2bba9e08ea47859e2c0ffa84c76
* Fix uninitialized variable in os_unix.c. (CVS 3006)drh2006-01-23
| | | FossilOrigin-Name: 892e644d20b9d132cf29242a9bca0116ebe6968f