aboutsummaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-11-24 16:30:39 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-12-03 01:02:48 +0100
commit33c30b4ff76ca22bdedce4aa41d05736a546d86b (patch)
tree180b864093e8130e26b5419a63540fb846b5b472 /proc
parent56cd317cd2fc0a131164be477c0ca0ae81e38c7d (diff)
downloadhurd-33c30b4ff76ca22bdedce4aa41d05736a546d86b.tar.gz
hurd-33c30b4ff76ca22bdedce4aa41d05736a546d86b.tar.bz2
hurd-33c30b4ff76ca22bdedce4aa41d05736a546d86b.zip
Update hurd code to handle the new ABI for sending inlined port rights.
Message-ID: <20231124213041.952886-3-flaviocruz@gmail.com>
Diffstat (limited to 'proc')
-rw-r--r--proc/stubs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/proc/stubs.c b/proc/stubs.c
index dc621ba1..0b4a2cea 100644
--- a/proc/stubs.c
+++ b/proc/stubs.c
@@ -37,7 +37,7 @@ struct msg_sig_post_request
mach_msg_type_t sigcode_type;
natural_t sigcode;
mach_msg_type_t refporttype;
- mach_port_t refport;
+ mach_port_name_inlined_t refport;
};
/* Send the Mach message indicated by msg_spec. */
@@ -124,14 +124,16 @@ send_signal (mach_port_t msgport,
.refporttype = {
/* Type descriptor for refport */
.msgt_name = MACH_MSG_TYPE_COPY_SEND,
- .msgt_size = 32,
+ .msgt_size = 8 * sizeof(mach_port_name_inlined_t),
.msgt_number = 1,
.msgt_inline = TRUE,
.msgt_longform = FALSE,
.msgt_deallocate = FALSE,
.msgt_unused = 0
},
- .refport = refport
+ .refport = {
+ .name = refport
+ }
};
err = mach_msg ((mach_msg_header_t *)&message,