1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

hurd: Fix vm_size_t incoherencies

In gnumach, 3e1702a65fb3 ("add rpc_versions for vm types") changed the type
of vm_size_t, making it always a unsigned long. This made it incompatible on
x86 with size_t. Even if we may want to revert it to unsigned int, it's
better to fix the types of parameters according to the .defs files.
This commit is contained in:
Samuel Thibault
2022-08-29 01:42:47 +02:00
parent cb033e6b0c
commit 063f7462da
12 changed files with 18 additions and 14 deletions

View File

@@ -382,7 +382,7 @@ __ssize_t weak_function
__write (int fd, const void *buf, size_t nbytes)
{
error_t err;
mach_msg_type_number_t nwrote;
vm_size_t nwrote;
assert (fd < _hurd_init_dtablesize);
@@ -415,7 +415,7 @@ __writev (int fd, const struct iovec *iov, int niov)
{
char buf[total], *bufp = buf;
error_t err;
mach_msg_type_number_t nwrote;
vm_size_t nwrote;
for (i = 0; i < niov; ++i)
bufp = (memcpy (bufp, iov[i].iov_base, iov[i].iov_len)