| 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.
| “ | On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. | ” |
| — Charles Babbage | ||