diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2023-12-14 01:06:37 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-12-17 23:57:00 +0100 |
commit | 6b494f5e7599ece2ca981472d690db3df3133bde (patch) | |
tree | 82ea19a196c6e4c8c53ddce4d1528e92b9751cb1 /trans/new-fifo.c | |
parent | b1d240be9b36a1db738e1357081987873be94636 (diff) | |
download | hurd-6b494f5e7599ece2ca981472d690db3df3133bde.tar.gz hurd-6b494f5e7599ece2ca981472d690db3df3133bde.tar.bz2 hurd-6b494f5e7599ece2ca981472d690db3df3133bde.zip |
Update server handlers to return kern_return_error to fix -Werror=enum-int-mismatch warnings
MiG expects those to return kern_return_t.
Message-ID: <ZXqbbXpVqQAwd2qv@jupiter.tail36e24.ts.net>
Diffstat (limited to 'trans/new-fifo.c')
-rw-r--r-- | trans/new-fifo.c | 30 |
1 files changed, 15 insertions, 15 deletions
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, |