The
getrlimitusage
system call allows the process to query current consumption of the resources
limited by the
setrlimit(2)
call.
The
which
argument specifies the resource, same as for
getrlimit(2)
and
setrlimit(2)
calls, see their man page for the list of enforced resource types.
The
flags
argument modifies the behavior of the call in the following ways:
| GETRLIMITUSAGE_EUID
|
| |
Query the resource usage for user identified by effective UID of the process,
instead of the real UID (which is default for accounting).
|