diff options
author | Miles Bader <miles@gnu.org> | 1995-09-06 22:21:57 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-09-06 22:21:57 +0000 |
commit | d6eaf9738a36214bb63f3e7e114ca5b221df197c (patch) | |
tree | 78dab1292a4cb9a58fef05e6c1a03be5b5d42582 /pflocal | |
parent | 6d996b453b6b7e7362f323082a1f0ddccb1ead3f (diff) |
(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.
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/sserver.c | 54 |
1 files changed, 2 insertions, 52 deletions
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 <hurd/ports.h> -#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; -} |