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
@@ -20,7 +20,7 @@ static void DlSetError(const char* message) {
|
||||
}
|
||||
|
||||
// Converts one native loader status to errno and a dlerror message.
|
||||
static void DlSetStatusError(const char* operation, uint32_t status) {
|
||||
static void DlSetStatusError(const char* operation, KSTATUS status) {
|
||||
(void)status;
|
||||
errno = PosixStatusToErrno(status);
|
||||
DlSetError(operation);
|
||||
@@ -38,7 +38,7 @@ __declspec(dllexport) void* dlopen(const char* filename, int flags) {
|
||||
}
|
||||
|
||||
char native[512];
|
||||
uint32_t status = PosixProcessPath(filename, native, sizeof(native));
|
||||
KSTATUS status = PosixProcessPath(filename, native, sizeof(native));
|
||||
if (status != NTLSTATUS_SUCCESS) {
|
||||
errno = EINVAL;
|
||||
DlSetError("dlopen path is not a loadable module");
|
||||
@@ -94,7 +94,7 @@ __declspec(dllexport) void* dlsym(void* handle, const char* symbol) {
|
||||
}
|
||||
|
||||
uintptr_t address = 0;
|
||||
uint32_t status = NtlGetModuleExport((NTL_MODULE_HANDLE)(uintptr_t)handle,
|
||||
KSTATUS status = NtlGetModuleExport((NTL_MODULE_HANDLE)(uintptr_t)handle,
|
||||
SysSvFromCstr(symbol), &address);
|
||||
if (status != NTLSTATUS_SUCCESS || address == 0) {
|
||||
DlSetStatusError("dlsym failed", status);
|
||||
@@ -113,7 +113,7 @@ __declspec(dllexport) int dlclose(void* handle) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
uint32_t status = NtlUnloadModule((NTL_MODULE_HANDLE)(uintptr_t)handle);
|
||||
KSTATUS status = NtlUnloadModule((NTL_MODULE_HANDLE)(uintptr_t)handle);
|
||||
if (status != NTLSTATUS_SUCCESS) {
|
||||
DlSetStatusError("dlclose failed", status);
|
||||
return -1;
|
||||
|
||||
Reference in new issue
Block a user