drh
e2258a2076
Various #ifdef enhancements for improved VxWorks support.
...
FossilOrigin-Name: 75cd41ff179e29c5d45f9d7fed784bc339e0d7a0
2016-01-12 00:37:55 +00:00
drh
a829992969
Typo fix in the previous commit.
...
FossilOrigin-Name: 52c166039831cc8423e2252019ef64a21b9d7c2a
2016-01-08 22:31:00 +00:00
drh
24dbeae6f5
More #ifdef fixes for the unix VFS.
...
FossilOrigin-Name: 122c111e360761de8166e16ca151cb7260ee9bf8
2016-01-08 22:18:00 +00:00
drh
e4a08f9e39
Fix a problem with #ifdefs on the system calls in the unix VFS that causes
...
problems when compiling with SQLITE_OMIT_WAL.
FossilOrigin-Name: ceceea4c5ee242b20ebf216593c15c11ce2c369a
2016-01-08 19:17:30 +00:00
drh
86151e8905
Avoid unnecessary work inside of verifyDbFile() in the unix VFS.
...
FossilOrigin-Name: f3c0579e931799088e9a83757e25bae229120697
2015-12-08 14:37:16 +00:00
drh
dc27851e21
Fix the openDirectory() routine in the unix VFS so that it works for databases
...
located in the root of the filesystem and for database files that have no
pathname at all.
FossilOrigin-Name: e7ae120d04cffafd9bc2b4ecd68571c17e05ed72
2015-12-07 18:18:33 +00:00
drh
90e5dda217
Cleaner code and additional comments on the handling of 8+3 filenames when
...
trying to find the name of a database file based on its journal filename,
in the unix VFS.
FossilOrigin-Name: 9e489a71f2aeb1f13f9ca6f106b9144d07ca25aa
2015-12-03 20:42:28 +00:00
drh
af19f173d3
Fix an incorrect, though harmless, assert() in the unix VFS.
...
FossilOrigin-Name: 4692ae84f93530e27d7c106a60236355e176b7fd
2015-12-02 17:40:13 +00:00
drh
333e6ca9a5
Remove an unreachable branch from the unixMapfile() routine of the unix VFS.
...
FossilOrigin-Name: b50f67bc46e65fe4e51667d48b4add58706a9443
2015-12-02 15:44:39 +00:00
drh
f3b1ed0fc2
Minor simplifications to the unix VFS.
...
FossilOrigin-Name: 2f13c16b45685ec6850cbd9da79e8198bad6a491
2015-12-02 13:11:03 +00:00
drh
2c8fd12f42
Change the SQLITE_NO_SYNC compile-time option to call fstat() in place of
...
fsync() rather than being a total no-op.
FossilOrigin-Name: f64ea8a052af9790d5e6987cbd5e81d77da6f172
2015-12-02 02:33:36 +00:00
drh
adfa22e118
Fix a (harmless) off-by-one error in the unix VFS logic that fsync()s a
...
directory after deleting a file.
FossilOrigin-Name: 3d02711a709a7e708edb0ea8ca5d17b39dd307f6
2015-12-02 02:08:30 +00:00
drh
50358adfaa
Simplification of the logic used to take the process-wide lock in the
...
unix-excl VFS.
FossilOrigin-Name: 73defd52bb0e3e5db763d3bfbeebc972b645867e
2015-12-02 01:04:33 +00:00
drh
dcfb9652fd
Remove all traces of SQLITE_FCNTL_WAL_BLOCK from the unix VFS - that feature
...
had been disabled for a long time and never actually worked.
FossilOrigin-Name: e1d5320ca089336e26d200305b744b06ce883be4
2015-12-02 00:05:26 +00:00
drh
053378dfa8
Simplification to the posix_fallocate() replacement used for the
...
SQLITE_FCNTL_SIZE_HINT file control in the unix VFS.
FossilOrigin-Name: 74934d3f60ad9f6550297410eada0f288e0123c4
2015-12-01 22:09:42 +00:00
drh
e1818ec740
Simplification to the read and write primatives in the unix VFS.
...
FossilOrigin-Name: 9eefa449792f03c4c149edcbc6b9b7692617994c
2015-12-01 16:21:35 +00:00
drh
025d2f7ad8
Fix a problem in xFullPathname for the unix VFS. The problem was found by
...
Kostya Serebryany using libFuzzer.
FossilOrigin-Name: bb1e2c4df0b81327923f121dd6c002845486a314
2015-11-30 22:22:23 +00:00
drh
40fe8d31f5
The EOVERFLOW errors from fstat() is not possible unless SQLite has been
...
compiled with SQLITE_DISABLE_LFS.
FossilOrigin-Name: 8cfb7a50bb70ba1e021c1d12d31563e98a20d291
2015-11-30 20:36:26 +00:00
drh
a8de1e1c90
Simplifications to the locking logic in the unix-dotfile VFS.
...
FossilOrigin-Name: 583813525888c7e106f3e8cb46c1a507006daee6
2015-11-30 00:05:39 +00:00
drh
b7e50ad555
Improvements to temporary file creation logic in the unix VFS.
...
FossilOrigin-Name: d6e177fd09c83d46adc5b5d36e9a439aa5397450
2015-11-28 21:49:53 +00:00
drh
acb6b28d60
Simplify logic for syncing directories after creating or deleting a file in
...
the unix VFS.
FossilOrigin-Name: eb180b4f04d412dcd0af138e2dd7f62fbb5ac439
2015-11-26 10:37:05 +00:00
drh
5a2d970a1a
Small simplification to the xOpen method in the unix VFS.
...
FossilOrigin-Name: 96e7d638ecdabbf84a152036eb01d408d142839e
2015-11-26 02:21:05 +00:00
drh
970942e4fc
Simplify the temporary filename generator and the time-of-day functions in
...
the unix VFS.
FossilOrigin-Name: 6c5621ce1b1a65913b088ed8be65f9b689260d2c
2015-11-25 23:13:14 +00:00
drh
d260b5b2ce
Make the xAccess method of the unix VFS smaller and faster.
...
FossilOrigin-Name: 191aef986ffc4ef34d813e417e52a4ec820b0300
2015-11-25 18:03:33 +00:00
drh
5337dacbad
Remove unused methods from the unix VFS.
...
FossilOrigin-Name: 228bd15bbb7a1e6e3e0d03832e7f39ba169356a8
2015-11-25 15:15:03 +00:00
drh
91c4defbcf
Simplification of the error code translator in os_unix.c. Code cleanup only.
...
The logic is unchanged.
FossilOrigin-Name: 2a20f793fdf6a2e88b679a7bd4e8ccf2935df049
2015-11-25 14:00:07 +00:00
drh
5a8d190b9e
Remove from os_unix.c pointless logic that tries to prevent a recurrence of
...
a warning message that can only occur once.
FossilOrigin-Name: 20256177072caa4f2b4114038ad1c8f6e26bc562
2015-11-24 16:40:23 +00:00
drh
aaeaa18e2e
Fix a comment typo in the unix VFS. No changes to code.
...
FossilOrigin-Name: 32e138796c66c88e8cbb77aa3a4282a38d1f959a
2015-11-24 15:12:47 +00:00
drh
6226ca2a6d
Make the geteuid() system call overloadable using xSetSystemCall() on the
...
unix VFSes.
FossilOrigin-Name: 6c2ddea65e1871b2fcb4991c5b3e6992993db3ea
2015-11-24 15:06:28 +00:00
drh
62aaa6ca88
Fix over-length source code lines. No logic changes.
...
FossilOrigin-Name: 198d191b2f5ef7d63ac0093c701955c9052fd734
2015-11-21 17:27:42 +00:00
dan
fe33e39ba6
When using mmap mode on unix, use a read-only mapping by default. Write to the database file using write(). Unless SQLITE_MMAP_READWRITE is defined, in which case use a read/write mapping and write into the file using memcpy().
...
FossilOrigin-Name: 67c5d3c646c8198c8637069140aca952b802df25
2015-11-17 20:56:06 +00:00
dan
245fdc60d6
On unix, if a file is opened via a symlink, create, read and write journal and wal files based on the name of the actual db file, not the symlink.
...
FossilOrigin-Name: c7c8105099c0412ac6c605f98987092c10bde57c
2015-10-31 17:58:33 +00:00
drh
22c733da64
Strengthen the implementations of xShmMemoryBarrier on both the unix and
...
windows VFSes, so that they likely work even if SQLITE_THREADSAFE=0 is used.
FossilOrigin-Name: c6ab807b72ddfc1462f61aa91442b6fac04ace8a
2015-09-24 12:40:43 +00:00
drh
02bf8b45b7
Very minor optimizations in the unix VFS.
...
FossilOrigin-Name: 6db3ff45bc15ece29cb2c7a736e5c6d005dde200
2015-09-01 23:51:53 +00:00
mistachkin
93de653844
Add static mutexes for use by the built-in / third-party VFSs and use the built-in VFS mutex where appropriate.
...
FossilOrigin-Name: b202e2a1d73d104d795d2252b1c6f61d65bfb295
2015-07-03 21:38:09 +00:00
drh
6a412b8be9
Fix signed/unsigned comparison compiler warnings. Add the
...
SQLITE_OMIT_RANDOMNESS compile-time option to cause the PRNG to be seeded
identically on every run, for testing purposes.
FossilOrigin-Name: 93ce2bca701efc67aeb517c4d641bde71332e8a0
2015-04-30 12:31:49 +00:00
drh
f3cdcdccbe
Use sqlite3_malloc64() in place of sqlite3_malloc() internally.
...
FossilOrigin-Name: 48f553b05c05373c0af4b9c3a542979db3a2ee19
2015-04-29 16:50:28 +00:00
mistachkin
fb383e9229
Merge updates from trunk. Make OSTRACE changes work on Linux.
...
FossilOrigin-Name: cd1542664eb3eb46d486664ded49cd9c4bef3948
2015-04-16 03:24:38 +00:00
drh
6bca651166
Add #ifdef magic for HAVE_GETHOSTUUID so that the build will hopefully now
...
work on more verions of MacOS with SQLITE_ENABLE_LOCKING_STYLE turned on.
FossilOrigin-Name: 211411d02c0729c9af0e3cc7e4910db2e7e0d08e
2015-04-13 23:05:28 +00:00
drh
62ca61ee61
Disable the SQLITE_FCNTL_WAL_BLOCK feature for now. It needs more work and
...
is not yet ready for release.
FossilOrigin-Name: 4ae9a3acc4eeeb7998769eb856c97c2233476f72
2015-04-03 20:33:33 +00:00
drh
5ac936529c
Do not invoke a C preprocessor macro with an empty argument, as (reportedly)
...
some versions of GCC are unable to deal with that.
FossilOrigin-Name: de9da317d4df3efefe9a1a48f954af8a19e7d098
2015-03-21 20:59:43 +00:00
drh
c435cf75a5
Fix the blocking WAL lock so that it works and so that it compiles on a Mac.
...
FossilOrigin-Name: 67d69d21de32816894be53e4b446656d4174eb0d
2015-03-21 16:36:03 +00:00
drh
bbf76eec34
Arrange for some of the transient locks in WAL mode to block, as a single
...
to the OS to fix priority inversions.
FossilOrigin-Name: c6e6d5f4e06c3ac0bfb620c0c728fbc7230c4a02
2015-03-10 20:22:35 +00:00
drh
e89b291828
Clean up #ifdef logic dealing with VxWorks in os_unix.c. On VxWorks,
...
automatically use posix advisory locking if it is available or fall back
to named semaphore locking if not.
FossilOrigin-Name: ac8c7ca3db14ec19be1f19cfaf14b47fdda0c9ef
2015-03-03 20:42:01 +00:00
drh
91eb93c797
Fix compiler warnings when compiling under VxWorks 7.
...
FossilOrigin-Name: 55c21521a64703d7050c7f8975538f4cfae95eb7
2015-03-03 19:56:20 +00:00
drh
8cd5b2546f
Changes so that the amalgamation and the command-line shell build without
...
modifications on VxWorks 7. Still gives a few compiler warnings, and still
mostly untested on that platform.
FossilOrigin-Name: 7d92f1f11ee69b0ba7d5a48f0611016d77d41c78
2015-03-02 22:06:43 +00:00
drh
2da47d3869
Fix a compiler warning associated with USE_PREAD64.
...
FossilOrigin-Name: c299e55a661c04f71ab43cb8aed04f8ece6e0567
2015-02-21 00:56:05 +00:00
drh
e6d4173b78
Fix over-length source code lines in os_unix.c.
...
FossilOrigin-Name: 7560a9fa50236ecaa0617f1ab5bb5662f4a61c72
2015-02-21 00:49:00 +00:00
drh
a712b4bb97
Remove a redundant call to statfs() in the xOpen() method of the unix VFS.
...
Also fix an unused local variable warning.
FossilOrigin-Name: 8215727dda384351765ab1d5c53ea80775b4ec65
2015-02-19 16:12:04 +00:00
drh
4bf66fd6f3
Move the os_unix.c file closer to apple-osx.
...
FossilOrigin-Name: 81f242e338d6122e27aad86986bfd140012c6582
2015-02-19 02:43:02 +00:00