diff options
Diffstat (limited to 'trans')
-rw-r--r-- | trans/crash.c | 4 | ||||
-rw-r--r-- | trans/fakeroot.c | 14 | ||||
-rw-r--r-- | trans/fifo.c | 28 | ||||
-rw-r--r-- | trans/firmlink.c | 10 | ||||
-rw-r--r-- | trans/hello-mt.c | 4 | ||||
-rw-r--r-- | trans/hello.c | 4 | ||||
-rw-r--r-- | trans/ifsock.c | 2 | ||||
-rw-r--r-- | trans/mtab.c | 6 | ||||
-rw-r--r-- | trans/new-fifo.c | 30 | ||||
-rw-r--r-- | trans/null.c | 2 | ||||
-rw-r--r-- | trans/proxy-defpager.c | 2 | ||||
-rw-r--r-- | trans/random.c | 18 | ||||
-rw-r--r-- | trans/streamio.c | 34 | ||||
-rw-r--r-- | trans/symlink.c | 6 |
14 files changed, 82 insertions, 82 deletions
diff --git a/trans/crash.c b/trans/crash.c index 8b624f3a..7816ecc0 100644 --- a/trans/crash.c +++ b/trans/crash.c @@ -990,11 +990,11 @@ kern_return_t S_msg_clear_some_exec_flags (mach_port_t process, mach_port_t refport, int flags) { return EBUSY; } -error_t +kern_return_t S_msg_report_wait (mach_port_t process, thread_t thread, string_t desc, mach_msg_id_t *rpc) { return EBUSY; } -error_t +kern_return_t S_msg_describe_ports (mach_port_t msgport, mach_port_t refport, const mach_port_t *ports, mach_msg_type_number_t nports, data_t *desc, mach_msg_type_number_t *desclen) diff --git a/trans/fakeroot.c b/trans/fakeroot.c index f6defbf4..77f61d7f 100644 --- a/trans/fakeroot.c +++ b/trans/fakeroot.c @@ -280,7 +280,7 @@ netfs_check_open_permissions (struct iouser *user, struct node *np, flags & (O_RDWR|O_EXEC), MACH_PORT_NULL); } -error_t +kern_return_t netfs_S_dir_lookup (struct protid *diruser, const_string_t filename, int flags, @@ -1022,7 +1022,7 @@ netfs_S_file_exec (struct protid *user, destroynames, destroynameslen); } -error_t +kern_return_t netfs_S_io_map (struct protid *user, mach_port_t *rdobj, mach_msg_type_name_t *rdobjtype, mach_port_t *wrobj, mach_msg_type_name_t *wrobjtype) @@ -1039,7 +1039,7 @@ netfs_S_io_map (struct protid *user, return err; } -error_t +kern_return_t netfs_S_io_map_cntl (struct protid *user, mach_port_t *obj, mach_msg_type_name_t *objtype) @@ -1056,7 +1056,7 @@ netfs_S_io_map_cntl (struct protid *user, return err; } -error_t +kern_return_t netfs_S_io_identity (struct protid *user, mach_port_t *id, mach_msg_type_name_t *idtype, @@ -1079,7 +1079,7 @@ netfs_S_io_identity (struct protid *user, } #define NETFS_S_SIMPLE(name) \ -error_t \ +kern_return_t \ netfs_S_##name (struct protid *user) \ { \ error_t err; \ @@ -1100,7 +1100,7 @@ NETFS_S_SIMPLE (io_readnotify) NETFS_S_SIMPLE (io_readsleep) NETFS_S_SIMPLE (io_sigio) -error_t +kern_return_t netfs_S_io_prenotify (struct protid *user, vm_offset_t start, vm_offset_t stop) { @@ -1115,7 +1115,7 @@ netfs_S_io_prenotify (struct protid *user, return err; } -error_t +kern_return_t netfs_S_io_postnotify (struct protid *user, vm_offset_t start, vm_offset_t stop) { diff --git a/trans/fifo.c b/trans/fifo.c index 2f199112..e006dc91 100644 --- a/trans/fifo.c +++ b/trans/fifo.c @@ -320,7 +320,7 @@ trivfs_goaway (struct trivfs_control *cntl, int flags) 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 replytype, memory_object_t *rdobj, @@ -336,7 +336,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 AMT. */ -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, @@ -367,7 +367,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) @@ -393,7 +393,7 @@ trivfs_S_io_readable (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 offset, int whence, off_t *new_offset) @@ -475,7 +475,7 @@ io_select_common (struct trivfs_protid *cred, return err; } -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 *select_type) @@ -483,7 +483,7 @@ trivfs_S_io_select (struct trivfs_protid *cred, return io_select_common (cred, reply, reply_type, NULL, select_type); } -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, @@ -501,7 +501,7 @@ trivfs_S_io_select_timeout (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_name_t data_len, @@ -532,7 +532,7 @@ trivfs_S_io_write (struct trivfs_protid *cred, /* ---------------------------------------------------------------- */ -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) @@ -546,7 +546,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) @@ -560,7 +560,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, @@ -572,7 +572,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, @@ -584,7 +584,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, @@ -604,7 +604,7 @@ trivfs_S_io_clear_some_openmodes (struct trivfs_protid *cred, 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, @@ -616,7 +616,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) diff --git a/trans/firmlink.c b/trans/firmlink.c index 6e2798e6..4bd66062 100644 --- a/trans/firmlink.c +++ b/trans/firmlink.c @@ -203,7 +203,7 @@ trivfs_goaway (struct trivfs_control *cntl, int flags) /* 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 AMT. */ -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, @@ -241,7 +241,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) @@ -258,7 +258,7 @@ trivfs_S_io_readable (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 offset, int whence, off_t *new_offset) @@ -271,7 +271,7 @@ trivfs_S_io_seek (struct trivfs_protid *cred, return the types that are then available. ID_TAG is returned as passed; it is just for the convenience of the user in matching up reply messages with specific requests sent. */ -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) @@ -279,7 +279,7 @@ trivfs_S_io_select (struct trivfs_protid *cred, return EOPNOTSUPP; } -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, diff --git a/trans/hello-mt.c b/trans/hello-mt.c index e99ba754..f39dd9ab 100644 --- a/trans/hello-mt.c +++ b/trans/hello-mt.c @@ -121,7 +121,7 @@ close_hook (struct trivfs_peropen *peropen) /* 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, @@ -180,7 +180,7 @@ trivfs_S_io_read (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) diff --git a/trans/hello.c b/trans/hello.c index 0405fad3..44785ff2 100644 --- a/trans/hello.c +++ b/trans/hello.c @@ -112,7 +112,7 @@ close_hook (struct trivfs_peropen *peropen) /* 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, @@ -160,7 +160,7 @@ trivfs_S_io_read (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) diff --git a/trans/ifsock.c b/trans/ifsock.c index 908fe135..f14b5e72 100644 --- a/trans/ifsock.c +++ b/trans/ifsock.c @@ -123,7 +123,7 @@ trivfs_goaway (struct trivfs_control *fsys, int flags) exit (0); } -error_t +kern_return_t S_ifsock_getsockaddr (struct trivfs_protid *cred, mach_port_t *address) { diff --git a/trans/mtab.c b/trans/mtab.c index e1d7d1c7..b5b4a9a8 100644 --- a/trans/mtab.c +++ b/trans/mtab.c @@ -654,7 +654,7 @@ close_hook (struct trivfs_peropen *peropen) /* 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, @@ -718,7 +718,7 @@ trivfs_S_io_read (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) @@ -844,7 +844,7 @@ trivfs_S_io_get_openmodes (struct trivfs_protid *cred, return 0; } -error_t +kern_return_t trivfs_S_io_set_all_openmodes(struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, diff --git a/trans/new-fifo.c b/trans/new-fifo.c index 88059983..7880eb24 100644 --- a/trans/new-fifo.c +++ b/trans/new-fifo.c @@ -505,7 +505,7 @@ trivfs_goaway (struct trivfs_control *fsys, int flags) 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 replytype, memory_object_t *rdobj, @@ -521,7 +521,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 AMT. */ -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, @@ -553,7 +553,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) @@ -580,7 +580,7 @@ trivfs_S_io_readable (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 offset, int whence, off_t *new_offset) @@ -662,7 +662,7 @@ io_select_common (struct trivfs_protid *cred, return err; } -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 *select_type) @@ -670,7 +670,7 @@ trivfs_S_io_select (struct trivfs_protid *cred, return io_select_common (cred, reply, reply_type, NULL, select_type); } -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, @@ -688,7 +688,7 @@ trivfs_S_io_select_timeout (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_name_t data_len, @@ -715,7 +715,7 @@ trivfs_S_io_write (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) @@ -730,7 +730,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) @@ -744,7 +744,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, @@ -756,7 +756,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, @@ -768,7 +768,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, @@ -788,7 +788,7 @@ trivfs_S_io_clear_some_openmodes (struct trivfs_protid *cred, 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, @@ -800,7 +800,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) @@ -818,7 +818,7 @@ trivfs_S_io_mod_owner (struct trivfs_protid *cred, the command line arguments. If the recipient accepts the request, he (or some delegate) should send fsys_startup to REQUESTOR to start the filesystem up. */ -error_t +kern_return_t trivfs_S_fsys_forward (mach_port_t server, mach_port_t reply, mach_msg_type_name_t replytype, diff --git a/trans/null.c b/trans/null.c index f4ba5582..19a71eba 100644 --- a/trans/null.c +++ b/trans/null.c @@ -269,7 +269,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 replytype, diff --git a/trans/proxy-defpager.c b/trans/proxy-defpager.c index e44db152..386f1b62 100644 --- a/trans/proxy-defpager.c +++ b/trans/proxy-defpager.c @@ -217,7 +217,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 replytype, 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, diff --git a/trans/streamio.c b/trans/streamio.c index 991f9ad5..e42ff908 100644 --- a/trans/streamio.c +++ b/trans/streamio.c @@ -480,7 +480,7 @@ trivfs_goaway (struct trivfs_control *fsys, int flags) } -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, @@ -503,7 +503,7 @@ trivfs_S_io_read (struct trivfs_protid *cred, return err; } -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) @@ -522,7 +522,7 @@ trivfs_S_io_readable (struct trivfs_protid *cred, return err; } -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, @@ -542,7 +542,7 @@ trivfs_S_io_write (struct trivfs_protid *cred, return err; } -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) @@ -610,7 +610,7 @@ io_select_common (struct trivfs_protid *cred, } } -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) @@ -618,7 +618,7 @@ trivfs_S_io_select (struct trivfs_protid *cred, return io_select_common (cred, reply, reply_type, NULL, type); } -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, @@ -627,7 +627,7 @@ trivfs_S_io_select_timeout (struct trivfs_protid *cred, return io_select_common (cred, reply, reply_type, &ts, type); } -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) @@ -642,7 +642,7 @@ trivfs_S_file_set_size (struct trivfs_protid *cred, return 0; } -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) @@ -656,7 +656,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, @@ -668,7 +668,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, @@ -680,7 +680,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, @@ -692,7 +692,7 @@ trivfs_S_io_clear_some_openmodes (struct trivfs_protid *cred, return 0; } -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) @@ -708,7 +708,7 @@ trivfs_S_file_sync (struct trivfs_protid *cred, return err; } -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) @@ -1038,8 +1038,8 @@ dev_read (size_t amount, void **buf, size_t *len, int nowait) return err; } -error_t -device_read_reply_inband (mach_port_t reply, error_t errorcode, +kern_return_t +device_read_reply_inband (mach_port_t reply, kern_return_t errorcode, const io_buf_ptr_inband_t data, mach_msg_type_number_t datalen) { if (reply != phys_reply) @@ -1158,8 +1158,8 @@ dev_write (const void *buf, size_t len, size_t *amount, int nowait) return err; } -error_t -device_write_reply_inband (mach_port_t reply, error_t returncode, int amount) +kern_return_t +device_write_reply_inband (mach_port_t reply, kern_return_t returncode, int amount) { if (reply != phys_reply_writes) return EOPNOTSUPP; diff --git a/trans/symlink.c b/trans/symlink.c index 68f056c4..0046378e 100644 --- a/trans/symlink.c +++ b/trans/symlink.c @@ -122,7 +122,7 @@ main (int argc, char **argv) } } -error_t +kern_return_t S_fsys_getroot (mach_port_t fsys_t, mach_port_t dotdotnode, const id_t *uids, @@ -164,13 +164,13 @@ S_fsys_getroot (mach_port_t fsys_t, return 0; } -error_t +kern_return_t S_fsys_goaway (mach_port_t control, int flags) { exit (0); } -error_t +kern_return_t S_fsys_syncfs (mach_port_t control, int wait, int recurse) |