From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6006 invoked from network); 19 Oct 1999 06:14:16 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 19 Oct 1999 06:14:16 -0000 Received: (qmail 22745 invoked by alias); 19 Oct 1999 06:13:48 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8330 Received: (qmail 22737 invoked from network); 19 Oct 1999 06:13:46 -0000 From: "Bart Schaefer" Message-Id: <991019061342.ZM4317@candle.brasslantern.com> Date: Tue, 19 Oct 1999 06:13:42 +0000 In-Reply-To: <991019052248.ZM4198@candle.brasslantern.com> Comments: In reply to "Bart Schaefer" "Patch: 3.1.6-bart-7: Another rlimit" (Oct 19, 5:22am) References: <991019052248.ZM4198@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: PATCH: Re: Patch: 3.1.6-bart-7: Another rlimit MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Oct 19, 5:22am, Bart Schaefer wrote: } Subject: Patch: 3.1.6-bart-7: Another rlimit } } RLIMIT_PTHREAD The maximum number of threads (pthreads(5)) The "ulimit -a" command should report this; same for "sockbufsize". Index: Src/Builtins/rlimits.c =================================================================== @@ -232,6 +232,20 @@ limit /= 1024; break; # endif /* RLIMIT_AIO_MEM */ +# ifdef RLIMIT_SBSIZE + case RLIMIT_SBSIZE: + if (head) + printf("socket buffer size (kb) "); + if (limit != RLIM_INFINITY) + limit /= 1024; + break; +# endif /* RLIMIT_SBSIZE */ +# ifdef RLIMIT_PTHREAD + case RLIMIT_PTHREAD: + if (head) + printf("threads per process "); + break; +# endif /* RLIMIT_PTHREAD */ } /* display the limit */ if (limit == RLIM_INFINITY) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com