Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
os_unix.c
420233e
Fix assert() statements in os_unix.c and os_win.c. Allow walsetlk_recover.test to run in non-SQLITE_ENABLE_SNAPSHOT builds.
by dan
· 7 weeks ago
ded1959
If blocking locks are enabled, avoid using the busy handler when blocked by another process running recovery.
by dan
· 7 weeks ago
5d60f47
Approximately 50 typo fixes, spanning the whole tree, contributed via [forum:006c8fa165083ac3|forum post 006c8fa165083ac3] and individually checked for correctness. Affects only code comments, docs, and a single line of debug output in a test app.
by stephan
· 5 months ago
833dd3d
Fix "unused variable" warnings in os_unix.c and os_win.c.
by dan
· 5 months ago
138951d
Merge latest changes from trunk into this branch.
by dan
· 5 months ago
2d87894
Experimental change to allow clients to block when taking a SHARED lock to connect to a wal mode database.
by dan
· 5 months ago
4628888
Have sqlite3_enable_setlk(-1) configure indefinite blocking locks where they are supported.
by dan
· 6 months ago
c69d537
Remove an assert() in the unix file locking logic that is not true
by drh
· 6 months ago
23498de
Back out minor changes not required by this branch.
by dan
· 8 months ago
6bd3faa
Supports SQLITE_ENABLE_SETLK_TIMEOUT on windows. Does not work properly yet.
by dan
· 8 months ago
1b37bc0
Add the SQLITE_FCNTL_NULL_IO file-control.
by drh
· 8 months ago
710d00a
Change a (#define HAVE_FCHMOD) to (#define HAVE_FCHMOD 1) per user request in [forum:24cf6020c6|forum post 24cf6020c6]. There's no semantic change for this tree, but this is consistent with how auto-config tools would define it and the empty #define interferes with some downstream code.
by stephan
· 9 months ago
96501c8
Rename to SQLITE_IOCAP_SUBPAGE_READ.
by drh
· 9 months ago
bypass-iocap
c8284c7
Add the SQLITE_IOCAP_BYPASS device characteristic. Do not allow the
by drh
· 9 months ago
87cb97b
Fix harmless compiler warning in flockCheckReservedLock().
by drh
· 9 months ago
48dd75d
Fix the xCheckReservedLock() method of the flock VFS to avoid dropping the file-lock.
by dan
· 9 months ago
flock-vfs-fix
2c77d51
Resolve a harmless compiler warning in QNX builds.
by stephan
· 10 months ago
901b671
Automatically disable directory fsync when compiling for AIX.
by drh
· 11 months ago
41caf1c
Handle the case where unix-dotfile is used with URI parameter nolock=1.
by dan
· 1 year, 1 month ago
f6ec2b5
Fix a problem with rolling back hot journals using the unix-dotfile VFS.
by dan
· 1 year, 1 month ago
e1b55a5
Modify three #if checks in os_unix.c to improve handling of SQLITE_OMIT_WAL on WASI builds. Based on the discussion in/around [forum:57e918431735128a|forum post 57e918431735128a].
by stephan
· 1 year, 2 months ago
af64a22
Have os_unix.c reuse cached file-descriptors in the case when a read-write fd is requested on a read-only file and a read-only fd returned.
by dan
· 1 year, 4 months ago
e0a9935
Extend the strerror_r() result type discrepancy check in os_unix.c to include the Android NDK, as reported in [forum post 3f13857fa4062301|forum:3f13857fa4062301]. The NDK's strerror_r() signature is version-dependent, whereas this change assumes int return (POSIX semantic) across all versions.
by stephan
· 1 year, 5 months ago
bcf3df0
In os_unix.c and os_win.c, do not allow xFetch() to return a pointer to a page buffer that is right at the end of the mapped region - if the database is corrupted in a specific way such a page buffer might be overread by several bytes.
by dan
· 1 year, 6 months ago
3e2ffbd
Minor change to os_unix.c to facilitate 100% MC/DC testing.
by drh
· 1 year, 6 months ago
0d7f0e4
Fix SQLITE_ENABLE_SETLK_TIMEOUT assert() statements in os_unix.c to avoid reading past the end of the unixShmNode.aMutex[] array.
by dan
· 1 year, 7 months ago
e52854a
In SQLITE_ENABLE_SETLK_TIMEOUT builds, use blocking locks in place of sleep() when opening a read-transaction.
by dan
· 1 year, 8 months ago
046a7f9
When ENABLE_SETLK is defined, avoid ever blocking on the lock mutex in os_unix.c when requesting an exclusive lock.
by dan
· 1 year, 8 months ago
735e7ee
When SQLITE_ENABLE_SETLK_TIMEOUT is defined, use a separate mutex in os_unix.c for each shm locking slot.
by dan
· 1 year, 8 months ago
unix-setlk-timeout-mutexes
91c8e65
Changes so that if SQLITE_ENABLE_SETLK_TIMEOUT is defined as 2 instead of 1, all blocking locks are taken for a single millisecond and the default busy-handler invoked as normal.
by dan
· 1 year, 8 months ago
275234e
Fix an assert() that could fail within calls to sqlite3_snapshot_open() in SQLITE_ENABLE_SETLK_TIMEOUT builds.
by dan
· 1 year, 8 months ago
208f5c6
Fix harmless compiler warnings.
by drh
· 1 year, 9 months ago
9b1334b
Unix builds now assume the presence of nanosleep() in the standard library.
by drh
· 2 years ago
bc91738
Add a C-source spell-checking facility. make misspell (on Nix)
by larrybr
· 2 years, 1 month ago
be0023f
Automatically set HAVE_PREAD and HAVE_PWRITE on linux, as has been done in
by drh
· 2 years, 3 months ago
f8c73ae
Merge trunk into wasi-patches branch.
by stephan
· 2 years, 5 months ago
wasi-patches
288409d
Fix a comment related to PENDING locks in os_unix.c. No code changes.
by dan
· 2 years, 6 months ago
ca3aabd
Fix a race condition during hot-journal rollback that could theoretically cause spurious corruption errors.
by dan
· 2 years, 6 months ago
pending-lock-race
87ce1ff
Merge trunk into wasi-patches branch.
by stephan
· 2 years, 6 months ago
a7c4985
Merge trunk into wasi-patches branch and add missing yes/no result to the configure script's output for the --with-wasi-sdk=PATH test.
by stephan
· 2 years, 6 months ago
2e77734
Fix handling of unix paths that contain ".." components such that "/" is considered its own parent directory.
by dan
· 2 years, 6 months ago
unix-path-fix
9be7a36
Merge trunk into wasi-patches branch.
by stephan
· 2 years, 7 months ago
b1026ae
In the unix backend, when implementing the defenses against small file
by drh
· 2 years, 8 months ago
a42281a
Always use nanosleep() (instead of usleep() or sleep) if the
by drh
· 2 years, 8 months ago
9a92d53
Account for lack of mmap(), getpid(), and shared memory APIs in wasi.
by stephan
· 2 years, 8 months ago
8cfd2c3
Preliminary patches to get sqlite3.c building as-is in WASI environments.
by stephan
· 2 years, 8 months ago
20a9ed1
Include the kv-vfs as an optional VFS on unix builds if the
by drh
· 2 years, 10 months ago
b126ec1
Fix the <sys/time.h> include in os_kv.c.
by drh
· 2 years, 10 months ago
6b013af
Fix the amalgamation so that it builds with the standard unix backend again.
by drh
· 2 years, 10 months ago
18a3a48
Experimental changes to put sqlite3_temp_directory behind a mutex.
by drh
· 2 years, 11 months ago
087f143
Add the (undocumented) SQLITE_DEFAULT_UNIX_VFS compile-time option.
by drh
· 3 years ago
b8b2d9c
Fix harmless compiler warnings in the new unixFullPathname implementation.
by drh
· 3 years, 2 months ago
b302c06
Use osReadlink() in os_unix.c, not readlink() directly.
by drh
· 3 years, 2 months ago
resolve-symlinks
e8346d0
For the unix VFS, rewrite the xFullPathname method so that it automatically
by drh
· 3 years, 2 months ago
56d88aa
Harden the xShmLock method of both the unix and Windows VFSes so that they
by drh
· 3 years, 4 months ago
577f0a1
Improve the defenses against bad pathnames input into the findCreateFileMode()
by drh
· 3 years, 4 months ago
d9137e3
Fix a benign data race in os_unix.c that might trouble tsan and similar tools.
by dan
· 3 years, 8 months ago
a12a40c
Add #ifdef logic to os_unix.c so that it builds with SQLITE_OMIT_WAL defined.
by dan
· 3 years, 9 months ago
f81b40a
Provide an assert() to fire for applications that should never open or create
by drh
· 3 years, 9 months ago
f6d07c8
Back out the SQLITE_OPEN_EXCLUSIVE changes because it does not work on
by drh
· 3 years, 9 months ago
dff34ab
Allow the SQLITE_OPEN_EXCLUSIVE flag in sqlite3_open(). Return the
by drh
· 4 years, 1 month ago
f54e794
Fix some minor #ifdef issues so that all of the supported compile-time
by drh
· 4 years, 1 month ago
04f4b68
Fix a formatting error on the comment.
by drh
· 4 years, 2 months ago
better-comment
187e2e4
Add a table of shared-memory lock offsets in a comment in the os_unix.c code.
by drh
· 4 years, 2 months ago
aecc04d
Add experimental SQLITE_FCNTL_EXTERNAL_READER file control.
by dan
· 4 years, 4 months ago
8e7c82c
Fix a problem with the filename normalizer in unix, discovered by dbsqlfuzz.
by drh
· 4 years, 4 months ago
d46beb0
In os_unix.c, put ALWAYS() on unreachable branches associated with pathname
by drh
· 4 years, 8 months ago
6fc74a4
The xFullPathname method of the unix VFS now normalizes the filenames by
by drh
· 4 years, 8 months ago
f56a4bf
Improvements to the mechanism that attempts to report SQLITE_CORRUPT if
by drh
· 4 years, 8 months ago
detect-corrupt-fs
5a07d10
On unix, for certain error codes of read()/pread() return
by drh
· 4 years, 8 months ago
7f42dcd
Enhance the unix VFS so that it removes extra "/", "/./" and "/../" from
by drh
· 4 years, 8 months ago
78043e8
Add ALWAYS() to conditionals associated with SHM locking that are always true.
by drh
· 4 years, 9 months ago
ddcfe92
Do not invoke usleep() for more than 999999 microseconds.
by drh
· 4 years, 10 months ago
2b06b07
Ensure that the busy-handler count is reset at the end of each sqlite3_file_control() and sqlite3_prepare() (and _v2() and _v3()).
by dan
· 4 years, 11 months ago
6acdee6
Fix handling of an xShmLock(SHARED, UNLOCK) call when the caller does not hold any lock on the specified slot, but another connection in the same process holds an EXCLUSIVE.
by dan
· 5 years ago
unixshmlock-opt
8337da6
Modify the unixShmLock() function to avoid iterating through the (possibly large) set of connections to the same database file.
by dan
· 5 years ago
14f38b3
Try to make SQLite easier to compiler for Mac Catalyst. See
by drh
· 5 years ago
0c52f5a
Fix other potentiall pointer aliasing problems associated with subclassing
by drh
· 5 years ago
5289c51
Change things so that if SQLITE_ENABLE_SETLK_TIMEOUT is defined as 2 instead of 1, all blocking locks are taken for a single millisecond and the default busy-handler invoked as normal.
by dan
· 5 years ago
067b92b
Extend the refactoring into extensions. Clean up stray newlines.
by drh
· 5 years ago
ccb2113
Refactoring various names. No changes in the resulting machine code.
by drh
· 5 years ago
d31fcd4
Expand upon a comment in os_unix.c. No changes to code.
by dan
· 5 years ago
7a623e1
Fix a problem preventing building without SQLITE_ENABLE_SETLK_TIMEOUT defined.
by dan
· 5 years ago
7bb8b8a
Add error code SQLITE_BUSY_TIMEOUT, used internally by the OS layer to indicate that a call to xShmLock() has failed due to timeout of a blocking lock.
by dan
· 5 years ago
d0e6d13
Add tests for running recovery when opening a write transaction or performing a checkpoint with blocking locks enabled. Fix some failing assert() statements.
by dan
· 5 years ago
58021b2
Unless upgrading an existing read transaction, have ENABLE_SETLK_TIMEOUT builds attempt to use a blocking lock when opening a write transaction on a wal mode database.
by dan
· 5 years ago
3b9f154
Do not use O_NOFOLLOW when opening a directory just to call fsync() on
by drh
· 5 years ago
97ccc1b
Modifications to the way blocking locks are used in SQLITE_ENABLE_SETLK_TIMEOUT builds so that multiple processes or threads may not deadlock when operating on a single database.
by dan
· 5 years ago
setlk-deadlock-fix
0ba3621
Omit O_NOFOLLOW from the open() call when opening /dev/null, since /dev/null
by drh
· 5 years ago
09bee57
Follow-up to check-in [c8c6dd0e6582ec91] - change the xAccess() method to
by drh
· 6 years ago
96e8eeb
In the xAccess() method of the unix VFS, return true if the named object
by drh
· 6 years ago
c398c65
Revise the SQLITE_OPEN_NOFOLLOW so that it actually uses O_NOFOLLOW in the
by drh
· 6 years ago
0933aad
Add support for SQLITE_OPEN_NOFOLLOW.
by drh
· 6 years ago
e4079e1
Allow compile-time options -DHAVE_GETHOSTUUID=0 and -DHAVE_GETHOSTUUID=1.
by drh
· 6 years ago
edf8a7b
In the previous check-in, the variable should be openMode, not openFlags.
by drh
· 6 years ago
1116b17
In the unix VFS layer, do not attempt to chown() the journal to be the same
by drh
· 6 years ago
55220a6
Improved reuse of file descriptors for which close() is delayed to prevent
by drh
· 6 years ago
ec9b2a1
Call ioctl() with the correct signature on both Android and stock Linux.
by dan
· 6 years ago
ioctl-signature
8616cff
Remove unreachable "break" statements to silence harmless compiler warnings
by drh
· 6 years ago
aadf832
Back out the change to support Fuchsia, since it turns out fuchsia does not
by drh
· 6 years ago
Next »