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
+3 -1
View File
@@ -6,9 +6,11 @@
#include <kernel/alloc.h>
syscallret_t syscall_sendmsg(context_t *, int fd, msghdr_t *umsghdr, int flags) {
__assert((flags & ~MSG_NOSIGNAL) == 0);
syscallret_t ret;
if (flags & ~MSG_NOSIGNAL)
printf("sendmsg: unknown %x\n", flags);
msghdr_t msghdr;
ret.errno = sock_copymsghdr(&msghdr, umsghdr);
if (ret.errno)