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++. */
8extern int __getpriority (__priority_which_t __which, id_t __who) __THROW;
9libc_hidden_proto (__getpriority)
10extern int __setpriority (__priority_which_t __which, id_t __who, int __prio)
11 __THROW;
12libc_hidden_proto (__setpriority)
13libc_hidden_proto (getrlimit64)
14extern __typeof (getrlimit64) __getrlimit64;
15libc_hidden_proto (__getrlimit64);
16
17/* Now define the internal interfaces. */
18extern int __getrlimit (enum __rlimit_resource __resource,
19 struct rlimit *__rlimits);
20libc_hidden_proto (__getrlimit)
21extern int __getrusage (enum __rusage_who __who, struct rusage *__usage)
22 attribute_hidden;
23
24extern int __setrlimit (enum __rlimit_resource __resource,
25 const struct rlimit *__rlimits);
26#endif
27#endif
28