diff options
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r-- | lib/libc/rpc/rpc.3 | 9 | ||||
-rw-r--r-- | lib/libc/rpc/svc.c | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/lib/libc/rpc/rpc.3 b/lib/libc/rpc/rpc.3 index 36998e3da08..174152325bd 100644 --- a/lib/libc/rpc/rpc.3 +++ b/lib/libc/rpc/rpc.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: rpc.3,v 1.7 1998/02/25 11:46:51 deraadt Exp $ +.\" $OpenBSD: rpc.3,v 1.8 1998/02/25 12:21:16 deraadt Exp $ .\" Mostly converted to mandoc by Theo de Raadt, Tue Feb 24 04:04:46 MST 1998 .\" .Dd February 16, 1988 @@ -795,9 +795,12 @@ and are global variables reflecting the .Tn RPC service side's -read file descriptor bit mask. This can expand to the full size that +read file descriptor bit mask. +.Fa __svc_fdsetsize +is a count of the number of checkable bits in +.Fa __svc_fdset, and can expand to the full size that .Xr select 2 -can support and hence exceed +supports, hence exceeding .Fa FD_SETSIZE if required. These variables are only of interest diff --git a/lib/libc/rpc/svc.c b/lib/libc/rpc/svc.c index 698570a4548..bb82d599054 100644 --- a/lib/libc/rpc/svc.c +++ b/lib/libc/rpc/svc.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: svc.c,v 1.10 1997/09/22 05:11:09 millert Exp $"; +static char *rcsid = "$OpenBSD: svc.c,v 1.11 1998/02/25 12:21:18 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -97,7 +97,7 @@ xprt_register(xprt) free(__svc_fdset); } __svc_fdset = fds; - __svc_fdsetsize = howmany(sock+1, NFDBITS); + __svc_fdsetsize = sock+1; } if (sock < FD_SETSIZE) |