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
err_mach.sub
err_server.sub
err_us.sub
error_compat.c
errorlib.h
errstring.c
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_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
msg.c
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
spin-lock.c
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
syscalls.awk
Versions