summaryrefslogtreecommitdiff
path: root/trans/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'trans/random.c')
-rw-r--r--trans/random.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/trans/random.c b/trans/random.c
index ea1f780e..b68354e1 100644
--- a/trans/random.c
+++ b/trans/random.c
@@ -314,7 +314,7 @@ trivfs_goaway (struct trivfs_control *cntl, int flags)
/* Read data from an IO object. If offset is -1, read from the object
maintained file pointer. If the object is not seekable, offset is
ignored. The amount desired to be read is in AMOUNT. */
-error_t
+kern_return_t
trivfs_S_io_read (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
data_t *data, mach_msg_type_number_t *data_len,
@@ -371,7 +371,7 @@ trivfs_S_io_read (struct trivfs_protid *cred,
object at a time; servers implement congestion control by delaying
responses to io_write. Servers may drop data (returning ENOBUFS)
if they receive more than one write when not prepared for it. */
-error_t
+kern_return_t
trivfs_S_io_write (struct trivfs_protid *cred,
mach_port_t reply,
mach_msg_type_name_t replytype,
@@ -437,7 +437,7 @@ trivfs_S_io_select (struct trivfs_protid *cred,
/* Change current read/write offset */
-error_t
+kern_return_t
trivfs_S_io_seek (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
loff_t offs, int whence, loff_t *new_offs)
@@ -452,7 +452,7 @@ trivfs_S_io_seek (struct trivfs_protid *cred,
/* Change the size of the file. If the size increases, new blocks are
zero-filled. After successful return, it is safe to reference mapped
areas of the file up to NEW_SIZE. */
-error_t
+kern_return_t
trivfs_S_file_set_size (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
loff_t size)
@@ -468,7 +468,7 @@ trivfs_S_file_set_size (struct trivfs_protid *cred,
will tell you which of O_READ, O_WRITE, and O_EXEC the object can
be used for. The O_ASYNC bit affects icky async I/O; good async
I/O is done through io_async which is orthogonal to these calls. */
-error_t
+kern_return_t
trivfs_S_io_set_all_openmodes(struct trivfs_protid *cred,
mach_port_t reply,
mach_msg_type_name_t reply_type,
@@ -480,7 +480,7 @@ trivfs_S_io_set_all_openmodes(struct trivfs_protid *cred,
return 0;
}
-error_t
+kern_return_t
trivfs_S_io_set_some_openmodes (struct trivfs_protid *cred,
mach_port_t reply,
mach_msg_type_name_t reply_type,
@@ -492,7 +492,7 @@ trivfs_S_io_set_some_openmodes (struct trivfs_protid *cred,
return 0;
}
-error_t
+kern_return_t
trivfs_S_io_get_owner (struct trivfs_protid *cred,
mach_port_t reply,
mach_msg_type_name_t reply_type,
@@ -505,7 +505,7 @@ trivfs_S_io_get_owner (struct trivfs_protid *cred,
return 0;
}
-error_t
+kern_return_t
trivfs_S_io_mod_owner (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
pid_t owner)
@@ -524,7 +524,7 @@ trivfs_S_io_mod_owner (struct trivfs_protid *cred,
implement io_map but not io_map_cntl. Some objects do not provide
mapping; they will set none of the ports and return an error. Such
objects can still be accessed by io_read and io_write. */
-error_t
+kern_return_t
trivfs_S_io_map(struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
mach_port_t *rdobj,