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
@@ -17,7 +17,7 @@ static void exit_now(int code) {
|
||||
while (true) SysExitProcess(code);
|
||||
}
|
||||
|
||||
static void fail_status(const char* what, uint32_t status) {
|
||||
static void fail_status(const char* what, KSTATUS status) {
|
||||
(void)status;
|
||||
print("cwd_userspace_smoke: "); print(what); print("\n");
|
||||
exit_now(1);
|
||||
@@ -30,13 +30,13 @@ static void fail(const char* what) {
|
||||
|
||||
static void get_cwd_or_fail(char out[SYS_PATH_MAX + 1u]) {
|
||||
size_t required = 0;
|
||||
uint32_t status = NtlGetCurrentDirectory(out, SYS_PATH_MAX + 1u, &required);
|
||||
KSTATUS status = NtlGetCurrentDirectory(out, SYS_PATH_MAX + 1u, &required);
|
||||
if (status != NTLSTATUS_SUCCESS || required == 0 || required > SYS_PATH_MAX + 1u)
|
||||
fail_status("get cwd", status);
|
||||
}
|
||||
|
||||
static void set_cwd_or_fail(const char* path, const char* what) {
|
||||
uint32_t status = NtlSetCurrentDirectory(SysSvFromCstr(path));
|
||||
KSTATUS status = NtlSetCurrentDirectory(SysSvFromCstr(path));
|
||||
if (status != NTLSTATUS_SUCCESS) fail_status(what, status);
|
||||
}
|
||||
|
||||
@@ -49,7 +49,7 @@ static void expect_cwd(const char* expected) {
|
||||
// Resolves the current absolute resource path and returns the owning namespace-prefix length.
|
||||
static size_t resource_root_length_or_fail(const char* cwd) {
|
||||
SYS_HANDLE session = SYS_HANDLE_INVALID;
|
||||
uint32_t status = NtlResourceConnect(&session);
|
||||
KSTATUS status = NtlResourceConnect(&session);
|
||||
if (status != NTLSTATUS_SUCCESS) fail_status("resource connect", status);
|
||||
|
||||
SYS_HANDLE root = SYS_HANDLE_INVALID;
|
||||
|
||||
Reference in new issue
Block a user