diff options
author | Etienne Brateau <etienne.brateau@gmail.com> | 2022-08-29 21:36:17 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-08-29 21:51:19 +0200 |
commit | 5adb4b834b1eba82b7f3eca6324bed0355cae0af (patch) | |
tree | 3666abd2c80c0821cb365a4238e6ae6ee0964d86 /pflocal | |
parent | ac09ca6c033185382fbfb60e5e47fd1e8a85f6aa (diff) | |
download | hurd-5adb4b834b1eba82b7f3eca6324bed0355cae0af.tar.gz hurd-5adb4b834b1eba82b7f3eca6324bed0355cae0af.tar.bz2 hurd-5adb4b834b1eba82b7f3eca6324bed0355cae0af.zip |
Fix types of read write and readables methods
Message-Id: <20220829193617.13481-1-etienne.brateau@gmail.com>
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/io.c | 6 | ||||
-rw-r--r-- | pflocal/socket.c | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/pflocal/io.c b/pflocal/io.c index 96b2fc48..06749756 100644 --- a/pflocal/io.c +++ b/pflocal/io.c @@ -44,7 +44,7 @@ error_t S_io_read (struct sock_user *user, data_t *data, mach_msg_type_number_t *data_len, - off_t offset, mach_msg_type_number_t amount) + off_t offset, vm_size_t amount) { error_t err; struct pipe *pipe; @@ -80,7 +80,7 @@ S_io_read (struct sock_user *user, error_t S_io_write (struct sock_user *user, const_data_t data, mach_msg_type_number_t data_len, - off_t offset, mach_msg_type_number_t *amount) + off_t offset, vm_size_t *amount) { error_t err; struct pipe *pipe; @@ -119,7 +119,7 @@ S_io_write (struct sock_user *user, a "long time" (this should be the same meaning of "long time" used by the nonblocking flag. */ error_t -S_io_readable (struct sock_user *user, mach_msg_type_number_t *amount) +S_io_readable (struct sock_user *user, vm_size_t *amount) { error_t err; struct pipe *pipe; diff --git a/pflocal/socket.c b/pflocal/socket.c index 8c1ee3e9..8c240e09 100644 --- a/pflocal/socket.c +++ b/pflocal/socket.c @@ -287,10 +287,10 @@ S_socket_peername (struct sock_user *user, /* Send data over a socket, possibly including Mach ports. */ error_t S_socket_send (struct sock_user *user, struct addr *dest_addr, int flags, - const_data_t data, size_t data_len, - const mach_port_t *ports, size_t num_ports, - const_data_t control, size_t control_len, - size_t *amount) + const_data_t data, mach_msg_type_number_t data_len, + const mach_port_t *ports, mach_msg_type_number_t num_ports, + const_data_t control, mach_msg_type_number_t control_len, + vm_size_t *amount) { error_t err = 0; int noblock; @@ -378,11 +378,11 @@ error_t S_socket_recv (struct sock_user *user, mach_port_t *addr, mach_msg_type_name_t *addr_type, int in_flags, - data_t *data, size_t *data_len, + data_t *data, mach_msg_type_name_t *data_len, mach_port_t **ports, mach_msg_type_name_t *ports_type, size_t *num_ports, - data_t *control, size_t *control_len, - int *out_flags, size_t amount) + data_t *control, mach_msg_type_name_t *control_len, + int *out_flags, vm_size_t amount) { error_t err; unsigned flags; |