Fix whitespace throughout.
[fwd] / rlimits.h
CommitLineData
3b7defab 1/* -*-c-*-
2 *
3b7defab 3 * List of resource limits known to mankind
4 *
5 * (c) 1999 Straylight/Edgeware
6 */
7
206212ca 8/*----- Licensing notice --------------------------------------------------*
3b7defab 9 *
10 * This file is part of the `fw' port forwarder.
11 *
12 * `fw' 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.
206212ca 16 *
3b7defab 17 * `fw' 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.
206212ca 21 *
3b7defab 22 * You should have received a copy of the GNU General Public License
23 * along with `fw'; if not, write to the Free Software Foundation,
24 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 */
26
3b7defab 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_CPU
38 R(RLIMIT_CPU, cpu)
39#endif
40#ifdef RLIMIT_FSIZE
41 R(RLIMIT_FSIZE, fsize)
42#endif
43#ifdef RLIMIT_DATA
44 R(RLIMIT_DATA, data)
45#endif
46#ifdef RLIMIT_STACK
47 R(RLIMIT_STACK, stack)
48#endif
49#ifdef RLIMIT_CORE
50 R(RLIMIT_CORE, core)
51#endif
52#ifdef RLIMIT_RSS
53 R(RLIMIT_RSS, rss)
54#endif
55#ifdef RLIMIT_NPROC
56 R(RLIMIT_NPROC, nproc)
57#endif
58#ifdef RLIMIT_NOFILE
59 R(RLIMIT_NOFILE, nofile)
60#endif
61#ifdef RLIMIT_MEMLOCK
62 R(RLIMIT_MEMLOCK, memlock)
63#endif
64#ifdef RLIMIT_VMEM
65 R(RLIMIT_VMEM, vmem)
66#endif
67#ifdef RLIMIT_AS
68 R(RLIMIT_AS, as)
69#endif
70
71#undef R
72
73/*----- That's all, folks -------------------------------------------------*/