aboutsummaryrefslogtreecommitdiff
path: root/ipc/ipc_right.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-12-11 01:51:50 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-11 09:03:57 +0100
commitc66f3931b45ef05a9acfdaf5b9a6a3e35155e47f (patch)
treea95ddfefbadf62236068369cbc50b476dca2859a /ipc/ipc_right.c
parente6c5ed2c7f9b463833a6592c892ff2920fc88502 (diff)
downloadgnumach-c66f3931b45ef05a9acfdaf5b9a6a3e35155e47f.tar.gz
gnumach-c66f3931b45ef05a9acfdaf5b9a6a3e35155e47f.tar.bz2
gnumach-c66f3931b45ef05a9acfdaf5b9a6a3e35155e47f.zip
Delete rpc copyout multiname code
Message-Id: <Y5V+BovjWo1CCjBc@jupiter.tail36e24.ts.net>
Diffstat (limited to 'ipc/ipc_right.c')
-rw-r--r--ipc/ipc_right.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/ipc/ipc_right.c b/ipc/ipc_right.c
index b62c9314..79f70c3d 100644
--- a/ipc/ipc_right.c
+++ b/ipc/ipc_right.c
@@ -1978,41 +1978,6 @@ ipc_right_copyout(
return KERN_SUCCESS;
}
-#if 0
-/*XXX same, but allows multiple duplicate send rights */
-kern_return_t
-ipc_right_copyout_multiname(space, name, entry, object)
- ipc_space_t space;
- mach_port_t name;
- ipc_entry_t entry;
- ipc_object_t object;
-{
- ipc_entry_bits_t bits = entry->ie_bits;
- ipc_port_t port;
-
- assert(IO_VALID(object));
- assert(io_otype(object) == IOT_PORT);
- assert(io_active(object));
- assert(entry->ie_object == object);
-
- port = (ipc_port_t) object;
-
- assert(port->ip_srights > 0);
-
- assert(IE_BITS_TYPE(bits) == MACH_PORT_TYPE_NONE);
- assert(IE_BITS_UREFS(bits) == 0);
-
- /* transfer send right and ref to entry */
- ip_unlock(port);
-
- /* entry is locked holding ref, so can use port */
-
- entry->ie_bits = (bits | MACH_PORT_TYPE_SEND) + 1;
-
- return KERN_SUCCESS;
-}
-#endif
-
/*
* Routine: ipc_right_rename
* Purpose: