HomeFreeBSD

Make lim_cur inline if possible.

Description

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

Details

Provenance
mjgAuthored on
Parents
rS341817: fd: tidy up closing a fd
Branches
Unknown
Tags
Unknown