freebsd-src/include/rpc
Alan Somers 60314995ef libc/libc/rpc: refactor some global variables
* Combine dg_fd_locks and dg_cv into one array.
* Similarly for vc_fd_locks and vc_cv
* Turn some macros into inline functions

This is a mostly cosmetic change to make refactoring these strutures in
a future commit easier.

Sponsored by:	Axcient
Reviewed by:	kib
Differential Revision: https://reviews.freebsd.org/D42597

(cherry picked from commit a5c2f4e939)

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
Sponsored by:	Axcient
Reviewed by:	kib
Differential Revision: https://reviews.freebsd.org/D42597

(cherry picked from commit 24938f9311)
2023-11-29 20:16:16 -07:00
..
auth_des.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
auth_kerb.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
auth_unix.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
auth.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
clnt_soc.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
clnt_stat.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
clnt.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
des_crypt.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
des.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
nettype.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
pmap_clnt.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
pmap_prot.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
pmap_rmt.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
raw.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
rpc_com.h libc/libc/rpc: refactor some global variables 2023-11-29 20:16:16 -07:00
rpc_msg.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
rpc.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
rpcb_clnt.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
rpcb_prot.x Trim various $FreeBSD$ 2023-10-24 11:22:23 -07:00
rpcent.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
rpcsec_gss.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
svc_auth.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
svc_dg.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
svc_soc.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
svc.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00
xdr.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00