3b7defab |
1 | /* -*-c-*- |
2 | * |
7481fc9c |
3 | * $Id: rlimits.h,v 1.2 2004/04/08 01:36:25 mdw Exp $ |
3b7defab |
4 | * |
5 | * List of resource limits known to mankind |
6 | * |
7 | * (c) 1999 Straylight/Edgeware |
8 | */ |
9 | |
10 | /*----- Licensing notice --------------------------------------------------* |
11 | * |
12 | * This file is part of the `fw' port forwarder. |
13 | * |
14 | * `fw' is free software; you can redistribute it and/or modify |
15 | * it under the terms of the GNU General Public License as published by |
16 | * the Free Software Foundation; either version 2 of the License, or |
17 | * (at your option) any later version. |
18 | * |
19 | * `fw' is distributed in the hope that it will be useful, |
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22 | * GNU General Public License for more details. |
23 | * |
24 | * You should have received a copy of the GNU General Public License |
25 | * along with `fw'; if not, write to the Free Software Foundation, |
26 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
27 | */ |
28 | |
3b7defab |
29 | /*----- Magic -------------------------------------------------------------*/ |
30 | |
31 | #ifndef R |
32 | # error "Don't try including rlimits.h unless you know what you're doing" |
33 | #endif |
34 | |
35 | #if defined(RLIMIT_OFILE) && !defined(RLIMIT_NOFILE) |
36 | # define RLIMIT_NOFILE RLIMIT_OFILE |
37 | #endif |
38 | |
39 | #ifdef RLIMIT_CPU |
40 | R(RLIMIT_CPU, cpu) |
41 | #endif |
42 | #ifdef RLIMIT_FSIZE |
43 | R(RLIMIT_FSIZE, fsize) |
44 | #endif |
45 | #ifdef RLIMIT_DATA |
46 | R(RLIMIT_DATA, data) |
47 | #endif |
48 | #ifdef RLIMIT_STACK |
49 | R(RLIMIT_STACK, stack) |
50 | #endif |
51 | #ifdef RLIMIT_CORE |
52 | R(RLIMIT_CORE, core) |
53 | #endif |
54 | #ifdef RLIMIT_RSS |
55 | R(RLIMIT_RSS, rss) |
56 | #endif |
57 | #ifdef RLIMIT_NPROC |
58 | R(RLIMIT_NPROC, nproc) |
59 | #endif |
60 | #ifdef RLIMIT_NOFILE |
61 | R(RLIMIT_NOFILE, nofile) |
62 | #endif |
63 | #ifdef RLIMIT_MEMLOCK |
64 | R(RLIMIT_MEMLOCK, memlock) |
65 | #endif |
66 | #ifdef RLIMIT_VMEM |
67 | R(RLIMIT_VMEM, vmem) |
68 | #endif |
69 | #ifdef RLIMIT_AS |
70 | R(RLIMIT_AS, as) |
71 | #endif |
72 | |
73 | #undef R |
74 | |
75 | /*----- That's all, folks -------------------------------------------------*/ |