aboutsummaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorEtienne Brateau <etienne.brateau@gmail.com>2022-08-29 21:36:17 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-29 21:51:19 +0200
commit5adb4b834b1eba82b7f3eca6324bed0355cae0af (patch)
tree3666abd2c80c0821cb365a4238e6ae6ee0964d86 /pfinet
parentac09ca6c033185382fbfb60e5e47fd1e8a85f6aa (diff)
downloadhurd-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 'pfinet')
-rw-r--r--pfinet/io-ops.c10
-rw-r--r--pfinet/socket-ops.c16
-rw-r--r--pfinet/tunnel.c6
3 files changed, 16 insertions, 16 deletions
diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c
index fa6350c3..6269743d 100644
--- a/pfinet/io-ops.c
+++ b/pfinet/io-ops.c
@@ -37,9 +37,9 @@
error_t
S_io_write (struct sock_user *user,
const_data_t data,
- size_t datalen,
+ mach_msg_type_number_t datalen,
off_t offset,
- mach_msg_type_number_t *amount)
+ vm_size_t *amount)
{
error_t err;
struct iovec iov = { (void*) data, datalen };
@@ -70,9 +70,9 @@ S_io_write (struct sock_user *user,
error_t
S_io_read (struct sock_user *user,
data_t *data,
- size_t *datalen,
+ mach_msg_type_number_t *datalen,
off_t offset,
- mach_msg_type_number_t amount)
+ vm_size_t amount)
{
error_t err;
int alloced = 0;
@@ -135,7 +135,7 @@ S_io_seek (struct sock_user *user,
error_t
S_io_readable (struct sock_user *user,
- mach_msg_type_number_t *amount)
+ vm_size_t *amount)
{
struct sock *sk;
error_t err;
diff --git a/pfinet/socket-ops.c b/pfinet/socket-ops.c
index db1b92cd..8d27c383 100644
--- a/pfinet/socket-ops.c
+++ b/pfinet/socket-ops.c
@@ -431,12 +431,12 @@ S_socket_send (struct sock_user *user,
struct sock_addr *addr,
int flags,
const_data_t data,
- size_t datalen,
+ mach_msg_type_number_t datalen,
const mach_port_t *ports,
- size_t nports,
+ mach_msg_type_number_t nports,
const_data_t control,
- size_t controllen,
- mach_msg_type_number_t *amount)
+ mach_msg_type_number_t controllen,
+ vm_size_t *amount)
{
int sent;
struct iovec iov = { (void*) data, datalen };
@@ -478,14 +478,14 @@ S_socket_recv (struct sock_user *user,
mach_msg_type_name_t *addrporttype,
int flags,
data_t *data,
- size_t *datalen,
+ mach_msg_type_number_t *datalen,
mach_port_t **ports,
mach_msg_type_name_t *portstype,
- size_t *nports,
+ mach_msg_type_number_t *nports,
data_t *control,
- size_t *controllen,
+ mach_msg_type_number_t *controllen,
int *outflags,
- mach_msg_type_number_t amount)
+ vm_size_t amount)
{
error_t err;
union { struct sockaddr_storage storage; struct sockaddr sa; } addr;
diff --git a/pfinet/tunnel.c b/pfinet/tunnel.c
index 1082404e..e11ab670 100644
--- a/pfinet/tunnel.c
+++ b/pfinet/tunnel.c
@@ -291,7 +291,7 @@ error_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,
- loff_t offs, size_t amount)
+ off_t offs, vm_size_t amount)
{
struct tunnel_device *tdev;
struct sk_buff *skb;
@@ -372,7 +372,7 @@ trivfs_S_io_write (struct trivfs_protid *cred,
const_data_t data,
mach_msg_type_number_t datalen,
off_t offset,
- mach_msg_type_number_t *amount)
+ vm_size_t *amount)
{
struct tunnel_device *tdev;
struct sk_buff *skb;
@@ -415,7 +415,7 @@ trivfs_S_io_write (struct trivfs_protid *cred,
kern_return_t
trivfs_S_io_readable (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t replytype,
- mach_msg_type_number_t *amount)
+ vm_size_t *amount)
{
struct tunnel_device *tdev;
struct sk_buff *skb;