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