glibc/mach
Sergey Bugaev 62d6c33030 mach, hurd: Cast through uintptr_t
When casting between a pointer and an integer of a different size, GCC
emits a warning (which is escalated to a build failure by -Werror).
Indeed, if what you start with is a pointer, which you then cast to a
shorter integer and then back again, you're going to cut off some bits
of the pointer.

But if you start with an integer (such as mach_port_t), then cast it to
a longer pointer (void *), and then back to a shorter integer, you are
fine. To keep GCC happy, cast through an intermediary uintptr_t, which
is always the same size as a pointer.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230212111044.610942-4-bugaevc@gmail.com>
2023-02-12 15:55:04 +01:00
..
mach Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
devstream.c mach, hurd: Cast through uintptr_t 2023-02-12 15:55:04 +01:00
err_boot.sub
err_ipc.sub
err_kern.sub hurd: make strerror(0) coherent with other ports 2019-12-01 16:36:43 +00:00
err_mach.sub
err_server.sub
err_us.sub
error_compat.c
errorlib.h
errstring.c hurd: Avoid some libc.so PLTs 2018-04-02 22:08:55 +00:00
errsystems.awk
lock-intern.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
lowlevellock.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mach_error.c mach: Fix old-style function definition. 2016-09-20 23:10:51 +02:00
mach_error.h
mach_init.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mach_init.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mach.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Machrules Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Makefile Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mig_memcpy.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mig_strncpy.c
mig-alloc.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mig-dealloc.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mig-reply.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
msg-destroy.c hurd: Avoid some libc.so PLTs 2018-04-02 22:08:55 +00:00
msg.c hurd: Avoid PLT ref to __mach_msg 2018-06-16 02:50:30 +02:00
msgserver.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mutex-init.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
mutex-solid.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
setup-thread.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
shortcut.awk hurd: Avoid PLT references to shortcuts 2018-06-16 02:48:41 +02:00
spin-lock.c hurd: Add missing symbols 2018-04-04 02:17:49 +02:00
spin-lock.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
spin-solid.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
stack_chk_fail_local.c hurd: fix build with -fstack-protector-strong 2017-08-27 22:10:17 +02:00
syscalls.awk
Versions hurd: break relocation loop between libc.so and lib{mach,hurd}user.so 2020-11-14 00:52:52 +01:00