diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-25 12:21:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-25 12:21:19 +0000 |
commit | 88e4ace75cca1aa599e32493bfffdad22d82de36 (patch) | |
tree | f8c6b137bacd304661ea34576b2a884097ed1f8b /lib | |
parent | 20c4390c97013d61b38c5c8cac25a41aa680be2d (diff) |
__svc_fdsetsize is a max bitcount; like FDSETSIZE before it
Diffstat (limited to 'lib')
-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) |