rlimitCurrOpenFilesLimit

Get the rlimit current number of open files the process is allowed.

This routine returns the current soft limit on the number of open files the process is allowed. This is the number returned by the command: '$ ulimit -n'.

This routine translates this value to a 'uint', as tsv-split uses 'uint' for tracking output files. The rlimit 'rlim_t' type is usually 'ulong' or 'long'. RLIM_INFINITY and any value larger than 'uint.max' is translated to 'uint.max'.

An exception is thrown if call to 'getrlimit' fails.

uint
rlimitCurrOpenFilesLimit
()

Meta