Refactoring of toastyfs_web

This commit is contained in:
2025-12-03 00:03:36 +01:00
parent 09ec872591
commit b0b2d576cc
18 changed files with 726 additions and 437 deletions
+7
View File
@@ -1,3 +1,4 @@
#include "basic.h"
#include "tcp.h"
#ifdef BUILD_TEST
@@ -627,6 +628,9 @@ static int setup_poll_array(void **contexts, struct pollfd *polled)
break;
}
break;
default:
UNREACHABLE;
}
revents &= desc->events;
@@ -1101,6 +1105,9 @@ int mock_getsockopt(SOCKET fd, int level, int optname, void *optval, socklen_t *
break;
}
break;
default:
UNREACHABLE;
}
*(int*)optval = val;
*optlen = sizeof(int);