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:
1 parent
899225f551
commit
c0ad63c27f
226 files changed
+6562
-4147
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// Native exception pipeline integration smoke test.
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
@@ -53,7 +54,7 @@ static void fail(const char* message) {
|
||||
}
|
||||
|
||||
// Fails the test with one status value.
|
||||
static void fail_status(const char* what, uint32_t status) {
|
||||
static void fail_status(const char* what, KSTATUS status) {
|
||||
print("exception_smoke: ");
|
||||
print(what);
|
||||
print(" status=");
|
||||
@@ -63,7 +64,7 @@ static void fail_status(const char* what, uint32_t status) {
|
||||
}
|
||||
|
||||
// Returns whether a string view exactly matches a literal string.
|
||||
static int sv_equals_cstr(SYS_STRING_VIEW sv, const char* literal) {
|
||||
static bool sv_equals_cstr(SYS_STRING_VIEW sv, const char* literal) {
|
||||
size_t len = strlen(literal);
|
||||
return sv.Length == len && sv.Data && memcmp(sv.Data, literal, len) == 0;
|
||||
}
|
||||
@@ -106,7 +107,7 @@ static void run_child_expect_exit(const char* mode, uint32_t expectedExit) {
|
||||
request.SecurityContext = SYS_SECURITY_CONTEXT_CURRENT;
|
||||
request.ResolveModuleName = NtlResolveSystemModuleName;
|
||||
request.ProcessHandleOut = &child;
|
||||
uint32_t status = NtlCreateSystemProcess(&request);
|
||||
KSTATUS status = NtlCreateSystemProcess(&request);
|
||||
if (status != NTLSTATUS_SUCCESS)
|
||||
fail_status("create child", status);
|
||||
|
||||
@@ -142,7 +143,7 @@ static void child_divide_by_zero(void) {
|
||||
}
|
||||
|
||||
// Observes an access violation and exits from inside the native handler.
|
||||
static int access_violation_handler(SYS_EXCEPTION_RECORD* record,
|
||||
static uint32_t access_violation_handler(SYS_EXCEPTION_RECORD* record,
|
||||
SYS_USER_CONTEXT* context,
|
||||
void* userContext) {
|
||||
(void)context;
|
||||
@@ -171,7 +172,7 @@ static void child_access_violation(void) {
|
||||
}
|
||||
|
||||
// Returns a resume context with an invalid user RIP.
|
||||
static int invalid_resume_handler(SYS_EXCEPTION_RECORD* record,
|
||||
static uint32_t invalid_resume_handler(SYS_EXCEPTION_RECORD* record,
|
||||
SYS_USER_CONTEXT* context,
|
||||
void* userContext) {
|
||||
(void)userContext;
|
||||
@@ -191,7 +192,7 @@ static void child_invalid_resume(void) {
|
||||
}
|
||||
|
||||
// Attempts to continue a noncontinuable user-raised exception.
|
||||
static int noncontinuable_handler(SYS_EXCEPTION_RECORD* record,
|
||||
static uint32_t noncontinuable_handler(SYS_EXCEPTION_RECORD* record,
|
||||
SYS_USER_CONTEXT* context,
|
||||
void* userContext) {
|
||||
(void)context;
|
||||
@@ -216,7 +217,7 @@ static void child_noncontinuable(void) {
|
||||
request.Flags = SYS_RAISE_EXCEPTION_FLAG_NONCONTINUABLE;
|
||||
request.UserCode = SMOKE_NONCONTINUABLE_CODE;
|
||||
|
||||
uint32_t status = SysRaiseException(&request);
|
||||
KSTATUS status = SysRaiseException(&request);
|
||||
exit_now((int32_t)status);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user