zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: rudy@foghorn.rose.hp.com (Rudy Anderson)
Cc: zsh-workers@math.gatech.edu
Subject: Re: RLIMIT, HP-UX B.10.20
Date: Thu, 22 Aug 1996 22:39:58 +0200 (MET DST)	[thread overview]
Message-ID: <199608222039.WAA15249@bolyai.cs.elte.hu> (raw)
In-Reply-To: <3218B5E1.4D20@foghorn.rose.hp.com> from Rudy Anderson at "Aug 19, 96 11:43:45 am"

> Howdy, here ya go:
> 
> cc -Aa -D_HPUX_SOURCE -c -I.. -I. -I.  -DHAVE_CONFIG_H -O builtin.c
> cpp: "builtin.c", line 3639: error 4062: there are some unknown limits.  Fix me!
> 
> CPU=HP 9000/715-75 (hppa1.1)
> OS=HP-UX B.10.20
> 
> I'm using the HP (ansi) compiler, ran the regular 'config.' This worked fine
> under HP-UX 10.10...

The patch below should make it work.  Does the ulimit on HP-UX 10.20 has
some option to set this limit?  We may add this new option to zsh's ulimit
as well (now you must use limit cachedthreads to set it).

Zoltan


*** Src/builtin.c	1996/08/14 15:25:29	2.77
--- Src/builtin.c	1996/08/22 20:34:41
***************
*** 3638,3643 ****
--- 3638,3651 ----
  # if NEXT_RLIM != RLIM_NLIMITS
     #error there are some unknown limits.  Fix me!
  # endif
+ # if defined RLIMIT_TCACHE && RLIMIT_TCACHE == NEXT_RLIM
+ #  undef NEXT_RLIM
+ #  define NEXT_RLIM (RLIMIT_TCACHE + 1)
+     "cachedthreads",
+ # endif /* RLIMIT_TCACHE */
+ # if NEXT_RLIM != RLIM_NLIMITS
+    #error there are some unknown limits.  Fix me!
+ # endif
  # undef NEXT_RLIM
      NULL
  };
***************
*** 4142,4147 ****
--- 4150,4161 ----
  	    limit /= 1024;
  	break;
  # endif /* RLIMIT_AS */
+ # ifdef RLIMIT_TCACHE
+     case RLIMIT_TCACHE:
+ 	if (head)
+ 	    printf("cached threads             ");
+ 	break;
+ # endif /* RLIMIT_TCACHE */
      }
      /* display the limit */
      if (limit == RLIM_INFINITY)


      reply	other threads:[~1996-08-22 20:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-19 18:43 Rudy Anderson
1996-08-22 20:39 ` Zoltan Hidvegi [this message]

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=199608222039.WAA15249@bolyai.cs.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=rudy@foghorn.rose.hp.com \
    --cc=zsh-workers@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).