1998-09-06 23:45:24 +00:00
|
|
|
#ifndef _SYS_RESOURCE_H
|
1995-02-18 01:27:10 +00:00
|
|
|
#include <resource/sys/resource.h>
|
1998-08-09 17:39:48 +00:00
|
|
|
|
2012-02-26 04:18:39 +00:00
|
|
|
#ifndef _ISOMAC
|
2015-06-17 20:22:39 +00:00
|
|
|
/* Prototypes repeated instead of using __typeof because
|
|
|
|
sys/resource.h is included in C++ tests, and declaring functions
|
|
|
|
with __typeof and __THROW doesn't work for C++. */
|
|
|
|
extern int __getpriority (__priority_which_t __which, id_t __who) __THROW;
|
|
|
|
libc_hidden_proto (__getpriority)
|
|
|
|
extern int __setpriority (__priority_which_t __which, id_t __who, int __prio)
|
|
|
|
__THROW;
|
|
|
|
libc_hidden_proto (__setpriority)
|
2011-01-13 21:21:04 +00:00
|
|
|
libc_hidden_proto (getrlimit64)
|
2015-02-18 00:26:35 +00:00
|
|
|
extern __typeof (getrlimit64) __getrlimit64;
|
|
|
|
libc_hidden_proto (__getrlimit64);
|
2002-08-04 03:50:21 +00:00
|
|
|
|
1998-08-09 17:39:48 +00:00
|
|
|
/* Now define the internal interfaces. */
|
1999-10-19 13:53:34 +00:00
|
|
|
extern int __getrlimit (enum __rlimit_resource __resource,
|
1999-11-20 05:08:30 +00:00
|
|
|
struct rlimit *__rlimits);
|
2014-12-06 23:40:48 +00:00
|
|
|
libc_hidden_proto (__getrlimit)
|
2003-06-30 23:15:13 +00:00
|
|
|
extern int __getrusage (enum __rusage_who __who, struct rusage *__usage)
|
|
|
|
attribute_hidden;
|
1999-11-20 05:08:30 +00:00
|
|
|
|
|
|
|
extern int __setrlimit (enum __rlimit_resource __resource,
|
|
|
|
const struct rlimit *__rlimits);
|
1998-09-06 23:45:24 +00:00
|
|
|
#endif
|
2012-02-26 04:18:39 +00:00
|
|
|
#endif
|