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 -1
View File
@@ -535,7 +535,14 @@ __declspec(dllexport) int poll(struct pollfd* fds, nfds_t nfds, int timeout) {
size_t ready = 0;
uint32_t timeoutMs = timeout < 0 ? SYS_POLL_TIMEOUT_INFINITE : (uint32_t)timeout;
uint32_t s = SysPoll(kfds, nfds, timeoutMs, &ready);
SYS_POLL_REQUEST req;
memset(&req, 0, sizeof(req));
req.Size = sizeof(req);
req.TimeoutMs = timeoutMs;
req.Fds = kfds;
req.Count = nfds;
req.ReadyOut = &ready;
KSTATUS s = SysPoll(&req);
if (s != 0) {
free(kfds);
errno = PosixStatusToErrno(s);