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:
maksw committed 2026-10-12 18:17:43 +02:00
1 parent 899225f551
commit c0ad63c27f
226 files changed
+6562 -4147

No files matched your search

+5 -5
View File
@@ -71,12 +71,12 @@ static void format_ipv4(char* dst, size_t cap, const uint8_t ip[4]) {
static void append_hex16(char* dst, size_t cap, size_t* off, uint16_t value) {
static const char hex[] = "0123456789abcdef";
int started = 0;
bool started = false;
for (int shift = 12; shift >= 0; shift -= 4) {
unsigned nibble = (value >> shift) & 0xfu;
if (nibble || started || shift == 0) {
append_char(dst, cap, off, hex[nibble]);
started = 1;
started = true;
}
}
}
@@ -153,7 +153,7 @@ static void usage(void) {
}
// Implements the resolve host operation.
static uint32_t resolve_host(const char* host, SYS_SOCKET_ADDRESS* address) {
static KSTATUS resolve_host(const char* host, SYS_SOCKET_ADDRESS* address) {
uint8_t ip[4];
if (parse_ipv4(host, ip)) {
memset(address, 0, sizeof(*address));
@@ -173,7 +173,7 @@ static uint32_t resolve_host(const char* host, SYS_SOCKET_ADDRESS* address) {
req.AddressOut = address;
req.AddressSizeInOut = &resolvedSize;
uint32_t st = SysResolveHost(&req);
KSTATUS st = SysResolveHost(&req);
if (st == NTLSTATUS_SUCCESS)
return NTLSTATUS_SUCCESS;
@@ -224,7 +224,7 @@ int main(void) {
}
}
uint32_t st = resolve_host(host, &addr);
KSTATUS st = resolve_host(host, &addr);
if (st != NTLSTATUS_SUCCESS) {
print("httpget: resolve failed "); print_u64(st); print(" for "); print(host); print("\n");
usage();