• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #define RUSAGE_SELF 0
24 #define RUSAGE_CHILDREN (- 1)
25 #define RUSAGE_BOTH (- 2)
26 #define RUSAGE_THREAD 1
27 struct rusage {
28   struct timeval ru_utime;
29   struct timeval ru_stime;
30   __kernel_long_t ru_maxrss;
31   __kernel_long_t ru_ixrss;
32   __kernel_long_t ru_idrss;
33   __kernel_long_t ru_isrss;
34   __kernel_long_t ru_minflt;
35   __kernel_long_t ru_majflt;
36   __kernel_long_t ru_nswap;
37   __kernel_long_t ru_inblock;
38   __kernel_long_t ru_oublock;
39   __kernel_long_t ru_msgsnd;
40   __kernel_long_t ru_msgrcv;
41   __kernel_long_t ru_nsignals;
42   __kernel_long_t ru_nvcsw;
43   __kernel_long_t ru_nivcsw;
44 };
45 struct rlimit {
46   __kernel_ulong_t rlim_cur;
47   __kernel_ulong_t rlim_max;
48 };
49 #define RLIM64_INFINITY (~0ULL)
50 struct rlimit64 {
51   __u64 rlim_cur;
52   __u64 rlim_max;
53 };
54 #define PRIO_MIN (- 20)
55 #define PRIO_MAX 20
56 #define PRIO_PROCESS 0
57 #define PRIO_PGRP 1
58 #define PRIO_USER 2
59 #define _STK_LIM (8 * 1024 * 1024)
60 #define MLOCK_LIMIT (8 * 1024 * 1024)
61 #include <asm/resource.h>
62 #endif
63