summaryrefslogtreecommitdiff
path: root/ipc/ipc_port.h
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-12-03 20:16:16 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:57 +0200
commit96c01087a657dfc1c877b63e9e6b0f45c37b9c78 (patch)
tree11f6e4d507c8327b52d167a718ec65c184c6bbfd /ipc/ipc_port.h
parenta0e81d1ebfbf11bc056f729242e8565f177afa95 (diff)
2006-12-03 Thomas Schwinge <tschwinge@gnu.org>
[patch #5017 --- ``Remove obsolete IPC interfaces.''] * DEVELOPMENT: Document the removal. * configfrag.ac (MACH_IPC_COMPAT): Don't define. 2006-12-03 Leonardo Lopes Pereira <leonardolopespereira@gmail.com> [patch #5017 --- ``Remove obsolete IPC interfaces.''] * kern/act.c [MIGRATING_THREADS]: Don't include <mach_ipc_compat.h>. * kern/act.h: Likewise. * i386/include/mach/i386/machine_types.defs: Adapt all users of MACH_IPC_COMPAT as if it were always defined to `0'. * include/mach/mach.defs: Likewise. * include/mach/mach_param.h: Likewise. * include/mach/mach_traps.h: Likewise. * include/mach/message.h: Likewise. * include/mach/mig_errors.h: Likewise. * include/mach/notify.h: Likewise. * include/mach/port.h: Likewise. * include/mach/std_types.defs: Likewise. * include/mach/syscall_sw.h: Likewise. * include/mach/task_special_ports.h: Likewise. * include/mach/thread_special_ports.h: Likewise. * ipc/ipc_kmsg.c: Likewise. * ipc/ipc_kmsg.h: Likewise. * ipc/ipc_marequest.c: Likewise. * ipc/ipc_notify.c: Likewise. * ipc/ipc_notify.h: Likewise. * ipc/ipc_object.c: Likewise. * ipc/ipc_object.h: Likewise. * ipc/ipc_port.c: Likewise. * ipc/ipc_port.h: Likewise. * ipc/ipc_right.c: Likewise. * ipc/ipc_right.h: Likewise. * ipc/ipc_space.c: Likewise. * ipc/ipc_space.h: Likewise. * ipc/mach_debug.c: Likewise. * ipc/mach_msg.c: Likewise * ipc/mach_msg.h: Likewise. * ipc/mach_port.c: Likewise. * kern/act.c: Likewise. * kern/act.h: Likewise. * kern/ipc_host.c: Likewise. * kern/ipc_tt.c: Likewise. * kern/syscall_sw.c: Likewise. * kern/thread.h: Likewise.
Diffstat (limited to 'ipc/ipc_port.h')
-rw-r--r--ipc/ipc_port.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/ipc/ipc_port.h b/ipc/ipc_port.h
index 4b269b6..3424f88 100644
--- a/ipc/ipc_port.h
+++ b/ipc/ipc_port.h
@@ -148,30 +148,6 @@ typedef struct ipc_port_request {
#define IPR_NULL ((ipc_port_request_t) 0)
-#if MACH_IPC_COMPAT
-/*
- * For backwards compatibility, the ip_pdrequest field can hold a
- * send right instead of a send-once right. This is indicated by
- * the low bit of the pointer. This works because the zone package
- * guarantees that the two low bits of port pointers are zero.
- */
-
-#define ip_pdsendp(soright) ((unsigned int)(soright) & 1)
-#define ip_pdsend(soright) ((ipc_port_t)((unsigned int)(soright) &~ 1))
-#define ip_pdsendm(sright) ((ipc_port_t)((unsigned int)(sright) | 1))
-
-/*
- * For backwards compatibility, the ipr_soright field can hold
- * a space pointer. This is indicated by the low bit of the pointer.
- * This works because the zone package guarantees that the two low
- * bits of port and space pointers are zero.
- */
-
-#define ipr_spacep(soright) ((unsigned int)(soright) & 1)
-#define ipr_space(soright) ((ipc_space_t)((unsigned int)(soright) &~ 1))
-#define ipr_spacem(space) ((ipc_port_t)((unsigned int)(space) | 1))
-#endif /* MACH_IPC_COMPAT */
-
/*
* Taking the ipc_port_multiple lock grants the privilege
* to lock multiple ports at once. No ports must locked
@@ -349,19 +325,6 @@ ipc_port_dealloc_special(/* ipc_port_t */);
#define ipc_port_release(port) \
ipc_object_release(&(port)->ip_object)
-#if MACH_IPC_COMPAT
-
-extern kern_return_t
-ipc_port_alloc_compat(/* ipc_space_t, mach_port_t *, ipc_port_t * */);
-
-extern mach_port_t
-ipc_port_copyout_send_compat(/* ipc_port_t, ipc_space_t */);
-
-extern mach_port_t
-ipc_port_copyout_receiver(/* ipc_port_t, ipc_space_t */);
-
-#endif /* MACH_IPC_COMPAT */
-
extern void
ipc_port_print(/* ipc_port_t */);