lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | #ifndef _SYS_RESOURCE_H |
| 2 | #include <resource/sys/resource.h> |
| 3 | |
| 4 | #ifndef _ISOMAC |
| 5 | /* Prototypes repeated instead of using __typeof because |
| 6 | sys/resource.h is included in C++ tests, and declaring functions |
| 7 | with __typeof and __THROW doesn't work for C++. */ |
| 8 | extern int __getpriority (__priority_which_t __which, id_t __who) __THROW; |
| 9 | libc_hidden_proto (__getpriority) |
| 10 | extern int __setpriority (__priority_which_t __which, id_t __who, int __prio) |
| 11 | __THROW; |
| 12 | libc_hidden_proto (__setpriority) |
| 13 | libc_hidden_proto (getrlimit64) |
| 14 | extern __typeof (getrlimit64) __getrlimit64; |
| 15 | libc_hidden_proto (__getrlimit64); |
| 16 | |
| 17 | /* Now define the internal interfaces. */ |
| 18 | extern int __getrlimit (enum __rlimit_resource __resource, |
| 19 | struct rlimit *__rlimits); |
| 20 | libc_hidden_proto (__getrlimit) |
| 21 | extern int __getrusage (enum __rusage_who __who, struct rusage *__usage) |
| 22 | attribute_hidden; |
| 23 | |
| 24 | extern int __setrlimit (enum __rlimit_resource __resource, |
| 25 | const struct rlimit *__rlimits); |
| 26 | #endif |
| 27 | #endif |