Thanks to visit codestin.com
Credit goes to chromium.googlesource.com
Sign in
chromium
/
external
/
github.com
/
sqlite
/
sqlite
/
HEAD
/
src
/
os.c
bc91738
Add a C-source spell-checking facility. make misspell (on Nix)
by larrybr
· 2 years, 1 month ago
2eca061
Attempt to clarify the operation of the xLock and xUnlock VFS I/O methods.
by drh
· 2 years, 10 months ago
2756f80
Add assert() statements to verify that the SQLITE_OPEN_EXCLUSIVE flag is always passed to the VFS when opening a temporary file.
by dan
· 3 years ago
33d28ab
Minor changes to make it easier for static analyzers to reason about the code.
by drh
· 3 years, 9 months ago
76fc88f
Fix harmless compiler warnings
by drh
· 3 years, 10 months ago
cf14504
Avoid bugs in some implementations of dlopen() by avoiding calls to
by drh
· 4 years, 1 month ago
8119aab
Further improvements (subsequent to [d91450847a3a3a72]) to handling of attempts
by drh
· 4 years, 4 months ago
1de03ab
Do not simulate OOM faults on the SQLITE_FCNTL_CKPT_START and
by drh
· 4 years, 8 months ago
ccb2113
Refactoring various names. No changes in the resulting machine code.
by drh
· 5 years ago
c398c65
Revise the SQLITE_OPEN_NOFOLLOW so that it actually uses O_NOFOLLOW in the
by drh
· 6 years ago
51755a7
Fix harmless compiler warnings.
by drh
· 6 years ago
2e6d83b
Give the SQLITE_TESTCTRL_PRNG_SEED two arguments. The second argument if not
by drh
· 6 years ago
prng-seed-test-control
ade54d6
Add the SQLITE_TESTCTRL_PRNG_SEED test control.
by drh
· 6 years ago
45f3182
Unless SQLITE_OMIT_AUTOINIT is defined, allow sqlite3_vfs_unregister() to be called before sqlite3_initialize().
by dan
· 7 years ago
6831dbe
When testing, avoid injecting an OOM fault into a file-control call made by
by dan
· 7 years ago
afb39a4
Modify the sqlite3OsFileControl() interface to detect unopened sqlite3_file
by drh
· 7 years ago
000705b
Do not inject OOM errors on SQLITE_FCNTL_LOCK_TIMEOUT calls as an OOM is
by drh
· 7 years ago
lowlevel-lock-timeout
2ed5737
Fix compiler warnings that come up with SQLITE_OMIT_WAL.
by drh
· 8 years ago
daaae7b
Update the mechanism used to keep track of what kind of syncing to do for
by drh
· 8 years ago
wal-sync-refactor
43f58d6
Fix various internal #defines to conform to new C-language naming restrictions,
by drh
· 9 years ago
8f2ce91
Since the return value of sqlite3OsClose() is always ignored, we might as
by drh
· 9 years ago
1b9f214
Experimental implementation of the sqlite3_system_errno() interface.
by drh
· 9 years ago
2491de2
Extend the code in memjournal.c so that it subsumes the role of journal.c. And (untested) can flush journal or statement journal files to disk after they grow to a specified size.
by dan
· 9 years ago
fad3039
Enhance ability to debug out-of-memory errors.
by mistachkin
· 9 years ago
c04c54b
Enhance the MSVC makefile to enable building 'testfixture' fully from source code.
by mistachkin
· 9 years ago
9ca9573
Add the SQLITE_ENABLE_API_ARMOR compile-time option. This is a work in
by drh
· 11 years ago
1001ee8
Do not inject OOM faults into SQLITE_FCNTL_COMMIT_PHASE_TWO file-control invocations. It causes problems for test scripts.
by dan
· 12 years ago
9b4c59f
Refactoring the mmap interface. The controlling pragma is now "mmap_size"
by drh
· 12 years ago
188d488
Disable the use of memory-mapped I/O if the SQLITE_DISABLE_MMAP macro is
by drh
· 12 years ago
a64d5a1
Simulate OOM errors in the sqlite3OsFetch() function. Run malloc.test as part of the "mmap" permutation.
by dan
· 12 years ago
df737fe
Change the signature of the xUnfetch method to "int (*xUnfetch)(sqlite3_file*, sqlite3_int64 iOfst, void *p)".
by dan
· 12 years ago
f23da96
Replace the sqlite3_io_methods.xMremap interface with sqlite3_io_methods.xFetch and xUnfetch.
by dan
· 12 years ago
eb97b29
When possible, use memory mapping when appending new pages to a database file.
by dan
· 12 years ago
5d8a137
Add the sqlite3_io_methods.xMremap() method to the VFS interface. Also "PRAGMA mmap_size".
by dan
· 12 years ago
c02372c
Refactor sqlite3OsFileControlNoFail() into sqlite3FileControlHint().
by drh
· 14 years ago
6f2f19a
Add function sqlite3OsFileControlNoFail(), which is the same as sqlite3OsFileControl() except that it does not simulate OOM errors. This saves adding calls to the BenignMalloc() functions around each of the invocations of sqliteOsFileControl() that ignore the return code.
by dan
· 14 years ago
e349519
Change the unix VFS so that it ignores all but the least-significant bit
by drh
· 14 years ago
44659c9
Fix some typos in comments. No code changes.
by dan
· 14 years ago
6c3c1a0
Make sure to flag benign malloc failures in the Windows VFS as such. Expand use of the DO_OS_MALLOC_TEST to cover the VFS functions that can now return an out of memory error. Support an experimental --match option to the test suite that will run only those tests matching the specified pattern.
by mistachkin
· 14 years ago
winSyscall
30ddce6
Added the tool/warnings-clang.sh script. Changes so that there are no
by drh
· 14 years ago
f1c40f4
Make sure the file structure is zeroed prior to calling the VFS to open a file.
by mistachkin
· 14 years ago
877eeb3
All the SQLITE_OPEN_URI flag to propagate down into the VFS.
by drh
· 14 years ago
bfccdaf
Identify additional requirements in the sqlite3_vfs object documentation.
by drh
· 15 years ago
ddb0ac4
On unix, try to create the *-wal and *-shm files with the same permissions as the associated database file.
by dan
· 15 years ago
e11fedc
Change the name of the xShmClose VFS method to xShmUnmap, everywhere.
by drh
· 15 years ago
da9fe0c
Changes so that the xShmOpen VFS method is no longer required. Its job can be done by the first call to xShmMap. Rename xShmClose to xShmUnmap.
by dan
· 15 years ago
fd28639
Changes to os_win.c to have it return same error code as os_unix.c.
by shaneh
· 15 years ago
c396d4a
Additional test cases to cover branches in pager.c.
by dan
· 15 years ago
1880191
Remove xShmGet/Size/Release from the sqlite3_vfs structure. Change the name of xShmPage to xShmMap. Remove some code that is now unused from os_unix.c and some of the test VFS implementations.
by dan
· 15 years ago
13a3cb8
Experimental change to the xShmXXX parts of the VFS interface.
by dan
· 15 years ago
73b64e4
Initial code for incremental checkpoint in WAL mode. This check-in compiles
by drh
· 15 years ago
286a288
Add a new xShmBarrier method to the VFS - a shared-memory fence operation.
by drh
· 15 years ago
5939f44
Mark the shared-memory in the WAL implementation as volatile.
by drh
· 15 years ago
d9e5c4f
Refactoring the VFS-SHM methods used by WAL. This version compiles and
by drh
· 15 years ago
b7e8ea2
Use VFS method xCurrentTimeInt64 instead of xCurrentTime when it is available.
by drh
· 15 years ago
10a76c9
Make the TEMP file tables use the page size set for the main database.
by drh
· 15 years ago
68ff78b
Make sure the output of sqlite3OsFullPathname is initialized even if the
by drh
· 16 years ago
c81c11f
Remove the obsolete "$Id:$" RCS identifier strings from the source code.
by drh
· 16 years ago
f1f1268
Added SQLITE_OPEN_SHAREDCACHE and SQLITE_OPEN_PRIVATECACHE flags as
by drh
· 16 years ago
adad77a
Always call sqlite3_malloc() in sqlite3OsInit(), even when not compiled
by drh
· 16 years ago
3d6e060
Move error simulation code from the sqlite3_os_init() functions into a wrapper.
by dan
· 16 years ago
b5a1920
Do not simulate OOM conditions in the sqlite3OsXXX() calls if the underlying file is an in-memory journal file. (CVS 6946)
by danielk1977
· 16 years ago
072db2f
When a VFS.xOpen fails, make sure the pMethods pointer is zeroed on the
by drh
· 16 years ago
1875f7a
The amalgamation now compiles cleanly on GCC with options
by drh
· 17 years ago
18472fa
Remove the SQLITE_MUTEX_APPDEF compile-time option. The SQLITE_THREADSAFE=0
by drh
· 17 years ago
98c2190
Always transform error code SQLITE_IOERR_NOMEM to SQLITE_NOMEM before returning. This was already happening in most places. (CVS 5738)
by danielk1977
· 17 years ago
95e80d6
Fix the position of the SQLITE_WSD macro in the declaration of global variable vfsList. (CVS 5665)
by danielk1977
· 17 years ago
5c8f858
Change some more global variables to work with OMIT_WSD. (CVS 5660)
by danielk1977
· 17 years ago
633e6d5
Implement the "lookaside" memory allocation cache. Use of this cache makes
by drh
· 17 years ago
4ead148
Documentation updates in sqlite.h.in. No changes to code. (CVS 5315)
by drh
· 17 years ago
29bafea
Change the OS_XXX pre-processor symbols to SQLITE_OS_XXX. Symbols "OS_UNIX", "OS_WIN", "OS_WINCE", "OS_OS2" and "OS_OTHER" are now "SQLITE_OS_UNIX", "SQLITE_OS_WIN", "SQLITE_OS_WINCE", "SQLITE_OS_OS2" and "SQLITE_OS_OTHER", respectively. (CVS 5311)
by danielk1977
· 17 years ago
71bc31c
Fix a race condition in sqlite3_initialize(). (CVS 5310)
by danielk1977
· 17 years ago
c0fa4c5
Remove internal function sqlite3OsDefaultVfs(). The built-in VFS layers now register their VFS implementations by calling sqlite3_vfs_register() from within sqlite3_os_init(). (CVS 5307)
by danielk1977
· 17 years ago
a418980
Fix some minor compile problems. (CVS 5248)
by drh
· 17 years ago
59f8c08
Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234)
by danielk1977
· 17 years ago
e5ae573
Continuing work on the new memory allocation subsystem.
by drh
· 17 years ago
40257ff
Progress toward implementation of sqlite3_config() and a rework of the
by drh
· 17 years ago
17b90b5
Remove the xGetTempname() method from the vfs structure. Temp files are now opened by passing a NULL pointer as the filename to xOpen(). (CVS 5190)
by danielk1977
· 17 years ago
861f745
Modify the signatures of the sqlite3_vfs.xAccess and sqlite3_vfs.xCheckReservedLock functions. (CVS 5188)
by danielk1977
· 17 years ago
75998ab
sqlite3OsDl*() APIs can be omitted if SQLITE_OMIT_LOAD_EXTENSION defined. (CVS 5171)
by shane
· 17 years ago
822a516
Add more version tags to files that lack them. Ticket #3120. (CVS 5137)
by danielk1977
· 17 years ago
d3638ae
On instruction from DRH, only do malloc failure tests for O/S ops on non-Windows systems. Better test fixture code will be introduced in 3.6.0 to add this coverage back in for Windows. (CVS 5130)
by shane
· 17 years ago
2a8ce73
If an error occurs within xAccess(), it should return -1. Remove an assert()
by danielk1977
· 17 years ago
4003298
Replace always-true condition with assertion (CVS 4970)
by mlcreech
· 17 years ago
19db935
Allow the xAccess method in the VFS to return -1 to signal an I/O
by drh
· 17 years ago
7e2e6dc
Work around problems with compilers that do not allow C preprocessor
by drh
· 17 years ago
a7a8e14
Where possible, avoid freeing buffers allocated for vdbe memory cells in case they can be reused. (CVS 4783)
by danielk1977
· 17 years ago
7e8b848
Make sqlite3SafetyOn() and sqlite3SafetyOff() macros which disappear when
by drh
· 18 years ago
bf26097
Move the test (sqlite3_simulate_device) functionality out of the main code and into a test vfs. (CVS 4737)
by danielk1977
· 18 years ago
9bc5449
Make sure the sqlite3_vfs_register() and sqlite3_vfs_unregister() APIs
by drh
· 18 years ago
ae72d98
Add automatic recovery from the pager "error-state". Also add a new error code - SQLITE_IOERR_NOMEM. (CVS 4454)
by danielk1977
· 18 years ago
adfb9b0
Add a parameter to specify the size of the output buffer passed to xGetTempname() and xFullPathname(). This, and the previous commit, are changes to the public vfs API introduced in 3.5.0. (CVS 4433)
by danielk1977
· 18 years ago
76ee37f
Change the names of xGetTempName and sqlite3OsGetTempName to xGetTempname. To be consistent with xFullPathname and sqlite3OsFullPathname. (CVS 4432)
by danielk1977
· 18 years ago
e9bb50a
The sqlite3_vfs_register() interface now calls sqlite3_vfs_find(0) to make
by drh
· 18 years ago
95c8a54
Fix for registration of non-default vfs objects. (CVS 4360)
by danielk1977
· 18 years ago
9e33c2c
Remove the xLockState method for sqlite3_io_methods. Replace it with
by drh
· 18 years ago
cc6bb3e
Initial implementation of the sqlite3_file_control() interface.
by drh
· 18 years ago
1cc8c44
Remove nRef and vfsMutex from the sqlite3_vfs structure. Omit the
by drh
· 18 years ago
153c62c
The win32 driver compiles but does not yet work well. Many bugs
by drh
· 18 years ago
2ca0f86
Add some tests for the atomic-write optimization. (CVS 4275)
by danielk1977
· 18 years ago
Next »