More Makefile cleanups, otherwise mainly noticeable are the netfilter fix
[davej-history.git] / include / asm-mips64 / resource.h
blobcb369925982f21a9985f9e4c3ccd1bd8f776b972
1 /* $Id: resource.h,v 1.3 2000/01/27 23:45:30 ralf Exp $
3 * This file is subject to the terms and conditions of the GNU General Public
4 * License. See the file "COPYING" in the main directory of this archive
5 * for more details.
7 * Copyright (C) 1995, 1996, 1998, 1999 by Ralf Baechle
8 * Copyright (C) 1999 Silicon Graphics, Inc.
9 */
10 #ifndef _ASM_RESOURCE_H
11 #define _ASM_RESOURCE_H
14 * Resource limits
16 #define RLIMIT_CPU 0 /* CPU time in ms */
17 #define RLIMIT_FSIZE 1 /* Maximum filesize */
18 #define RLIMIT_DATA 2 /* max data size */
19 #define RLIMIT_STACK 3 /* max stack size */
20 #define RLIMIT_CORE 4 /* max core file size */
21 #define RLIMIT_NOFILE 5 /* max number of open files */
22 #define RLIMIT_AS 6 /* mapped memory */
23 #define RLIMIT_RSS 7 /* max resident set size */
24 #define RLIMIT_NPROC 8 /* max number of processes */
25 #define RLIMIT_MEMLOCK 9 /* max locked-in-memory address space */
26 #define RLIMIT_LOCKS 10 /* maximum file locks held */
28 #define RLIM_NLIMITS 11 /* Number of limit flavors. */
30 #ifdef __KERNEL__
33 * SuS says limits have to be unsigned.
34 * Which makes a ton more sense anyway.
36 #define RLIM_INFINITY (~0UL)
38 #define INIT_RLIMITS \
39 { \
40 { RLIM_INFINITY, RLIM_INFINITY }, \
41 { RLIM_INFINITY, RLIM_INFINITY }, \
42 { RLIM_INFINITY, RLIM_INFINITY }, \
43 { _STK_LIM, RLIM_INFINITY }, \
44 { 0, RLIM_INFINITY }, \
45 { INR_OPEN, INR_OPEN }, \
46 { RLIM_INFINITY, RLIM_INFINITY }, \
47 { RLIM_INFINITY, RLIM_INFINITY }, \
48 { 0, 0 }, \
49 { RLIM_INFINITY, RLIM_INFINITY }, \
50 { RLIM_INFINITY, RLIM_INFINITY }, \
53 #endif /* __KERNEL__ */
55 #endif /* _ASM_RESOURCE_H */