zsh-users
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: jkroeger@squirrel.owl.de
Cc: zsh-users@math.gatech.edu
Subject: Re: zsh-2.6beta20 doesn't compile under Linux pre2.0.14
Date: Mon, 10 Jun 1996 19:03:16 +0200 (MET DST)	[thread overview]
Message-ID: <199606101703.TAA05789@bolyai.cs.elte.hu> (raw)
In-Reply-To: <19960607203126.2843.qmail@squirrel.owl.de> from "jkroeger@squirrel.owl.de" at "Jun 7, 96 08:31:26 pm"

> Recent Linux kernels introduced a new limit for the address space of a process:
> 
> #define RLIMIT_AS       9               /* address space limit */
> 
> This makes compiling zsh fail with the following error message:
> 
> builtin.c:3539: #error there are some unknown limits.  Fix me!
> make[1]: *** [builtin.o] Error 1
> make[1]: Leaving directory `/usr/src/bin/zsh-2.6-beta20/Src'
> make: *** [Src] Error 2
> 
> Unfortunately I don't know how to fix zsh so that it can handle the new
> resource limit :-(

It is surprising that the there days before the final 2.0 release a new
feature appeared.  Here is the patch.  I think zsh will be the first shell
which can set this new limit.  There is no patch to the manual simply
because I do not know what is this limit.  Also a new flag should be
inveted to set this limit with ulimit.

Please tell me your suggestions.

Zoltan

 *** Src/builtin.c	1996/06/06 17:23:43	2.39
 --- Src/builtin.c	1996/06/10 16:53:08
 ***************
 *** 3535,3540 ****
 --- 3535,3545 ----
   #  define NEXT_RLIM (RLIMIT_MEMLOCK + 1)
       "memorylocked",
   # endif /* RLIMIT_MEMLOCK */
 + # if defined RLIMIT_AS && RLIMIT_AS == NEXT_RLIM
 + #  undef NEXT_RLIM
 + #  define NEXT_RLIM (RLIMIT_AS + 1)
 +     "addressspace",
 + # endif /* RLIMIT_AS */
   # if NEXT_RLIM != RLIM_NLIMITS
      #error there are some unknown limits.  Fix me!
   # endif
 ***************
 *** 3957,3962 ****
 --- 3962,3973 ----
   	limit /= 1024;
   	break;
   # endif /* RLIMIT_VMEM */
 + # ifdef RLIMIT_AS
 +     case RLIMIT_AS:
 + 	printf("address space (kb)         ");
 + 	limit /= 1024;
 + 	break;
 + # endif /* RLIMIT_AS */
       }
       /* display the limit */
       if (limit == RLIM_INFINITY)



  reply	other threads:[~1996-06-10 17:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-07 20:31 jkroeger
1996-06-10 17:03 ` Zoltan Hidvegi [this message]
1996-06-10 17:39   ` Steven L Baur
1996-06-12 15:52   ` Johannes Kroeger
1996-06-13  0:25 ` Felix von Leitner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199606101703.TAA05789@bolyai.cs.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=jkroeger@squirrel.owl.de \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).