diff options
author | drh <> | 2024-11-13 14:58:35 +0000 |
---|---|---|
committer | drh <> | 2024-11-13 14:58:35 +0000 |
commit | 1b37bc0e668a0bfefbd0a71bdcae25017b29b5fa (patch) | |
tree | f85ba0a7001f0078b18b39c0673a5bca7e9f0860 /src/os_unix.c | |
parent | 92e9fa6fe887fc5cad73b4251ce06e295d7a0d2c (diff) | |
download | sqlite-1b37bc0e668a0bfefbd0a71bdcae25017b29b5fa.tar.gz sqlite-1b37bc0e668a0bfefbd0a71bdcae25017b29b5fa.zip |
Add the SQLITE_FCNTL_NULL_IO file-control.
FossilOrigin-Name: f0e917fcf51b59f8ccfe5b9341937341d0e6016eb275d6c33dcb10b0b301a9da
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 8cc188674..b1996278c 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3987,6 +3987,11 @@ static int unixFileControl(sqlite3_file *id, int op, void *pArg){ } #endif /* __linux__ && SQLITE_ENABLE_BATCH_ATOMIC_WRITE */ + case SQLITE_FCNTL_NULL_IO: { + osClose(pFile->h); + pFile->h = -1; + return SQLITE_OK; + } case SQLITE_FCNTL_LOCKSTATE: { *(int*)pArg = pFile->eFileLock; return SQLITE_OK; |