1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00
freebsd/include/rpc
Alan Somers ad8b59ffe7 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-30 13:42:55 -07:00
..
auth_des.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
auth_kerb.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
auth_unix.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
auth.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
clnt_soc.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
clnt_stat.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
clnt.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
des_crypt.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
des.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-23 11:43:30 -06:00
nettype.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
pmap_clnt.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
pmap_prot.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
pmap_rmt.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
raw.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
rpc_com.h libc/libc/rpc: refactor some global variables 2023-11-30 13:42:55 -07:00
rpc_msg.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
rpc.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
rpcb_clnt.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
rpcb_prot.x Trim various $FreeBSD$ 2023-10-24 11:23:57 -07:00
rpcent.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
rpcsec_gss.h Remove $FreeBSD$: two-line .h pattern 2023-08-23 11:43:21 -06:00
svc_auth.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
svc_dg.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
svc_soc.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-23 11:43:23 -06:00
svc.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00
xdr.h Remove $FreeBSD$: one-line .h pattern 2023-08-23 11:43:22 -06:00