blob: 843910b20d17ae0e7afd4e193210db05ecffe6a2 [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_ASM_GENERIC_RESOURCE_H
20#define _UAPI_ASM_GENERIC_RESOURCE_H
21#define RLIMIT_CPU 0
22#define RLIMIT_FSIZE 1
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define RLIMIT_DATA 2
24#define RLIMIT_STACK 3
25#define RLIMIT_CORE 4
26#ifndef RLIMIT_RSS
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define RLIMIT_RSS 5
28#endif
29#ifndef RLIMIT_NPROC
30#define RLIMIT_NPROC 6
Ben Cheng655a7c02013-10-16 16:09:24 -070031#endif
32#ifndef RLIMIT_NOFILE
33#define RLIMIT_NOFILE 7
34#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070035#ifndef RLIMIT_MEMLOCK
36#define RLIMIT_MEMLOCK 8
37#endif
38#ifndef RLIMIT_AS
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define RLIMIT_AS 9
40#endif
41#define RLIMIT_LOCKS 10
42#define RLIMIT_SIGPENDING 11
Ben Cheng655a7c02013-10-16 16:09:24 -070043#define RLIMIT_MSGQUEUE 12
44#define RLIMIT_NICE 13
45#define RLIMIT_RTPRIO 14
46#define RLIMIT_RTTIME 15
Ben Cheng655a7c02013-10-16 16:09:24 -070047#define RLIM_NLIMITS 16
48#ifndef RLIM_INFINITY
49#define RLIM_INFINITY (~0UL)
50#endif
Ben Cheng655a7c02013-10-16 16:09:24 -070051#endif