aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/fileio.c
Commit message (Collapse)AuthorAge
* Fix an out-of-order local variable declaration in ext/misc/fileio.c.drh2025-06-19
| | | FossilOrigin-Name: a88bb75288a06492a04ab1278e8a2101a74f4ba712d328b4c73e86ac01cb946d
* Adjustments to ext/misc/fileio.c in an attempt to get it to build using mingw.drh2025-06-09
| | | FossilOrigin-Name: 96b14a3f1193de8f30e9fa704f87558dab8027a218868d32e47688cd5df497b7
* Remove the clunky test_windirent.h and test_windirent.c files from src/drh2025-06-05
| | | | | and replace them with a much cleaner and more compact ext/misc/windirent.h. FossilOrigin-Name: acc978df52ec41ffdb5c27764f30d53efa1f25a314b7d98983dc0d211a36b570
* Enhance the FSDIR virtual table with a new "level" column. The query plannerdrh2025-06-05
| | | | | knows how to optimize to avoid search deeper than the maximum requested level. FossilOrigin-Name: 1ddc0f9e79c33957961bc1443ccb74d756a02cbd20850052079782e76aef2706
* First cut at enhancing the fsdir virtual table so that it works withdrh2025-05-13
| | | | | unicode characters on Windows. FossilOrigin-Name: c9e04dadfdf6c860631ce5603693add565ff2033aa25af5736302af7045fc91e
* Avoid using Int32x32To64() with a 64-bit argument in fileio.c - this level ↵dan2025-01-03
| | | | | of micro-optimization is not really necessary there. FossilOrigin-Name: 1291b013a8c93e7001fe25783bc98d12f5f7c341d1f728e6852632e18a38af58
* Have the zipfile and fileio extensions use sqlite3_stdio.c when it isdrh2024-09-25
| | | | | available - such as when those extensions are preloaded into the CLI. FossilOrigin-Name: 74bbb2b2b4507d9acbd91209a2ce341968e9ff64f3aebe9e817bfe488d39ae03
* Fix comment typo in the fileio.c extension. No changes to code.drh2024-09-20
| | | FossilOrigin-Name: bf2c5b368ac094e048ca33a5e9175fe6a1fb5e2b1e392935eb29388e8999c40b
* When extracting links from sqlar archives, clobber any existing file or ↵dan2024-05-06
| | | | | link, and do not call utimes() to set the timestamp - it looks through the link and operates on the target. FossilOrigin-Name: 2bf8c3f99ad8b74f707d17272fa12b674bec66082d3e8349ebef3dac42ba0782
* Ensure that all fields of static sqlite3_module objects are explicitlydrh2023-10-06
| | | | | initialized, in order to hush-up nuisance compiler warnings. FossilOrigin-Name: f3b3d712d6e58b1cb8fdebd2b6b3125080b6b3ac8c7c849a8cc1e5e778d62fe7
* New defenses against OOM and corrupt database problems in the CLI.drh2021-12-16
| | | FossilOrigin-Name: 5c9fd7fde16d8e335488b8bf5c691961d2636201b034d1f29d25de8708de291d
* Accomplish fileio standalone for Win32 with less intervention.larrybr2021-09-20
| | | FossilOrigin-Name: af5dcc9c2a3a45d10b985f6b7ea18d39c75502ed10fa6496aad787dbe8c8c3fb
* Allow fileio extension to be a stand-alone DLL for Win32larrybr2021-09-20
| | | FossilOrigin-Name: d1cc3105b2baceb9f426fd6bc8d8317de3af09a0f02517715bd292c68e282fa1
* When compiling the shell for WinRT, avoid using Win32 APIs that are unavailable.mistachkin2020-04-09
| | | FossilOrigin-Name: 85d3dc8c50d8dbb8eac1956e8976e861d3b671e03355ca9257060fa3dca51cc4
* Create the "trusted_schema" pragma. Add sqlite3_vtab_config() calls to setdrh2020-01-07
| | | | | the risk rank for many virtual tables. FossilOrigin-Name: 4c21373c21c9b17b222ae65297a039a035e6ec6b505c00c33704e3c03f94f834
* Fix harmless compiler warnings.drh2019-03-26
| | | FossilOrigin-Name: a063f7c426d1ac066bf05cc03288f49b1c92e06a8cb2bc271cce9bd3022a74ea
* Fix the writefile() SQL function implemented by ext/misc/fileio.c such thatdrh2019-03-25
| | | | | | any directories created have standard umask permissions, not permissions of the file that is to be written. FossilOrigin-Name: f11c89595dc65f89be6df62830c8cddd3933acfd4baaecd348ecd99e71db5831
* Fix various harmless compiler warnings seen with MSVC.mistachkin2019-03-20
| | | FossilOrigin-Name: 1c0fe5b5763fe5cbace9773dcdab742e126d0bd035ab13d61f9d134afa0afc0c
* Fix the readfile() UDF so that it returns an empty BLOB, not an OOM error,drh2019-02-27
| | | | | when reading an empty file. FossilOrigin-Name: 0edad5339e36d69aed9289bb3e60d35f9930386d76a62bb0194c4fdf420d16fb
* Use 64-bit APIs in the fileio.c extension.drh2019-01-11
| | | FossilOrigin-Name: b49d56a0faf012978c50fb8662125ea21bdf5054fddf5975644cbc941c153e70
* Improved detection and reporting of errors in the readfile() extension SQLdrh2019-01-11
| | | | | function. FossilOrigin-Name: d2f0b5a483869d39f5c5814c9d6df3d3b8a46d582b4dcf0cf11e23b707c4213e
* Use 64-bit math to compute the sizes of memory allocations in extensions.drh2019-01-08
| | | FossilOrigin-Name: ca67f2ec0e294384c397db438605df1b47aae5f348a8de94f97286997625d169
* Enhance the xBestIndex interface of virtual table so that if the xBestIndexdrh2018-11-16
| | | | | | | method returns SQLITE_CONSTRAINT then that particular combination of constraints is considered unusable and does not participate further in query planning. FossilOrigin-Name: 684013cef6bfcfd920a4aec645df9f5d41ace8b34e75fca61759c1b4f82cc89e
* Fix comments and make magic numbers into #defines in the fsdirdrh2018-11-16
| | | | | implementation. FossilOrigin-Name: c537c9c3630ca979bdccab977275bfc11cce33ea54adb71a4bd4f46c85f65c6f
* Fix a problem with virtual table "fsdir" and some join queries.dan2018-11-16
| | | FossilOrigin-Name: 7fffcee0fc3fe8d036f0d93ec17673992c3edcf2bb454dc90d80142435b37946
* Initial code to make shadow tables read-only to ordinary SQL. The nowdrh2018-11-05
| | | | | | | | xShadowName method is added to the sqlite3_module object and is used to identify potential shadow tables. The SQLITE_PREPARE_SHADOW argument to sqlite3_prepare_v3() is defined. It is designed to permit writing to shadow tables, but is currently an unused placeholder. FossilOrigin-Name: 31942b3dd3f66eb0d9977bf1cadc2f2d7be7967cce2b55784be0b939dfef1985
* Fix typo in the Win32-specific code for the fileio extension.mistachkin2018-09-08
| | | FossilOrigin-Name: e812e5d59a699e8b82c51d465d9c0f09df6a1e6996b5499814dca99c5f8020d5
* Fix harmless compiler warnings seen with MSVC.mistachkin2018-03-23
| | | FossilOrigin-Name: 2f2be1b1811e6b83fc8945da06e57b8b54233ff8a6ebd9d71b22c6bab2e74afb
* Win32 portability fixes to the 'fileio' extension.mistachkin2018-03-16
| | | FossilOrigin-Name: 9d2b0f8b84aac862b0572b183e3ba53ea8c0d8742aaa3c3fbe59f6036054fd1a
* Draft fix for an fsdir() issue reported via the mailing list.mistachkin2018-03-15
| | | FossilOrigin-Name: 48641010c24bf37f13d68c4d19c5c3e9b41404af12a4947705cc53a31db04178
* Add unix-only tests to check that the "unzip" program can unpack archivesdan2018-01-29
| | | | | generated by the zipfile extension. FossilOrigin-Name: 438c5c5237a801ae78809bf324bb9251fb50250addfc1f8e36659442b0e26ab6
* Fix the modification-time setting logic in the fileio.c extension on Windowsdrh2018-01-23
| | | | | so that it works with utf8 filenames. FossilOrigin-Name: f785b9041556912edbacdbfb3dfc38705058d7c10d874544295c25db54628bc2
* Fix harmless compiler warnings, mostly unused parameters for UDFs in the CLI.drh2018-01-17
| | | FossilOrigin-Name: bfbeffab7735461acb3773242ba31dae15af9f8b0291c54a6734747bb1b36e66
* Always use utimes() instead of utimensat() since the latter is not availabledrh2018-01-12
| | | | | even on some recent unix systems. FossilOrigin-Name: 30ed7a4b6408f0ca921abc4d8b7bb5404fc7708cedcd104b017b361054e7148c
* In the fileio.c extension, change the filetype(MODE) function into lsmode(MODE).drh2018-01-10
| | | | | Use the new lsmode(MODE) function in shell.c. FossilOrigin-Name: 52d12ba9f33c1f2620776e189c81f3bf991759344ecdd167ea2a6107f0972b9d
* Add the "filetype()" SQL function for interpreting file modes to thedrh2018-01-10
| | | | | fileio.c extension. FossilOrigin-Name: 58c0c74c407d93f48930a4964b6cc48f008b522d193a62a559de0e6a319a8bd0
* Attempt to fix the fileio.c extension so that it builds on MinGW-64.drh2018-01-09
| | | FossilOrigin-Name: a7446d3217d39c96c884fbfb294dd320378255f3bfb34e35d15ba6d7c6698f53
* Avoid a compiler warning when building with newer versions of MinGWdrh2018-01-09
| | | FossilOrigin-Name: cba0206a15f30313e16a08634995ebfd5d325d83affb859a215e72509f539b4e
* Remove a superfluous define from the 'fileio' extension when compiled for Win32.mistachkin2018-01-08
| | | FossilOrigin-Name: 6dcba6693f064b0e21360c5eab18abe4a1534f6699b5d7b92e60eab6be14c347
* Avoid the use of utimensat() on older unix platforms.drh2018-01-07
| | | FossilOrigin-Name: 90cb01d8d6ac12d0b88f2952a75aeefa81ba66f5e4a5377fdd8b9f86aec8e927
* Fix a bug introduced by efforts to reduce compiler warnings indrh2018-01-05
| | | | | check-in [364ac333b030f0] FossilOrigin-Name: 1d6cee9ad448b10e69f351ef9dbec09110c5b189cba8734e637f41abe8f35bf8
* Fix compiler warnings.mistachkin2018-01-05
| | | FossilOrigin-Name: 19aabccfe34c956599f33cd3ddc846816adc06784c2496838f1ef53059e038e5
* Fix compiler warnings.drh2018-01-05
| | | FossilOrigin-Name: 364ac333b030f0e3372937df723f1098183da87913ba0e8ae162864ee24a50d3
* In the 'fileio' extension code for Win32, use the FILE_FLAG_BACKUP_SEMANTICS ↵mistachkin2018-01-04
| | | | | flag when setting the file times, just in case the file is actually a directory. FossilOrigin-Name: 4f3444060057127bce81787ed83cb5225cdbdd577596bc3fb06a40be2208f238
* Get the shell enhancements compiling with MSVC.mistachkin2018-01-04
| | | FossilOrigin-Name: 335387f9e0d4569097d34cd99cd332b38a282e9b7ae25f088eb47df5c25837ef
* Have the writefile() function optionally set the modification-time of thedan2017-12-14
| | | | | | files it writes or creates. And many small fixes to the new code on this branch. FossilOrigin-Name: 7b51269caebe1492885fe9b965892f49a3f8bdb1d666b0203d594c30f9e83938
* Add support for parsing options in non-traditional tar form to the ".ar"dan2017-12-12
| | | | | | | command. Have writefile() attempt to create any missing path components. And not to throw an exception if it is called to create a directory that already exists. FossilOrigin-Name: 38dbeb1e777aa7ec742aa27002ad4dcee28af520dc43de96e5c56c39f16574ff
* Enhance virtual table "fsdir" in ext/misc/fileio.c. Add support for "-C" todan2017-12-11
| | | | | the shell command's ".ar c" command. FossilOrigin-Name: 0394889afed2479773af594e2d9659cf58b8959004ebcdeaff8e08e5dae684ef
* Add the ".ar x" command to the shell. For extracting the contents of sqlardan2017-12-07
| | | | | archives. FossilOrigin-Name: 0cc699d14adfe8c7b7be50c180186562861806c47425c80c935bce43ee5c5c12
* Begin adding support for the sqlar archive format to shell.c. There is nodan2017-12-07
| | | | | "extract" command so far, only "create". FossilOrigin-Name: c9827a01a6e107f38f85c2b2c1c7a599e443067b106217e965b6936441ca619d