diff options
author | Miles Bader <miles@gnu.org> | 1995-07-22 04:48:48 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-07-22 04:48:48 +0000 |
commit | 9d47d898acc7878d9420b364a2e953319683d17f (patch) | |
tree | b1af71b86ceaaad2fdb6f8c2dea6bd89c87b7b8a /pflocal | |
parent | 341cb04a7f30fb08a10fa6a604b0efc9561846a7 (diff) |
Formerly sserver.c.~3~
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/sserver.c | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/pflocal/sserver.c b/pflocal/sserver.c index 830e883b..8d835a7c 100644 --- a/pflocal/sserver.c +++ b/pflocal/sserver.c @@ -1,7 +1,35 @@ -/* ---------------------------------------------------------------- */ +/* Server for socket ops + + Copyright (C) 1995 Free Software Foundation, Inc. + + Written by Miles Bader <miles@gnu.ai.mit.edu> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#include <cthreads.h> + +#include <hurd/ports.h> + +#include "notify_S.h" + +#include "debug.h" /* A port bucket to handle SOCK_USERs and ADDRs. */ struct port_bucket *sock_port_bucket; + +/* ---------------------------------------------------------------- */ /* True if there are threads servicing sock requests. */ static int sock_server_active = 0; @@ -69,8 +97,8 @@ 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: %ul, refs: %d", - count, (pi ? ((struct port_info *)pi->refcnt) : 0)); +debug (pi, "count: %lu, refs: %d", + count, (pi ? ((struct port_info *)pi)->refcnt : 0)); if (!pi) return EOPNOTSUPP; ports_no_senders (pi, count); |