Implement DirectoryWatcher on Windows with ReadDirectoryChangesW: one
recursive handle, a dedicated watcher thread feeding a bounded queue, a
condition variable for poll timeouts, rename pairing, ignore filtering
and RescanRequired on buffer overflow. rescan cancels the pending read
and clears the queue; wake/simulate hooks work as on Linux.
Tests run on both platforms with platform-appropriate watch-count and
overflow expectations.
Verified under Wine 11 (x86_64-w64-mingw32 GCC 16.2): full VoidTests.exe
suite passes (1337 tests, 1325 passed, 12 skipped, 0 failed). Linux
System+Testing suite unchanged (477 tests, 474 passed).
Closes#65
- TempDir/TempFile: implement the Windows branch (path-based no-follow
cleanup, volume/file-index identity, normalized temp base).
- Path: let the staging cleanup delete the temp file while its handle is
open (FILE_SHARE_DELETE) and open the parent directory with write access
before FlushFileBuffers.
- Configuration: read the environment through _environ on Windows.
- Tests: binary ofstream for read_file, portable setenv/getpid, skip
DirectoryWatcher on Windows, builtin Ed25519 vector, Archive hardening
permission assertions guarded.
Verified under Wine 11 with x86_64-w64-mingw32 GCC 16.2: Archive 6/6,
ArchiveHardening 10/10, Crypto 3/3, Path 9/11 (2 skipped), TempDir 5/5,
TempFile 5/5, Sources 7/7, DirectoryWatcher skipped (no backend), Log
12/12. Linux suites unchanged (477 and 787 tests, 0 failures).
Refs #65