implement user mode catchable exceptions, refactor system status codes to use NTLSTATUS_ prefix, update build scripts to use shared literal macros for linker arguments, update named queue lifetime cleanup to include KeNamedQueueUnpublishHandle.

This commit is contained in:
maksw committed 2026-06-27 20:38:43 +02:00
1 parent 1f5477cf66
commit b7fcfce6f7
140 files changed
+7649 -3943

No files matched your search

+8 -8
View File
@@ -76,15 +76,15 @@ static uint32_t open_first_existing(uint32_t* fileOut, const char** pathOut) {
SYS_FILE_FLAG_NONE,
&file);
uint32_t s = SysOpenFile(&openReq);
if (s == STATUS_SUCCESS) {
if (s == NTLSTATUS_SUCCESS) {
*fileOut = file;
if (pathOut)
*pathOut = candidates[i];
return STATUS_SUCCESS;
return NTLSTATUS_SUCCESS;
}
}
return STATUS_NOT_FOUND;
return NTLSTATUS_NOT_FOUND;
}
int main(void) {
@@ -93,7 +93,7 @@ int main(void) {
uint32_t file = 0;
const char* openedPath = 0;
uint32_t s = open_first_existing(&file, &openedPath);
if (s != STATUS_SUCCESS)
if (s != NTLSTATUS_SUCCESS)
fail_status("open test file", s);
print("mmap_smoke: using ");
@@ -105,7 +105,7 @@ int main(void) {
SYS_FILE_IO_REQUEST ioReq = SysMakeFileIoRequest(file, gExpected, sizeof(gExpected), &got);
s = SysReadFile(&ioReq);
if (s != STATUS_SUCCESS)
if (s != NTLSTATUS_SUCCESS)
fail_status("read baseline", s);
if (got < 64)
fail_msg("baseline read was unexpectedly short");
@@ -118,7 +118,7 @@ int main(void) {
SYS_MAP_FLAG_NONE,
sizeof(gExpected),
&mapping);
if (s != STATUS_SUCCESS)
if (s != NTLSTATUS_SUCCESS)
fail_status("create file mapping", s);
print("mmap_smoke: mapping created\n");
@@ -141,7 +141,7 @@ int main(void) {
SysCloseHandle(mapping);
mapping = 0;
if (s != STATUS_SUCCESS)
if (s != NTLSTATUS_SUCCESS)
fail_status("map file view", s);
if (!base)
fail_msg("map returned null base");
@@ -191,7 +191,7 @@ int main(void) {
print("mmap_smoke: EOF fill OK\n");
s = SysFreeVm(base);
if (s != STATUS_SUCCESS)
if (s != NTLSTATUS_SUCCESS)
fail_status("unmap", s);
print("mmap_smoke: PASS\n");