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  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_LINUX_RESOURCE_H
20 #define _UAPI_LINUX_RESOURCE_H
21 #include <linux/time.h>
22 #include <linux/types.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define RUSAGE_SELF 0
25 #define RUSAGE_CHILDREN (- 1)
26 #define RUSAGE_BOTH (- 2)
27 #define RUSAGE_THREAD 1
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 struct rusage {
30   struct timeval ru_utime;
31   struct timeval ru_stime;
32   __kernel_long_t ru_maxrss;
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34   __kernel_long_t ru_ixrss;
35   __kernel_long_t ru_idrss;
36   __kernel_long_t ru_isrss;
37   __kernel_long_t ru_minflt;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   __kernel_long_t ru_majflt;
40   __kernel_long_t ru_nswap;
41   __kernel_long_t ru_inblock;
42   __kernel_long_t ru_oublock;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44   __kernel_long_t ru_msgsnd;
45   __kernel_long_t ru_msgrcv;
46   __kernel_long_t ru_nsignals;
47   __kernel_long_t ru_nvcsw;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   __kernel_long_t ru_nivcsw;
50 };
51 struct rlimit {
52   __kernel_ulong_t rlim_cur;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   __kernel_ulong_t rlim_max;
55 };
56 #define RLIM64_INFINITY (~0ULL)
57 struct rlimit64 {
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   __u64 rlim_cur;
60   __u64 rlim_max;
61 };
62 #define PRIO_MIN (- 20)
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define PRIO_MAX 20
65 #define PRIO_PROCESS 0
66 #define PRIO_PGRP 1
67 #define PRIO_USER 2
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define _STK_LIM (8 * 1024 * 1024)
70 #define MLOCK_LIMIT ((PAGE_SIZE > 64 * 1024) ? PAGE_SIZE : 64 * 1024)
71 #include <asm/resource.h>
72 #endif
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74