X-Git-Url: https://git.distorted.org.uk/~mdw/fwd/blobdiff_plain/03a839ce52510443ef1a1fe8b3629884423099fe..a9bd543ab4ebe415bca9d6f27b90f16ddac79bc0:/rlimits.h diff --git a/rlimits.h b/rlimits.h index 28f94ac..23e6ecd 100644 --- a/rlimits.h +++ b/rlimits.h @@ -5,7 +5,7 @@ * (c) 1999 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of the `fw' port forwarder. * @@ -13,12 +13,12 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * `fw' is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with `fw'; if not, write to the Free Software Foundation, * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -34,39 +34,54 @@ # define RLIMIT_NOFILE RLIMIT_OFILE #endif +#ifdef RLIMIT_AS + R(RLIMIT_AS, as) +#endif +#ifdef RLIMIT_CORE + R(RLIMIT_CORE, core) +#endif #ifdef RLIMIT_CPU R(RLIMIT_CPU, cpu) #endif +#ifdef RLIMIT_DATA + R(RLIMIT_DATA, data) +#endif #ifdef RLIMIT_FSIZE R(RLIMIT_FSIZE, fsize) #endif -#ifdef RLIMIT_DATA - R(RLIMIT_DATA, data) +#ifdef RLIMIT_LOCKS + R(RLIMIT_LOCKS, locks) #endif -#ifdef RLIMIT_STACK - R(RLIMIT_STACK, stack) +#ifdef RLIMIT_MEMLOCK + R(RLIMIT_MEMLOCK, memlock) #endif -#ifdef RLIMIT_CORE - R(RLIMIT_CORE, core) +#ifdef RLIMIT_MSGQUEUE + R(RLIMIT_MSGQUEUE, msgqueue) #endif -#ifdef RLIMIT_RSS - R(RLIMIT_RSS, rss) +#ifdef RLIMIT_NICE + R(RLIMIT_NICE, nice) +#endif +#ifdef RLIMIT_NOFILE + R(RLIMIT_NOFILE, nofile) #endif #ifdef RLIMIT_NPROC R(RLIMIT_NPROC, nproc) #endif -#ifdef RLIMIT_NOFILE - R(RLIMIT_NOFILE, nofile) +#ifdef RLIMIT_RSS + R(RLIMIT_RSS, rss) #endif -#ifdef RLIMIT_MEMLOCK - R(RLIMIT_MEMLOCK, memlock) +#ifdef RLIMIT_RTPRIO + R(RLIMIT_RTPRIO, rtprio) +#endif +#ifdef RLIMIT_SIGPENDING + R(RLIMIT_SIGPENDING, sigpending) +#endif +#ifdef RLIMIT_STACK + R(RLIMIT_STACK, stack) #endif #ifdef RLIMIT_VMEM R(RLIMIT_VMEM, vmem) #endif -#ifdef RLIMIT_AS - R(RLIMIT_AS, as) -#endif #undef R