From d6eaf9738a36214bb63f3e7e114ca5b221df197c Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 6 Sep 1995 22:21:57 +0000 Subject: (sock_demuxer): Use ports_interrupt_server and ports_notify_server instead of our own version. (do_mach_notify_no_senders, do_mach_notify_port_deleted, do_mach_notify_msg_accepted, do_mach_notify_port_destroyed, do_mach_notify_port_deleted, do_mach_notify_send_once, do_mach_notify_dead_name): Functions deleted. --- pflocal/sserver.c | 54 ++---------------------------------------------------- 1 file changed, 2 insertions(+), 52 deletions(-) (limited to 'pflocal/sserver.c') diff --git a/pflocal/sserver.c b/pflocal/sserver.c index fc3581a7..c5ee4cd3 100644 --- a/pflocal/sserver.c +++ b/pflocal/sserver.c @@ -22,8 +22,6 @@ #include -#include "notify_S.h" - #include "debug.h" /* A port bucket to handle SOCK_USERs and ADDRs. */ @@ -41,13 +39,11 @@ sock_demuxer (mach_msg_header_t *inp, mach_msg_header_t *outp) { extern int socket_server (mach_msg_header_t *inp, mach_msg_header_t *outp); extern int io_server (mach_msg_header_t *inp, mach_msg_header_t *outp); - extern int interrupt_server (mach_msg_header_t *, mach_msg_header_t *); - extern int notify_server (mach_msg_header_t *, mach_msg_header_t *); return socket_server (inp, outp) || io_server (inp, outp) - || interrupt_server (inp, outp) - || notify_server (inp, outp); + || ports_interrupt_server (inp, outp) + || ports_notify_server (inp, outp); } /* Handle socket requests while there are sockets around. */ @@ -89,49 +85,3 @@ ensure_sock_server () (any_t)0)); } } - -/* ---------------------------------------------------------------- */ -/* Notify stubs. */ - -error_t -do_mach_notify_no_senders (mach_port_t port, mach_port_mscount_t count) -{ - void *pi = ports_lookup_port (sock_port_bucket, port, 0); -debug (pi, "count: %u, refs: %d", - count, (pi ? ((struct port_info *)pi)->refcnt : 0)); - if (!pi) - return EOPNOTSUPP; - ports_no_senders (pi, count); - ports_port_deref (pi); - return 0; -} - -error_t -do_mach_notify_port_deleted (mach_port_t notify, mach_port_t name) -{ - return 0; -} - -error_t -do_mach_notify_msg_accepted (mach_port_t notify, mach_port_t name) -{ - return 0; -} - -error_t -do_mach_notify_port_destroyed (mach_port_t notify, mach_port_t name) -{ - return 0; -} - -error_t -do_mach_notify_send_once (mach_port_t notify) -{ - return 0; -} - -error_t -do_mach_notify_dead_name (mach_port_t notify, mach_port_t deadport) -{ - return 0; -} -- cgit v1.2.3