summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2016-03-03 13:40:05 -0500
committerSteve Dickson <steved@redhat.com>2016-03-03 14:18:30 -0500
commitf48895e0907f090945900b55ba6ac67a90bed17d (patch)
tree9260e77238f4694687e6194f15d83f246c0d1b62 /src
parentc69164ae0d3186022f4eea035776987f31860373 (diff)
downloadti-rpc-f48895e0907f090945900b55ba6ac67a90bed17d.tar.gz
_rpc_dtablesize cleanup
Remove old, meanwhile wrong comment about FD_SETSIZE and _rpc_dtablesize(). Remove the local prototype for _rpc_dtablesize() but use the public header instead. Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/rpc_dtablesize.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/rpc_dtablesize.c b/src/rpc_dtablesize.c
index 13d320c..3fe503a 100644
--- a/src/rpc_dtablesize.c
+++ b/src/rpc_dtablesize.c
@@ -27,22 +27,14 @@
*/
#include <unistd.h>
-
#include <sys/select.h>
-
-int _rpc_dtablesize(void); /* XXX */
+#include <rpc/clnt.h>
+#include <rpc/rpc_com.h>
/*
* Cache the result of getdtablesize(), so we don't have to do an
* expensive system call every time.
*/
-/*
- * XXX In FreeBSD 2.x, you can have the maximum number of open file
- * descriptors be greater than FD_SETSIZE (which us 256 by default).
- *
- * Since old programs tend to use this call to determine the first arg
- * for _select(), having this return > FD_SETSIZE is a Bad Idea(TM)!
- */
int
_rpc_dtablesize(void)
{