lib: xpc: implement scatter/gather i/o for buffers and messages

This commit is contained in:
2026-03-24 12:40:16 +00:00
parent af3dd454b0
commit 1eb6853cb0
5 changed files with 162 additions and 18 deletions

View File

@@ -19,14 +19,12 @@ xpc_status_t xpc_string_read(
}
kern_status_t status
= xpc_msg_read(s->s_origin, s->s_offset, out, to_read);
= xpc_msg_read(s->s_origin, s->s_offset, out, to_read, nr_read);
if (status != KERN_OK) {
return status;
}
out[to_read] = '\0';
/* TODO */
*nr_read = to_read;
return KERN_OK;
}