sock: MSG_PEEK and other fixes

This commit is contained in:
Matheus
2024-06-03 21:53:46 -03:00
parent 7d95b6e00d
commit 40d8a05062
9 changed files with 54 additions and 21 deletions
+6
View File
@@ -21,6 +21,12 @@ syscallret_t syscall_write(context_t *context, int fd, void *buffer, size_t size
goto cleanup;
}
if (size == 0) {
ret.ret = 0;
ret.errno = 0;
goto cleanup;
}
// TODO safe memcpy
memcpy(kernelbuff, buffer, size);