PC-BSD/trueos 5936383sys/kern kern_resource.c, sys/sys resourcevar.h

Make lim_cur inline if possible.

It is a function call only to accomodate *some* ABIs which install a hook.
They only care for 3 types of limits: DATA, STACK, VMEM

Instead of always calling the func, see at compilation time if the requested
limit is something else and just do the read if so.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+13-0sys/sys/resourcevar.h
+1-1sys/kern/kern_resource.c
+14-12 files

UnifiedSplitRaw