• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _UAPI_LINUX_RESOURCE_H
8 #define _UAPI_LINUX_RESOURCE_H
9 #include <linux/time_types.h>
10 #include <linux/types.h>
11 #define RUSAGE_SELF 0
12 #define RUSAGE_CHILDREN (- 1)
13 #define RUSAGE_BOTH (- 2)
14 #define RUSAGE_THREAD 1
15 struct rusage {
16   struct timeval ru_utime;
17   struct timeval ru_stime;
18   __kernel_long_t ru_maxrss;
19   __kernel_long_t ru_ixrss;
20   __kernel_long_t ru_idrss;
21   __kernel_long_t ru_isrss;
22   __kernel_long_t ru_minflt;
23   __kernel_long_t ru_majflt;
24   __kernel_long_t ru_nswap;
25   __kernel_long_t ru_inblock;
26   __kernel_long_t ru_oublock;
27   __kernel_long_t ru_msgsnd;
28   __kernel_long_t ru_msgrcv;
29   __kernel_long_t ru_nsignals;
30   __kernel_long_t ru_nvcsw;
31   __kernel_long_t ru_nivcsw;
32 };
33 struct rlimit {
34   __kernel_ulong_t rlim_cur;
35   __kernel_ulong_t rlim_max;
36 };
37 #define RLIM64_INFINITY (~0ULL)
38 struct rlimit64 {
39   __u64 rlim_cur;
40   __u64 rlim_max;
41 };
42 #define PRIO_MIN (- 20)
43 #define PRIO_MAX 20
44 #define PRIO_PROCESS 0
45 #define PRIO_PGRP 1
46 #define PRIO_USER 2
47 #define _STK_LIM (8 * 1024 * 1024)
48 #define MLOCK_LIMIT (8 * 1024 * 1024)
49 #include <asm/resource.h>
50 #endif
51