blob: eaf9fc4a4188e4f2f4e13df12ddb94b5200e7e34 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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
Tao Baod7db5942015-01-28 10:07:51 -080025#define RUSAGE_CHILDREN (- 1)
26#define RUSAGE_BOTH (- 2)
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define RUSAGE_THREAD 1
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29struct rusage {
Tao Baod7db5942015-01-28 10:07:51 -080030 struct timeval ru_utime;
31 struct timeval ru_stime;
32 __kernel_long_t ru_maxrss;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 __kernel_long_t ru_ixrss;
35 __kernel_long_t ru_idrss;
36 __kernel_long_t ru_isrss;
37 __kernel_long_t ru_minflt;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __kernel_long_t ru_majflt;
40 __kernel_long_t ru_nswap;
41 __kernel_long_t ru_inblock;
42 __kernel_long_t ru_oublock;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 __kernel_long_t ru_msgsnd;
45 __kernel_long_t ru_msgrcv;
46 __kernel_long_t ru_nsignals;
47 __kernel_long_t ru_nvcsw;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 __kernel_long_t ru_nivcsw;
Ben Cheng655a7c02013-10-16 16:09:24 -070050};
51struct rlimit {
Tao Baod7db5942015-01-28 10:07:51 -080052 __kernel_ulong_t rlim_cur;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 __kernel_ulong_t rlim_max;
Ben Cheng655a7c02013-10-16 16:09:24 -070055};
56#define RLIM64_INFINITY (~0ULL)
57struct rlimit64 {
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __u64 rlim_cur;
60 __u64 rlim_max;
Ben Cheng655a7c02013-10-16 16:09:24 -070061};
Tao Baod7db5942015-01-28 10:07:51 -080062#define PRIO_MIN (- 20)
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* 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 */
Tao Baod7db5942015-01-28 10:07:51 -080069#define _STK_LIM (8 * 1024 * 1024)
70#define MLOCK_LIMIT ((PAGE_SIZE > 64 * 1024) ? PAGE_SIZE : 64 * 1024)
Ben Cheng655a7c02013-10-16 16:09:24 -070071#include <asm/resource.h>
72#endif
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */