[PATCH gnumach] x86_64: Support 8 byte inlined port rights to avoid message resizing.

2023-11-29 Thread Flavio Cruz
If a port is inlined in a message, the user has to use mach_port_name_inlined_t to define each port. Out of line memory continues to use mach_port_name_t since that memory has to be copied to the kernel anyway. Both copyinmsg and copyoutmsg can be reduced to nothing (if we ignore USER32) as a foll

Re: [PATCH gnumach] Use MACH_PORT_NAME_NULL and MACH_PORT_NAME_DEAD when checking for null or dead rights

2023-11-29 Thread Samuel Thibault
Applied, thanks! Flavio Cruz, le mer. 29 nov. 2023 00:28:38 -0500, a ecrit: > Comparing mach_port_name_t that is MACH_PORT_NAME_DEAD against > MACH_PORT_DEAD will always return false. > --- > ipc/ipc_space.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ipc/ipc_space.h

Re: [PATCH gnumach] Use MACH_PORT_NAME_NULL and MACH_PORT_NAME_DEAD when checking for null or dead rights

2023-11-29 Thread Samuel Thibault
Flavio Cruz, le mer. 29 nov. 2023 00:28:38 -0500, a ecrit: > Comparing mach_port_name_t that is MACH_PORT_NAME_DEAD against > MACH_PORT_DEAD will always return false. > --- > ipc/ipc_space.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ipc/ipc_space.h b/ipc/ipc_space.h