Commit Graph
4 Commits
Author SHA1 Message Date
faumaray 3939b05396 Windows: port TempDir/TempFile and fix file-system semantics
- 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
2026-12-05 18:22:54 +03:00
faumaray a48c745438 Archive: run the staging implementation on Windows
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
2026-12-05 16:13:57 +03:00
faumaray 22c8538754 feat(crypto,archive): implement VL-007 built-in hashes and VL-006 archive creation/gzip/tar fallback 2026-11-26 20:55:45 +03:00
faumaray 00d7478335 feat(archive): add streaming Reader, atomic StagedTree publication, reproducible creation, and isolated worker 2026-11-25 20:54:10 +03:00