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

+7 -7
View File
@@ -35,7 +35,7 @@ static void exit_now(int code) {
}
// 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("timer_smoke: ");
print(what);
print(" status=");
@@ -58,7 +58,7 @@ static void expect_status(const char* what, uint32_t got, uint32_t expected) {
}
// Arms a timer through the public request ABI.
static uint32_t set_timer(uint32_t timer, uint64_t dueMs, uint64_t periodMs) {
static KSTATUS set_timer(uint32_t timer, uint64_t dueMs, uint64_t periodMs) {
SYS_SET_TIMER_REQUEST req = {
sizeof(req),
timer,
@@ -74,7 +74,7 @@ static void test_validation(void) {
uint32_t timer = 0;
expect_status("create timer null", SysCreateTimer((uint32_t*)0), NTLSTATUS_INVALID_PARAMETER);
uint32_t s = SysCreateTimer(&timer);
KSTATUS s = SysCreateTimer(&timer);
if (s != NTLSTATUS_SUCCESS) fail_status("create validation timer", s);
expect_status("set timer null", SysSetTimer((const SYS_SET_TIMER_REQUEST*)0), NTLSTATUS_INVALID_PARAMETER);
@@ -100,7 +100,7 @@ static void test_validation(void) {
// Verifies one-shot timers wake waiters and are consumed by the wait.
static void test_one_shot(void) {
uint32_t timer = 0;
uint32_t s = SysCreateTimer(&timer);
KSTATUS s = SysCreateTimer(&timer);
if (s != NTLSTATUS_SUCCESS) fail_status("create one-shot timer", s);
expect_status("unset immediate wait", SysWaitSingle(timer, SYS_WAIT_FLAG_NONE, 0), NTLSTATUS_TIMEOUT);
@@ -117,7 +117,7 @@ static void test_one_shot(void) {
// Verifies cancellation clears an armed timer and its retained signal.
static void test_cancel(void) {
uint32_t timer = 0;
uint32_t s = SysCreateTimer(&timer);
KSTATUS s = SysCreateTimer(&timer);
if (s != NTLSTATUS_SUCCESS) fail_status("create cancel timer", s);
s = set_timer(timer, 100, 0);
@@ -143,7 +143,7 @@ static void test_cancel(void) {
// Verifies resetting an active timer replaces its previous deadline.
static void test_reset_changes_deadline(void) {
uint32_t timer = 0;
uint32_t s = SysCreateTimer(&timer);
KSTATUS s = SysCreateTimer(&timer);
if (s != NTLSTATUS_SUCCESS) fail_status("create reset timer", s);
s = set_timer(timer, 100, 0);
@@ -160,7 +160,7 @@ static void test_reset_changes_deadline(void) {
// Verifies a periodic timer can wake more than once.
static void test_periodic(void) {
uint32_t timer = 0;
uint32_t s = SysCreateTimer(&timer);
KSTATUS s = SysCreateTimer(&timer);
if (s != NTLSTATUS_SUCCESS) fail_status("create periodic timer", s);
s = set_timer(timer, 10, 20);