The V1 fixture gets a small pthread/nanosleep shim over
_beginthreadex and CRITICAL_SECTION, so the C ABI hardening suite
runs on Windows too (+5 tests). The fixture block is no longer
gated to non-Windows.
current_executable_path uses GetModuleFileNameW, and
run_isolated_subprocess mirrors the POSIX semantics with CreateProcessW:
redirected stdout/stderr pipes drained without deadlock, a suspended start
so job-object CPU/address-space limits are in force before the child runs,
deadline termination, bounded capture with truncation, and crash mapping
from NTSTATUS exit codes (CRT abort reports SIGABRT).
The resource-limit assertion stays POSIX-only because Wine does not
enforce job-object memory limits.
- Net/IO: Winsock sockets (UdpSocket, TlsClientStream, WebSocketClient),
HttpServer port with a loopback wake socket replacing eventfd, and the
select-based IO backend built on Windows (ws2_32).
- Net: implement StaticFileResolver::open_safe and OpenedStaticFile on
Windows (reparse-point rejection plus canonical containment check on the
opened handle) and widen native handles to intptr_t.
- Plugin: hot reload works on Windows by loading a fresh copy while the old
DLL stays mapped; enable the reload, discovery and FSM service reload
tests and retire the plugin file by rename instead of replacement.
- Update: activation pointer as a directory junction on Windows.
- Stacktrace: portable path comparison for wide native strings.
- Docs/targets: every module allowlisted on Windows; record the Wine run
(2000 tests, 1977 passed, 23 skipped, 0 failed).
- CMake: add -Wa,-mbig-obj for GNU MinGW targets (COFF section limit).
- Async: fix the FuturePool stopped-after-close test to wait for the
executor to release its admission slot instead of racing it.
Windows and Linux suites both pass: Windows 2000/1977/23 skips/0 failed,
Linux 2027/2023/4 skips/0 failed.
- Install.cpp: open the staging download with _wopen in binary mode and
use _commit instead of fsync on Windows (O_EXCL already rejects a
pre-existing entry, so O_NOFOLLOW has no Windows equivalent to keep).
- tests: add a @requires-openssl gate for files that sign fixtures with
OpenSSL headers (unavailable in the Windows environment), and skip the
compressed-package fixture when the Archive backend has no LibArchive.
Verified: Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2)
966 tests, 954 passed, 12 skipped, 0 failed; Linux Update+Testing 982
tests, 978 passed, 4 skipped, 0 failed. Allowlist Update for Windows.
It reloads stateful plugin shared objects through dlfcn semantics, which
Windows cannot do yet, so mark it @requires-posix instead of compiling a
empty test TU that the scanner still references.
Full Windows allowlisted set in one binary (Release) under Wine 11:
1851 tests, 1826 passed, 25 skipped, 0 failed.
Add TransportWindows.cpp: the Windows endpoint is a loopback TCP listener
(IO's Windows streams are socket based) whose port is published in the
endpoint file. Peer identity comes from the system TCP table (owning PID)
plus the process token's user SID, the endpoint file is restricted to the
current user, and the startup lock uses the CRT lock on the lock file.
Transport.cpp keeps the POSIX implementation and is guarded to !_WIN32.
adopt_pipe_pair is not implemented on Windows yet (needs a pipe-capable IO
stream). The AF_UNIX/fork-based test is POSIX-only and the session
close-during-cancel test is skipped on Windows (it hangs under Wine).
Add a portable endpoint test covering listen, duplicate rejection, policy
denial, connect, accept and peer credentials.
Verified: Linux IPC+Testing 4/4 IPC tests pass. Windows cross build under
Wine 11 (x86_64-w64-mingw32 GCC 16.2): 693 tests, 685 passed, 8 skipped,
0 failed. Allowlist IPC for the Windows target.
Update the Windows target table to the allowlisted modules and note the
remaining gaps (IPC, Update, ShortUrlStorage, external-dependency
modules), the vendored SQLite amalgamation, and the Plugin test skips.
Refs #65
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
Add a POSIX compatibility layer for the Windows build of StagedArchive:
directory descriptors are synthetic path handles, file IO uses the CRT
with UTF-8 to wide path conversion, fstatat/fstat/mkdirat/unlinkat/fsync
are emulated, and publication uses MoveFileExW without replace. The
isolated worker keeps its POSIX rlimit path (guarded) and RSS reporting
returns no value on Windows. Allowlist Archive for the Windows target.
Cross-built with x86_64-w64-mingw32 GCC 16.2: Void_Archive and
VoidTests.exe link with no errors. Linux Archive suite: 10/10 pass.
Refs #65
- Allowlist Configuration, Crypto and System for the Windows target.
- System: link winmm for the Win32 audio backend; include windows.h before
mmsystem.h.
- Tests: add a whole-file // @requires-posix gate (CMake path and the VBS
build.cpp) and mark the POSIX-only System suites; skip helper-based cases
on Windows; make setenv/unsetenv and getpid portable.
- The POSIX process helper is no longer built on Windows.
Cross-built with x86_64-w64-mingw32 GCC 16.2: all modules and VoidTests.exe
link. Linux System+Testing suite still passes (477 tests, 474 passed).
Refs #65