Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: RLIMIT, HP-UX B.10.20



> 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)



Messages sorted by: Reverse Date, Date, Thread, Author