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 /trans | |
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 'trans')
-rw-r--r-- | trans/fifo.c | 10 | ||||
-rw-r--r-- | trans/firmlink.c | 4 | ||||
-rw-r--r-- | trans/hello-mt.c | 2 | ||||
-rw-r--r-- | trans/hello.c | 2 | ||||
-rw-r--r-- | trans/mtab.c | 4 | ||||
-rw-r--r-- | trans/new-fifo.c | 10 | ||||
-rw-r--r-- | trans/null.c | 8 | ||||
-rw-r--r-- | trans/proxy-defpager.c | 6 | ||||
-rw-r--r-- | trans/random.c | 6 | ||||
-rw-r--r-- | trans/streamio.c | 6 |
10 files changed, 29 insertions, 29 deletions
diff --git a/trans/fifo.c b/trans/fifo.c index ce7c7729..894565f6 100644 --- a/trans/fifo.c +++ b/trans/fifo.c @@ -339,8 +339,8 @@ trivfs_S_io_map (struct trivfs_protid *cred, error_t trivfs_S_io_read (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - data_t *data, size_t *data_len, - off_t offs, size_t amount) + data_t *data, mach_msg_type_name_t *data_len, + off_t offs, vm_size_t amount) { error_t err; @@ -368,7 +368,7 @@ trivfs_S_io_read (struct trivfs_protid *cred, error_t trivfs_S_io_readable (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - size_t *amount) + vm_size_t *amount) { error_t err; @@ -502,8 +502,8 @@ trivfs_S_io_select_timeout (struct trivfs_protid *cred, error_t trivfs_S_io_write (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - const_data_t data, size_t data_len, - off_t offs, size_t *amount) + const_data_t data, mach_msg_type_name_t data_len, + off_t offs, vm_size_t *amount) { error_t err; diff --git a/trans/firmlink.c b/trans/firmlink.c index 8a5d01a8..e216146a 100644 --- a/trans/firmlink.c +++ b/trans/firmlink.c @@ -207,7 +207,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, mach_msg_type_number_t amount) + off_t offs, vm_size_t amount) { error_t err = 0; @@ -244,7 +244,7 @@ trivfs_S_io_read (struct trivfs_protid *cred, error_t trivfs_S_io_readable (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - mach_msg_type_number_t *amount) + vm_size_t *amount) { if (! cred) return EOPNOTSUPP; diff --git a/trans/hello-mt.c b/trans/hello-mt.c index 92f814d6..e99ba754 100644 --- a/trans/hello-mt.c +++ b/trans/hello-mt.c @@ -125,7 +125,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, mach_msg_type_number_t amount) + off_t offs, vm_size_t amount) { struct open *op; diff --git a/trans/hello.c b/trans/hello.c index f8f9e7ab..0405fad3 100644 --- a/trans/hello.c +++ b/trans/hello.c @@ -116,7 +116,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, mach_msg_type_number_t amount) + off_t offs, vm_size_t amount) { struct open *op; diff --git a/trans/mtab.c b/trans/mtab.c index caff3385..a2feee7d 100644 --- a/trans/mtab.c +++ b/trans/mtab.c @@ -657,7 +657,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, mach_msg_type_number_t amount) + off_t offs, vm_size_t amount) { error_t err = 0; struct mtab *op; @@ -774,7 +774,7 @@ void (*trivfs_peropen_destroy_hook) (struct trivfs_peropen *) = close_hook; 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) { error_t err = 0; if (!cred) diff --git a/trans/new-fifo.c b/trans/new-fifo.c index 9a959a39..3e9a886c 100644 --- a/trans/new-fifo.c +++ b/trans/new-fifo.c @@ -524,8 +524,8 @@ trivfs_S_io_map (struct trivfs_protid *cred, error_t trivfs_S_io_read (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - data_t *data, size_t *data_len, - off_t offs, size_t amount) + data_t *data, mach_msg_type_name_t *data_len, + off_t offs, vm_size_t amount) { error_t err; @@ -554,7 +554,7 @@ trivfs_S_io_read (struct trivfs_protid *cred, error_t trivfs_S_io_readable (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - size_t *amount) + vm_size_t *amount) { error_t err; @@ -689,8 +689,8 @@ trivfs_S_io_select_timeout (struct trivfs_protid *cred, error_t trivfs_S_io_write (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - const_data_t data, size_t data_len, - off_t offs, size_t *amount) + const_data_t data, mach_msg_type_name_t data_len, + off_t offs, vm_size_t *amount) { error_t err; diff --git a/trans/null.c b/trans/null.c index 034bb103..f4ba5582 100644 --- a/trans/null.c +++ b/trans/null.c @@ -149,8 +149,8 @@ trivfs_S_io_read(struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, data_t *data, mach_msg_type_number_t *datalen, - loff_t offs, - mach_msg_type_number_t amt) + off_t offs, + vm_size_t amt) { if (!cred) return EOPNOTSUPP; @@ -169,7 +169,7 @@ trivfs_S_io_read(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) { if (!cred) return EOPNOTSUPP; @@ -228,7 +228,7 @@ kern_return_t trivfs_S_io_write (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, const_data_t data, mach_msg_type_number_t datalen, - loff_t offs, mach_msg_type_number_t *amt) + off_t offs, vm_size_t *amt) { if (!cred) return EOPNOTSUPP; diff --git a/trans/proxy-defpager.c b/trans/proxy-defpager.c index 8ca25b72..bfeda063 100644 --- a/trans/proxy-defpager.c +++ b/trans/proxy-defpager.c @@ -169,8 +169,8 @@ trivfs_S_io_read (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, data_t *data, mach_msg_type_number_t *datalen, - loff_t offs, - mach_msg_type_number_t amt) + off_t offs, + vm_size_t amt) { if (!cred) return EOPNOTSUPP; @@ -181,7 +181,7 @@ kern_return_t trivfs_S_io_write (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, const_data_t data, mach_msg_type_number_t datalen, - loff_t offs, mach_msg_type_number_t *amt) + loff_t offs, vm_size_t *amt) { if (!cred) return EOPNOTSUPP; diff --git a/trans/random.c b/trans/random.c index c230280a..297253e4 100644 --- a/trans/random.c +++ b/trans/random.c @@ -318,7 +318,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, mach_msg_type_number_t amount) + off_t offs, vm_size_t amount) { error_t err; void *buf = NULL; @@ -377,8 +377,8 @@ trivfs_S_io_write (struct trivfs_protid *cred, mach_msg_type_name_t replytype, const_data_t data, mach_msg_type_number_t datalen, - loff_t offset, - mach_msg_type_number_t *amount) + off_t offset, + vm_size_t *amount) { /* Deny access if they have bad credentials. */ if (! cred) diff --git a/trans/streamio.c b/trans/streamio.c index 30b8b20e..acd5d674 100644 --- a/trans/streamio.c +++ b/trans/streamio.c @@ -482,7 +482,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, mach_msg_type_number_t amount) + off_t offs, vm_size_t amount) { error_t err; @@ -501,7 +501,7 @@ trivfs_S_io_read (struct trivfs_protid *cred, error_t trivfs_S_io_readable (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - mach_msg_type_number_t *amount) + vm_size_t *amount) { error_t err; @@ -521,7 +521,7 @@ error_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, - loff_t offs, mach_msg_type_number_t *amount) + off_t offs, vm_size_t *amount) { error_t err; |