- 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
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
is_process_group_alive() relied on kill(-pgid, 0), which also succeeds
when every remaining member is a zombie. A supervising ancestor that is
a child subreaper (a build system running tests) can hold those zombies
until it reaps them, so Child::terminate() timed out after SIGKILL even
though the group was dead. On Linux, scan /proc and require a non-zombie
member.
Regression test system_process_group_alive_ignores_unreaped_zombies.
Full vbs test suite passes (VoidTests).
Add the MIT license text (matching the other Void projects), state it in
the README, and install it to share/licenses/VoidLibrary from build.cpp.
Closes#63
Add build.cpp declaring every Void module with its internal dependency
closure, external dependencies detected from the environment or
conventional prefixes, optional backends (OpenSSL/LibArchive/Lua), the
Void::Testing suites, helper executables and plugin fixtures, plus install
rules for libraries and headers. Track build.cpp/build.profiles.cpp past
the build* ignore rule.
Verified with vbs on GCC 16: all 57 modules build; the test binary
discovers 1,949 cases (1,924 pass, 23 skip) with two subreaper-related
process-group tests failing only under vbs test supervision; install
produces a 332-file relocatable prefix and an installer archive.
Refs #61
option_default and option_default_checked assigned to out before reading
default_value; when the caller passed the same string for both, the view
dangled. Copy the default first. The reflective parse() path calls both
with aliased arguments.
Closes#62
StrictJson now preserves numbers that cannot be represented exactly as
int64 or double in a Number alternative holding the exact lexeme,
integrality, int64 fit and double range state. Grammar-valid numbers such
as 2^63, 1e309 and 1e-400 parse instead of failing, decimals such as
1.0000000000000001 no longer collapse to double 1.0, and serialization
round-trips the lexeme. Expose as_number/is_integral/is_finite_number and
keep allowDecimals for consumers that reject decimals.
Closes#60
MarkdownOptions::resolver rewrites a validated link/image destination
before it is escaped and emitted, once per destination in document order.
Unsafe schemes (javascript:, data:, ...) are still dropped and never reach
the resolver. A throwing resolver falls back to the original destination;
an overlong result is bounded by MarkdownLimits::max_output.
Closes#59
Add Void/Text/Markdown.hpp: a bounded CommonMark-subset parser with a safe
HTML renderer. Raw HTML is always escaped, link/image destinations are
allow-listed (http, https, mailto or relative), and unsafe schemes such as
javascript: and data: are dropped, including entity-smuggled variants.
Add html_escape to Void/Text/Html.hpp.
Closes#58