diff options
author | Miles Bader <miles@gnu.org> | 1996-07-19 00:13:00 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-07-19 00:13:00 +0000 |
commit | aca02ae2c00f7485883056c109da1489b2f00d3d (patch) | |
tree | 98536733b6419d6f59a24990c75e595868967985 /devio | |
parent | 9cb3b79faf6d082eaaf1e9ba49d889b5807086c7 (diff) |
(trivfs_S_file_get_storage_info): Fill in the array-length return values.
Diffstat (limited to 'devio')
-rw-r--r-- | devio/io.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -362,16 +362,20 @@ trivfs_S_file_get_storage_info (struct trivfs_protid *cred, (*ints)[3] = 2; /* num_runs */ (*ints)[4] = strlen (dev->name) + 1; /* name_len */ (*ints)[5] = 0; /* misc_len */ + *num_ints = 6; (*offsets)[0] = 0; (*offsets)[1] = dev->size / dev->dev_block_size; + *num_offsets = 1; strcpy (*data, dev->name); + *data_len = strlen (dev->name) + 1; if (cred->isroot) (*ports)[0] = dev->port; else (*ports)[0] = MACH_PORT_NULL; + *num_ports = 1; *ports_type = MACH_MSG_TYPE_COPY_SEND; } else |