lib: xpc: implement support for iterating through directories
This commit is contained in:
@@ -8,7 +8,6 @@ extern kern_status_t fs_msg_read(
|
||||
xpc_endpoint_t *sender,
|
||||
size_t count,
|
||||
int *out_err,
|
||||
size_t *out_nr_read,
|
||||
xpc_buffer_t *out_data,
|
||||
void *arg)
|
||||
{
|
||||
@@ -24,7 +23,7 @@ extern kern_status_t fs_msg_read(
|
||||
size_t end = fs_file_get_cursor(f);
|
||||
|
||||
*out_err = fs_status_to_errno(status);
|
||||
*out_nr_read = end - start;
|
||||
out_data->buf_len = end - start;
|
||||
|
||||
return KERN_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user