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
drh
f7a4a1b8c5
Make use of the fdatasync() interface if the HAVE_FDATASYNC macro is true.
...
FossilOrigin-Name: 694228e4632c2999efa47ecb49f679c177db02e5
2015-01-10 18:02:45 +00:00
dan
ef3d66cb01
Fix a problem in the unix implementation of FCNTL_SIZE_HINT on systems that do not support posix_fallocate().
...
FossilOrigin-Name: af20eae1e6f608e4e61a07c3d14cf88c12751353
2015-01-06 21:31:47 +00:00
dan
592bf7faf5
Ensure that when a file is extended using FCNTL_SIZE_HINT the last page is allocated on disk, even if the file will only use part of it.
...
FossilOrigin-Name: c7f84717d61197afa9e0ac607c4b349361e6e2b7
2014-12-30 19:58:31 +00:00
dan
d348c66e29
If the sorter uses mmap'd temp files, ensure all pages of the temp file have been allocated before it is accessed. Otherwise, a disk-full condition might result in a SIGBUS exception.
...
FossilOrigin-Name: 776648412c30dce206f1024ff849c2cb025bb006
2014-12-30 14:40:53 +00:00
drh
d9f9441d7d
Disable shared memory operations using the unix-nolock VFS.
...
FossilOrigin-Name: 10a6e510497b471d67ac3dfb19ff256a7d18adf4
2014-09-22 03:22:27 +00:00
drh
142341cd23
Make the "nolock" VFS on unix a version-3 VFS so that the sorter can
...
use memory-mapped I/O.
FossilOrigin-Name: 3db78d6100a1ecf58c18eec3abefa7d1250c649c
2014-09-19 19:00:48 +00:00
dan
524a733d89
Fixes to os_unix.c to support database (and other) files larger than 2GiB on Android.
...
FossilOrigin-Name: ad7063aa1a0db32cdbe71815545b2edca57d3bcc
2014-09-06 17:06:13 +00:00
dan
3fdf46a16e
Merge latest trunk changes with this branch.
...
FossilOrigin-Name: 9dca7ce55797b3eb617859f6189c1a2ec6f66566
2014-09-06 16:52:18 +00:00
dan
2ee5341288
Fixes to os_unix.c to support database (and other) files larger than 2GiB.
...
FossilOrigin-Name: e7fae33c0754488336ce093189a83dfe1b818d89
2014-09-06 16:49:40 +00:00
peter.d.reid
60ec914c74
Fix typos in comments. No code changes.
...
FossilOrigin-Name: e62aab5e9290503869e1f4d5e0fefd2b4dee0a69
2014-09-06 16:39:46 +00:00
drh
19541f3018
Attempt to make the xDelete method of the unix VFS more robust on VxWorks.
...
FossilOrigin-Name: b0f6b91f36b503d8ba8d5257bb194f8c1afb4833
2014-09-01 13:37:55 +00:00
drh
bd9455457a
Minor change to unixDelete for VxWorks with a DOS filesystem.
...
FossilOrigin-Name: f01d42cc8b00d2b7c4f14defcb05fdc493cf1bfd
2014-08-13 11:39:42 +00:00
drh
61ffea5490
Fix typos in the VxWorks code of os_unix.c.
...
FossilOrigin-Name: 19682e8fdc4a3b7884dba3e4387763e435ec16e6
2014-08-12 12:19:25 +00:00
drh
91be7dc320
Changes that will perhaps enable SQLite to work better on VxWorks.
...
FossilOrigin-Name: de27c742c0dcda20b51339598bf6094a8dcf5fb9
2014-08-11 13:53:30 +00:00
drh
3c19bbea0a
The SQLITE_IOERR_BLOCKED extended error code is not longer used, so remove
...
assert() statements and documentation for that error code. Also make other
documentation improvements.
FossilOrigin-Name: 36b7c5cefcad6bad044806092593c84876fee8bc
2014-08-08 15:38:11 +00:00