Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: RLIMIT, HP-UX B.10.20
- X-seq: zsh-workers 2049
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: rudy@xxxxxxxxxxxxxxxxxxx (Rudy Anderson)
- Subject: Re: RLIMIT, HP-UX B.10.20
- Date: Thu, 22 Aug 1996 22:39:58 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <3218B5E1.4D20@xxxxxxxxxxxxxxxxxxx> from Rudy Anderson at "Aug 19, 96 11:43:45 am"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
> 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