| Main index | Section 2 | Options |
#include <sys/resource.h>
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). | |
| [EFAULT] | |
| The address specified for res is invalid. | |
| [EINVAL] | |
| The resource specified to getrlimitusage() in the which argument is unknown. | |
| [ENXIO] | |
| The resource specified to getrlimitusage() in the which argument is not accounted, but only enforced in specific situations. Examples of such resources are RLIMIT_FSIZE and RLIMIT_CORE. | |
| GETRLIMITUSAGE (2) | September 27, 2024 |
| Main index | Section 2 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Unix’s “power tools” are more like power switchblades that slice off the operator’s fingers quickly and efficiently. | ” |
| — The Unix Haters' handbook | ||