diff options
Diffstat (limited to 'libc-bottom-half/headers/public/__header_sys_resource.h')
-rw-r--r-- | libc-bottom-half/headers/public/__header_sys_resource.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libc-bottom-half/headers/public/__header_sys_resource.h b/libc-bottom-half/headers/public/__header_sys_resource.h new file mode 100644 index 0000000..bae9d5a --- /dev/null +++ b/libc-bottom-half/headers/public/__header_sys_resource.h @@ -0,0 +1,19 @@ +#ifndef __wasilibc___header_sys_resource_h +#define __wasilibc___header_sys_resource_h + +#include <__struct_rusage.h> + +#define RUSAGE_SELF 1 +#define RUSAGE_CHILDREN 2 + +#ifdef __cplusplus +extern "C" { +#endif + +int getrusage(int who, struct rusage *usage); + +#ifdef __cplusplus +} +#endif + +#endif |