forked from pool/libtirpc
45 lines
1.2 KiB
Diff
45 lines
1.2 KiB
Diff
|
From ee37905bd6221576deabd9413403c0dee079b605 Mon Sep 17 00:00:00 2001
|
||
|
From: Thorsten Kukuk <kukuk@thkukuk.de>
|
||
|
Date: Thu, 25 Feb 2016 12:48:24 +0100
|
||
|
Subject: [PATCH 1/5] 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>
|
||
|
---
|
||
|
src/rpc_dtablesize.c | 12 ++----------
|
||
|
1 file 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)
|
||
|
{
|
||
|
--
|
||
|
1.8.5.6
|
||
|
|