aboutsummaryrefslogtreecommitdiff
path: root/libports/ports.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-03-17 10:24:30 +0000
committerRoland McGrath <roland@gnu.org>2000-03-17 10:24:30 +0000
commit62b6e3e94d2ab8544840d38ebd2ce591db6b904b (patch)
tree2d8220a06cdc7e0b24606975df95706a032f6ec4 /libports/ports.h
parentc78bdb48c09a261aa2558e3d829df3fa5813270b (diff)
downloadhurd-62b6e3e94d2ab8544840d38ebd2ce591db6b904b.tar.gz
hurd-62b6e3e94d2ab8544840d38ebd2ce591db6b904b.tar.bz2
hurd-62b6e3e94d2ab8544840d38ebd2ce591db6b904b.zip
2000-03-17 Roland McGrath <roland@baalperazim.frob.com>
* get-send-right.c: New file. * ports.h: Declare ports_get_send_right. * Makefile (SRCS): Add get-send-right.c.
Diffstat (limited to 'libports/ports.h')
-rw-r--r--libports/ports.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/libports/ports.h b/libports/ports.h
index ab347c84..6a406ed0 100644
--- a/libports/ports.h
+++ b/libports/ports.h
@@ -1,5 +1,5 @@
/* Ports library for server construction
- Copyright (C) 1993,94,95,96,97,99 Free Software Foundation, Inc.
+ Copyright (C) 1993,94,95,96,97,99,2000 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
This file is part of the GNU Hurd.
@@ -209,10 +209,15 @@ mach_port_t ports_claim_right (void *port);
were called. */
error_t ports_transfer_right (void *topt, void *frompt);
-/* Return the name of the receive right associated with PORT. The user
- is responsible for creating an ordinary send right from this name. */
+/* Return the name of the receive right associated with PORT. This assumes
+ that send rights will shortly be created, and arranges for notifications
+ accordingly. The user is responsible for creating an ordinary send
+ right from this name. */
mach_port_t ports_get_right (void *port);
+/* This convenience function uses ports_get_right, and
+ deals with the creation of a send right as well. */
+mach_port_t ports_get_send_right (void *port);
/* Reference counting */