1
#ifndef _SYS_RESOURCE_H_
2
#define _SYS_RESOURCE_H_
10
#define RUSAGE_SELF 0 /* calling process */
11
#define RUSAGE_CHILDREN -1 /* terminated child processes */
14
struct timeval ru_utime; /* user time used */
15
struct timeval ru_stime; /* system time used */
34
#define PRIO_PROCESS 0
35
int getrusage(int who, struct rusage *r_usage);
38
#define RLIMIT_CORE 100
41
#define RLIMIT_FSIZE 3
42
#define RLIMIT_NOFILE 4
43
#define RLIMIT_STACK 5
46
typedef unsigned rlim_t;
51
int getrlimit(int resource, struct rlimit *rlim);
52
int setrlimit(int resource, const struct rlimit *rlim);