summaryrefslogtreecommitdiff
path: root/storeio/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'storeio/io.c')
-rw-r--r--storeio/io.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/storeio/io.c b/storeio/io.c
index f01e1918..dca997ef 100644
--- a/storeio/io.c
+++ b/storeio/io.c
@@ -34,7 +34,7 @@
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,
memory_object_t *rd_obj, mach_msg_type_name_t *rd_type,
@@ -80,7 +80,7 @@ trivfs_S_io_map (struct trivfs_protid *cred,
/* Read data from an IO object. If offset if -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_name_t *data_len,
@@ -105,7 +105,7 @@ trivfs_S_io_read (struct trivfs_protid *cred,
/* Tell how much data can be read from the object without blocking for
a "long time" (this should be the same meaning of "long time" used
by the nonblocking flag. */
-error_t
+kern_return_t
trivfs_S_io_readable (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
vm_size_t *amount)
@@ -129,7 +129,7 @@ trivfs_S_io_readable (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 recevie 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 reply_type,
const_data_t data, mach_msg_type_number_t data_len,
@@ -145,7 +145,7 @@ trivfs_S_io_write (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,
off_t offs, int whence, off_t *new_offs)
@@ -159,7 +159,7 @@ trivfs_S_io_seek (struct trivfs_protid *cred,
/* SELECT_TYPE is the bitwise OR of SELECT_READ, SELECT_WRITE, and SELECT_URG.
Block until one of the indicated types of i/o can be done "quickly", and
return the types that are then available. */
-error_t
+kern_return_t
trivfs_S_io_select (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
int *type)
@@ -170,7 +170,7 @@ trivfs_S_io_select (struct trivfs_protid *cred,
return 0;
}
-error_t
+kern_return_t
trivfs_S_io_select_timeout (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
struct timespec ts,
@@ -180,7 +180,7 @@ trivfs_S_io_select_timeout (struct trivfs_protid *cred,
}
/* Truncate file. */
-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,
off_t size)
@@ -199,7 +199,7 @@ trivfs_S_file_set_size (struct trivfs_protid *cred,
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_get_openmodes (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
int *bits)
@@ -213,7 +213,7 @@ trivfs_S_io_get_openmodes (struct trivfs_protid *cred,
}
}
-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,
@@ -225,7 +225,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,
@@ -237,7 +237,7 @@ trivfs_S_io_set_some_openmodes (struct trivfs_protid *cred,
return 0;
}
-error_t
+kern_return_t
trivfs_S_io_clear_some_openmodes (struct trivfs_protid *cred,
mach_port_t reply,
mach_msg_type_name_t reply_type,
@@ -255,7 +255,7 @@ trivfs_S_io_clear_some_openmodes (struct trivfs_protid *cred,
pgrps. This has nothing to do with the owner of a file (as
returned by io_stat, and as used for various permission checks by
filesystems). An owner of 0 indicates that there is no owner. */
-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,
@@ -271,7 +271,7 @@ trivfs_S_io_get_owner (struct trivfs_protid *cred,
}
}
-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)
@@ -289,7 +289,7 @@ trivfs_S_io_mod_owner (struct trivfs_protid *cred,
/* File syncing operations; these all do the same thing, sync the underlying
device. */
-error_t
+kern_return_t
trivfs_S_file_sync (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
int wait, int omit_metadata)
@@ -300,7 +300,7 @@ trivfs_S_file_sync (struct trivfs_protid *cred,
return EOPNOTSUPP;
}
-error_t
+kern_return_t
trivfs_S_file_syncfs (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
int wait, int dochildren)
@@ -311,7 +311,7 @@ trivfs_S_file_syncfs (struct trivfs_protid *cred,
return EOPNOTSUPP;
}
-error_t
+kern_return_t
trivfs_S_file_get_storage_info (struct trivfs_protid *cred,
mach_port_t reply,
mach_msg_type_name_t reply_type,