--- Gnu-Mach/ipc/ipc_marequest.h 2020/09/02 04:36:56 1.1 +++ Gnu-Mach/ipc/ipc_marequest.h 2020/09/02 04:45:07 1.1.1.3 @@ -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. */ @@ -34,10 +34,10 @@ #ifndef _IPC_IPC_MAREQUEST_H_ #define _IPC_IPC_MAREQUEST_H_ -#include - #include #include +#include +#include /* * A msg-accepted request is made when MACH_SEND_NOTIFY is used @@ -70,29 +70,30 @@ typedef struct ipc_marequest { #define IMAR_NULL ((ipc_marequest_t) 0) +#define IPC_MAREQUEST_SIZE 16 extern void -ipc_marequest_init(); +ipc_marequest_init(void); #if MACH_IPC_DEBUG extern unsigned int -ipc_marequest_info(/* unsigned int *, hash_info_bucket_t *, unsigned int */); +ipc_marequest_info(unsigned int *, hash_info_bucket_t *, unsigned int); -#endif MACH_IPC_DEBUG +#endif /* MACH_IPC_DEBUG */ extern mach_msg_return_t -ipc_marequest_create(/* ipc_space_t space, mach_port_t name, - ipc_port_t soright, ipc_marequest_t *marequestp */); +ipc_marequest_create(ipc_space_t space, ipc_port_t port, + mach_port_t notify, ipc_marequest_t *marequestp); extern void -ipc_marequest_cancel(/* ipc_space_t space, mach_port_t name */); +ipc_marequest_cancel(ipc_space_t space, mach_port_t name); extern void -ipc_marequest_rename(/* ipc_space_t space, - mach_port_t old, mach_port_t new */); +ipc_marequest_rename(ipc_space_t space, + mach_port_t old, mach_port_t new); extern void -ipc_marequest_destroy(/* ipc_marequest_t marequest */); +ipc_marequest_destroy(ipc_marequest_t marequest); -#endif _IPC_IPC_MAREQUEST_H_ +#endif /* _IPC_IPC_MAREQUEST_H_ */