It is required by POSIX.1-2001.
Cc: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
while ('\0' != *pp) {
switch (*pp++) {
-#ifdef RLIMIT_AS
case 'a':
case 'A':
/* RLIMIT_AS - max address space (KB) */
retval |= setrlimit_value (RLIMIT_AS, pp, 1024);
break;
-#endif
case 'c':
case 'C':
/* RLIMIT_CORE - max core file size (KB) */
setrlimit (RLIMIT_CORE, &rlim);
rlim.rlim_cur = rlim.rlim_max = RLIM_INFINITY;
-#ifdef RLIMIT_AS
setrlimit (RLIMIT_AS, &rlim);
-#endif
+
#ifdef RLIMIT_CPU
setrlimit (RLIMIT_CPU, &rlim);
#endif