syscalls: fix for os-test

This commit is contained in:
Matheus
2025-12-08 22:48:49 -03:00
parent 227fcb5386
commit 57e4a39f53
13 changed files with 73 additions and 19 deletions
+5
View File
@@ -28,6 +28,11 @@ syscallret_t syscall_accept(context_t *, int oldfd, abisockaddr_t *abisockaddr,
socket_t *server = SOCKFS_SOCKET_FROM_NODE(oldfile->vnode);
if (server->ops->accept == NULL) {
ret.errno = ENOTSUP;
goto cleanup;
}
socket_t *client = socket_create(server->type);
if (client == NULL) {
ret.errno = ENOMEM;