chickadee » rlimit » rlimit

rlimit RESOURCE #!optional HARD?procedure

Returns the current limit for the RESOURCE, which should be one of the resource-identifiers listed below. By default the soft limit is returned, but if HARD? is given and true, the current hard limit is returned. See the getrlimit(2) man page for more information.

Note that if no limit is set, +inf.0 will be returned.