--- Gnu-Mach/ipc/ipc_mqueue.h 2020/09/02 04:36:56 1.1 +++ Gnu-Mach/ipc/ipc_mqueue.h 2020/09/02 04:47:18 1.1.1.4 @@ -1,25 +1,25 @@ -/* +/* * Mach Operating System * Copyright (c) 1991,1990,1989 Carnegie Mellon University * All Rights Reserved. - * + * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. - * + * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * + * * Carnegie Mellon requests users of this software to return to - * + * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 - * + * * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. */ @@ -38,6 +38,7 @@ #include #include #include +#include #include #include @@ -55,24 +56,27 @@ typedef struct ipc_mqueue { #define imq_unlock(mq) simple_unlock(&(mq)->imq_lock_data) extern void -ipc_mqueue_init(/* ipc_mqueue_t */); +ipc_mqueue_init(ipc_mqueue_t); extern void -ipc_mqueue_move(/* ipc_mqueue_t, ipc_mqueue_t, ipc_port_t */); +ipc_mqueue_move(ipc_mqueue_t, ipc_mqueue_t, ipc_port_t); extern void -ipc_mqueue_changed(/* ipc_mqueue_t, mach_msg_return_t */); +ipc_mqueue_changed(ipc_mqueue_t, mach_msg_return_t); + +extern mach_msg_return_t +ipc_mqueue_send(ipc_kmsg_t, mach_msg_option_t, mach_msg_timeout_t); extern mach_msg_return_t -ipc_mqueue_send(/* ipc_kmsg_t, mach_msg_option_t, mach_msg_timeout_t */); +ipc_mqueue_copyin(ipc_space_t, mach_port_t, ipc_mqueue_t *, ipc_object_t *); #define IMQ_NULL_CONTINUE ((void (*)()) 0) extern mach_msg_return_t -ipc_mqueue_receive(/* ipc_mqueue_t, mach_msg_option_t, - mach_msg_size_t, mach_msg_timeout_t, - boolean_t, void (*)(), - ipc_kmsg_t *, mach_port_seqno_t * */); +ipc_mqueue_receive(ipc_mqueue_t, mach_msg_option_t, + mach_msg_size_t, mach_msg_timeout_t, + boolean_t, void (*)(), + ipc_kmsg_t *, mach_port_seqno_t *); /* * extern void @@ -95,7 +99,7 @@ MACRO_BEGIN \ assert(mr == MACH_MSG_SUCCESS); \ MACRO_END -#else MACH_ASSERT +#else /* MACH_ASSERT */ #define ipc_mqueue_send_always(kmsg) \ MACRO_BEGIN \