Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include/rpc Switch to the size-unlimited fd_set. Some code w...



details:   https://anonhg.NetBSD.org/src/rev/e2ccd9c7cf4a
branches:  trunk
changeset: 341450:e2ccd9c7cf4a
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 06 19:42:57 2015 +0000

description:
Switch to the size-unlimited fd_set. Some code will need to change to be
able to use this if the code allocates its own fd_set's.

diffstat:

 include/rpc/svc.h |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r d7cb6fcf0349 -r e2ccd9c7cf4a include/rpc/svc.h
--- a/include/rpc/svc.h Fri Nov 06 19:35:40 2015 +0000
+++ b/include/rpc/svc.h Fri Nov 06 19:42:57 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svc.h,v 1.26 2015/11/06 19:35:40 christos Exp $        */
+/*     $NetBSD: svc.h,v 1.27 2015/11/06 19:42:57 christos Exp $        */
 
 /*
  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -290,14 +290,15 @@
  * Global keeper of rpc service descriptors in use
  * dynamic; must be inspected before each call to select
  */
+#ifdef SVC_LEGACY
 extern int svc_maxfd;
-#ifdef FD_SETSIZE
 extern fd_set svc_fdset;
+#else
+#define svc_maxfd (*svc_fdset_getmax())
+#define svc_fdset (*svc_fdset_get())
+#endif
+
 #define svc_fds svc_fdset.fds_bits[0]  /* compatibility */
-#else
-extern int svc_fds;
-#endif /* def FD_SETSIZE */
-
 
 /*
  * a small program implemented by the svc_rpc implementation itself;



Home | Main Index | Thread Index | Old Index