diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-04-05 17:40:24 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-04-06 18:09:38 +0200 |
commit | e9687ec4ff525ae4a88314ba4ae97da770bd012f (patch) | |
tree | 9f434a3d390fc926d396c6958594e406090b7e46 /libports/ports.h | |
parent | e27425e63392683b85101961489a83e0abef133b (diff) | |
download | hurd-e9687ec4ff525ae4a88314ba4ae97da770bd012f.tar.gz hurd-e9687ec4ff525ae4a88314ba4ae97da770bd012f.tar.bz2 hurd-e9687ec4ff525ae4a88314ba4ae97da770bd012f.zip |
libports: fix notify_port_t receiver lookups
* libports/Makefile (MIGSFLAGS): Include mig-mutate.h.
* libports/mig-decls.h: New file.
* libports/mig-mutate.h: Likewise.
* libports/notify-dead-name.c: Fix receiver lookups.
* libports/notify-no-senders.c: Likewise.
* libports/notify-msg-accepted.c: Adjust function declaration.
* libports/notify-port-deleted.c: Likewise.
* libports/notify-port-destroyed.c: Likewise.
* libports/notify-send-once.c: Likewise.
* libports/ports.h: Likewise.
* proc/Makefile (MIGSFLAGS): Include mig-mutate.h, move PROCESS mutators...
* proc/mig-mutate.h: ... into a new file, add NOTIFY mutators.
* proc/notify.c: Fix receiver lookups, adjust function declarations.
* term/devio.c (ports_do_mach_notify_send_once): Adjust accordingly.
Diffstat (limited to 'libports/ports.h')
-rw-r--r-- | libports/ports.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/libports/ports.h b/libports/ports.h index 07918412..47d46078 100644 --- a/libports/ports.h +++ b/libports/ports.h @@ -50,6 +50,8 @@ struct port_info hurd_ihash_locp_t hentry; struct port_info *next, **prevp; /* links on port_class list */ }; +typedef struct port_info *port_info_t; + /* FLAGS above are the following: */ #define PORT_HAS_SENDRIGHTS 0x0001 /* send rights extant */ #define PORT_INHIBITED PORTS_INHIBITED @@ -383,13 +385,19 @@ void ports_interrupt_notified_rpcs (void *object, mach_port_t port, int ports_notify_server (mach_msg_header_t *, mach_msg_header_t *); /* Notification server routines called by ports_notify_server. */ -extern kern_return_t ports_do_mach_notify_dead_name (mach_port_t notify, mach_port_t deadport); -extern kern_return_t ports_do_mach_notify_msg_accepted (mach_port_t notify, mach_port_t name); -extern kern_return_t ports_do_mach_notify_no_senders (mach_port_t port, mach_port_mscount_t count); -extern kern_return_t ports_do_mach_notify_port_deleted (mach_port_t notify, mach_port_t name); -extern kern_return_t ports_do_mach_notify_port_destroyed (mach_port_t notify, mach_port_t name); extern kern_return_t - ports_do_mach_notify_send_once (mach_port_t notify); + ports_do_mach_notify_dead_name (struct port_info *pi, mach_port_t deadport); +extern kern_return_t + ports_do_mach_notify_msg_accepted (struct port_info *pi, mach_port_t name); +extern kern_return_t + ports_do_mach_notify_no_senders (struct port_info *pi, + mach_port_mscount_t count); +extern kern_return_t + ports_do_mach_notify_port_deleted (struct port_info *pi, mach_port_t name); +extern kern_return_t + ports_do_mach_notify_port_destroyed (struct port_info *pi, mach_port_t name); +extern kern_return_t + ports_do_mach_notify_send_once (struct port_info *pi); /* A default interrupt server */ int ports_interrupt_server (mach_msg_header_t *, mach_msg_header_t *); |