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 /term | |
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 'term')
-rw-r--r-- | term/ptyio.c | 4 | ||||
-rw-r--r-- | term/term.h | 4 | ||||
-rw-r--r-- | term/users.c | 14 |
3 files changed, 11 insertions, 11 deletions
diff --git a/term/ptyio.c b/term/ptyio.c index 928ae0ac..acd1015a 100644 --- a/term/ptyio.c +++ b/term/ptyio.c @@ -302,7 +302,7 @@ error_t pty_io_read (struct trivfs_protid *cred, data_t *data, mach_msg_type_number_t *datalen, - mach_msg_type_number_t amount) + vm_size_t amount) { int size; @@ -386,7 +386,7 @@ error_t pty_io_write (struct trivfs_protid *cred, const_data_t data, mach_msg_type_number_t datalen, - mach_msg_type_number_t *amount) + vm_size_t *amount) { int i, flush; int cancel = 0; diff --git a/term/term.h b/term/term.h index efe27ffa..1e6be5f2 100644 --- a/term/term.h +++ b/term/term.h @@ -387,9 +387,9 @@ extern dev_t rdev; /* kludge--these are pty versions of trivfs_S_io_* functions called by the real functions in users.c to do work for ptys. */ error_t pty_io_write (struct trivfs_protid *, const char *, - mach_msg_type_number_t, mach_msg_type_number_t *); + mach_msg_type_number_t, vm_size_t *); error_t pty_io_read (struct trivfs_protid *, char **, - mach_msg_type_number_t *, mach_msg_type_number_t); + mach_msg_type_number_t *, vm_size_t); error_t pty_io_readable (size_t *); error_t pty_io_select (struct trivfs_protid *, mach_port_t, struct timespec *, int *); diff --git a/term/users.c b/term/users.c index 72f5507d..59f02b66 100644 --- a/term/users.c +++ b/term/users.c @@ -562,9 +562,9 @@ trivfs_S_io_write (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, const_data_t data, - size_t datalen, - loff_t offset, - size_t *amt) + mach_msg_type_name_t datalen, + off_t offset, + vm_size_t *amt) { int i; int cancel; @@ -640,9 +640,9 @@ trivfs_S_io_read (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, data_t *data, - size_t *datalen, - loff_t offset, - size_t amount) + mach_msg_type_name_t *datalen, + off_t offset, + vm_size_t amount) { int cancel; int i, max; @@ -820,7 +820,7 @@ error_t trivfs_S_io_readable (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, - size_t *amt) + vm_size_t *amt) { if (!cred) return EOPNOTSUPP; |