aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2023-11-10 17:28:32 +0000
committerAlan Somers <asomers@FreeBSD.org>2023-11-15 23:12:50 +0000
commit24938f9311c9c9acc1ce747f4e6a088c2dbc967d (patch)
tree6f86eae0a579c2bc7c3ac74a03447b9e983b0695 /include
parenta5c2f4e939430f0048136c39fb9fa6093d401905 (diff)
downloadsrc-24938f9311c9c9acc1ce747f4e6a088c2dbc967d.tar.gz
src-24938f9311c9c9acc1ce747f4e6a088c2dbc967d.zip
lib/libc/rpc: switch the per-fd structs in clnt_{dg,vc}.c to RB Trees
This saves oodles of memory, especially when "ulimit -n" is large. It also prevents a buffer overflow if getrlimit should fail. Also replace per-fd condvars with mutexes to simplify the code. PR: 274968 MFC after: 2 weeks Sponsored by: Axcient Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D42597
Diffstat (limited to 'include')
-rw-r--r--include/rpc/rpc_com.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/rpc/rpc_com.h b/include/rpc/rpc_com.h
index a98e3f73bac8..a0a8c8872efa 100644
--- a/include/rpc/rpc_com.h
+++ b/include/rpc/rpc_com.h
@@ -58,7 +58,6 @@
__BEGIN_DECLS
extern u_int __rpc_get_a_size(int);
-extern int __rpc_dtbsize(void);
extern int _rpc_dtablesize(void);
extern struct netconfig * __rpcgettp(int);
extern int __rpc_get_default_domain(char **);