diff options
author | Luca Dariz <luca@orpolo.org> | 2023-01-16 11:58:51 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-18 02:11:34 +0100 |
commit | cc05ed085b731232a2436efcaf03aa1e92ad20be (patch) | |
tree | 1bfaf6bc8d7db296eeac477206dcb2c186c25e49 /ipc/mach_msg.c | |
parent | c17cb87cc97f817f9705ef932fe2da6d23a1d01a (diff) | |
download | gnumach-cc05ed085b731232a2436efcaf03aa1e92ad20be.tar.gz gnumach-cc05ed085b731232a2436efcaf03aa1e92ad20be.tar.bz2 gnumach-cc05ed085b731232a2436efcaf03aa1e92ad20be.zip |
add msg_user_header_t for user-side msg structure
* include/mach/message.h: use mach_msg_user_header_t only in KERNEL,
and define it as mach_msh_header_t for user space
* ipc/ipc_kmsg.c: use mach_msg_user_header_t where appropriate
* ipc/ipc_kmsg.h: Likewise
* ipc/mach_msg.c: Likewise
* ipc/mach_msg.h: Likewise
* kern/thread.h: Likewise
Message-Id: <20230116105857.240210-2-luca@orpolo.org>
Diffstat (limited to 'ipc/mach_msg.c')
-rw-r--r-- | ipc/mach_msg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ipc/mach_msg.c b/ipc/mach_msg.c index f15164a3..221ea975 100644 --- a/ipc/mach_msg.c +++ b/ipc/mach_msg.c @@ -89,7 +89,7 @@ mach_msg_return_t mach_msg_send( - mach_msg_header_t *msg, + mach_msg_user_header_t *msg, mach_msg_option_t option, mach_msg_size_t send_size, mach_msg_timeout_t time_out, @@ -171,7 +171,7 @@ mach_msg_send( mach_msg_return_t mach_msg_receive( - mach_msg_header_t *msg, + mach_msg_user_header_t *msg, mach_msg_option_t option, mach_msg_size_t rcv_size, mach_port_name_t rcv_name, @@ -286,7 +286,7 @@ mach_msg_receive_continue(void) ipc_thread_t self = current_thread(); ipc_space_t space = current_space(); vm_map_t map = current_map(); - mach_msg_header_t *msg = self->ith_msg; + mach_msg_user_header_t *msg = self->ith_msg; mach_msg_option_t option = self->ith_option; mach_msg_size_t rcv_size = self->ith_rcv_size; mach_msg_timeout_t time_out = self->ith_timeout; @@ -380,7 +380,7 @@ mach_msg_receive_continue(void) mach_msg_return_t mach_msg_trap( - mach_msg_header_t *msg, + mach_msg_user_header_t *msg, mach_msg_option_t option, mach_msg_size_t send_size, mach_msg_size_t rcv_size, @@ -1609,7 +1609,7 @@ mach_msg_continue(void) task_t task = thread->task; ipc_space_t space = task->itk_space; vm_map_t map = task->map; - mach_msg_header_t *msg = thread->ith_msg; + mach_msg_user_header_t *msg = thread->ith_msg; mach_msg_size_t rcv_size = thread->ith_rcv_size; ipc_object_t object = thread->ith_object; ipc_mqueue_t mqueue = thread->ith_mqueue; |