1 /****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12 #ifndef _LINUX_RESOURCE_H
13 #define _LINUX_RESOURCE_H
15 #include <linux/time.h>
17 struct task_struct;
19 #define RUSAGE_SELF 0
20 #define RUSAGE_CHILDREN (-1)
21 #define RUSAGE_BOTH (-2)
23 struct rusage {
24 struct timeval ru_utime;
25 struct timeval ru_stime;
26 long ru_maxrss;
27 long ru_ixrss;
28 long ru_idrss;
29 long ru_isrss;
30 long ru_minflt;
31 long ru_majflt;
32 long ru_nswap;
33 long ru_inblock;
34 long ru_oublock;
35 long ru_msgsnd;
36 long ru_msgrcv;
37 long ru_nsignals;
38 long ru_nvcsw;
39 long ru_nivcsw;
40 };
42 struct rlimit {
43 unsigned long rlim_cur;
44 unsigned long rlim_max;
45 };
47 #define PRIO_MIN (-20)
48 #define PRIO_MAX 20
50 #define PRIO_PROCESS 0
51 #define PRIO_PGRP 1
52 #define PRIO_USER 2
54 #define _STK_LIM (8*1024*1024)
56 #define MLOCK_LIMIT (8 * PAGE_SIZE)
58 #include <asm/resource.h>
60 #endif