clean up and standardize types across the codebase, unify atomic operations, improve UTF-8 handling throughout the system, remove obsolete input and named queue interfaces, redesign process preparation and creation, tighten IPC and service boundaries, improve error handling and reliability, minor documentation cleanup, fix doom surfaces, fix panic in ini parsing.

This commit is contained in:
maksw committed 2026-10-12 18:17:43 +02:00
1 parent 899225f551
commit c0ad63c27f
226 files changed
+6562 -4147

No files matched your search

+5 -5
View File
@@ -152,7 +152,7 @@ static uint32_t alloc_entries(uint32_t capacity, TEST_ENTRY** entriesOut) {
req.PageCount = pages;
req.BaseOut = &base;
uint32_t status = SysAllocVm(&req);
KSTATUS status = SysAllocVm(&req);
if (status != NTLSTATUS_SUCCESS || !base) {
*entriesOut = 0;
return status ? status : NTLSTATUS_NO_MEMORY;
@@ -167,7 +167,7 @@ static uint32_t grow_entries(TEST_ENTRY** entries, uint32_t* capacity, uint32_t
uint32_t oldCapacity = *capacity;
uint32_t newCapacity = oldCapacity ? oldCapacity * 2u : ALL_TESTS_INITIAL_CAPACITY;
TEST_ENTRY* next = 0;
uint32_t status = alloc_entries(newCapacity, &next);
KSTATUS status = alloc_entries(newCapacity, &next);
if (status != NTLSTATUS_SUCCESS) return status;
if (*entries && count) memcpy(next, *entries, (size_t)count * sizeof(TEST_ENTRY));
@@ -213,7 +213,7 @@ static uint32_t collect_tests(const char* dir, const char* selfName, TEST_ENTRY*
*countOut = 0;
uint32_t hDir = 0;
uint32_t status = NtlOpenDir(SysSvFromCstr(dir),
KSTATUS status = NtlOpenDir(SysSvFromCstr(dir),
SYS_DIR_ACCESS_ENUMERATE | SYS_DIR_ACCESS_OPEN,
SYS_DIR_FLAG_NONE,
&hDir);
@@ -256,7 +256,7 @@ static uint32_t collect_tests(const char* dir, const char* selfName, TEST_ENTRY*
// Runs one test process and returns the child's exit code through exitCodeOut.
static uint32_t run_test(const char* path, int32_t* exitCodeOut) {
uint32_t imageFile = SYS_HANDLE_INVALID;
uint32_t status = NtlOpenFile(SysSvFromCstr(path),
KSTATUS status = NtlOpenFile(SysSvFromCstr(path),
SYS_FILE_ACCESS_READ | SYS_FILE_ACCESS_QUERY,
SYS_FILE_OPEN_EXISTING,
SYS_FILE_FLAG_NONE,
@@ -311,7 +311,7 @@ int main(void) {
TEST_ENTRY* entries = 0;
uint32_t count = 0;
uint32_t status = collect_tests(selfDir, selfName, &entries, &count);
KSTATUS status = collect_tests(selfDir, selfName, &entries, &count);
if (status != NTLSTATUS_SUCCESS) {
print("all_tests: failed to enumerate tests status=0x");
print_hex32(status);