lib: c: io: update fs_read usage

This commit is contained in:
2026-03-24 12:42:03 +00:00
parent d3a25f0af7
commit 660cb3bd71

View File

@@ -8,7 +8,7 @@ int read(int fd, void *buf, size_t count)
{ {
int err; int err;
size_t nr_read; size_t nr_read;
kern_status_t status = fs_read(fd, count, &err, &nr_read, buf, count); kern_status_t status = fs_read(fd, count, &err, buf, count, &nr_read);
if (status != KERN_OK) { if (status != KERN_OK) {
return __set_errno(__errno_from_kern_status(status)); return __set_errno(__errno_from_kern_status(status));
} }