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

@@ -52,7 +52,7 @@ static void fail(const char* msg) {
exit_now(1);
}
static void fail_status(const char* what, uint32_t status) {
static void fail_status(const char* what, KSTATUS status) {
print("pcache_multithread: ");
print(what);
print(" failed status=");
@@ -70,7 +70,7 @@ static void delete_path(const char* path) {
(void)NtlDeleteFile(SysSvFromCstr(path));
}
static uint32_t create_temp(uint32_t* fileOut, const char** pathOut) {
static KSTATUS create_temp(uint32_t* fileOut, const char** pathOut) {
static const char* paths[] = {
"pcache_multithread.tmp",
};
@@ -78,7 +78,7 @@ static uint32_t create_temp(uint32_t* fileOut, const char** pathOut) {
for (size_t i = 0; i < sizeof(paths) / sizeof(paths[0]); ++i) {
uint32_t h = 0;
delete_path(paths[i]);
uint32_t s = NtlOpenFile(SysSvFromCstr(paths[i]),
KSTATUS s = NtlOpenFile(SysSvFromCstr(paths[i]),
SYS_FILE_ACCESS_READ | SYS_FILE_ACCESS_WRITE | SYS_FILE_ACCESS_QUERY,
SYS_FILE_CREATE_NEW,
SYS_FILE_FLAG_NONE,
@@ -120,7 +120,7 @@ static void thread_main(uintptr_t arg) {
sizeof(SYS_MAP_FILE_REQUEST), ctx->Mapping, SYS_MAP_ACCESS_READ,
SYS_MAP_FLAG_NONE, 0, TEST_SIZE, &base
};
uint32_t s = SysMapFile(&mapFile);
KSTATUS s = SysMapFile(&mapFile);
if (s != NTLSTATUS_SUCCESS || !base) {
ctx->Status = s ? s : NTLSTATUS_INVALID_PARAMETER;
SysExitThread(1);
@@ -144,7 +144,7 @@ static void thread_main(uintptr_t arg) {
}
s = validate_mapping((const uint8_t*)base);
uint32_t fs = SysFreeVm(base);
KSTATUS fs = SysFreeVm(base);
if (s != NTLSTATUS_SUCCESS) {
ctx->Status = s;
SysExitThread(1);