From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17536 invoked from network); 13 Oct 1999 10:37:15 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 13 Oct 1999 10:37:15 -0000 Received: (qmail 11642 invoked by alias); 13 Oct 1999 10:36:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8229 Received: (qmail 11632 invoked from network); 13 Oct 1999 10:36:53 -0000 Subject: Re: HP-UX B.11.00 9000/800 In-Reply-To: <19991013060822.B27595@terindell.com> from "Melissa D. Binde" at "Oct 13, 1999 6: 8:22 am" To: binde@terindell.com (Melissa D. Binde) Date: Wed, 13 Oct 1999 11:36:47 +0100 (BST) Cc: zsh-workers@sunsite.auc.dk X-Mailer: ELM [version 2.4ME+ PL48 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: From: Zefram Melissa D. Binde wrote: >gawk on resource.h > rlimits.h is failing with exit status of 2. It says >"unknown limits" and asks me to mail resource.h to the development team. This patch adds support for the AIO_OPS and AIO_MEM resource limits. Let us know if you still have problems after applying it. -zefram diff -cr ../zsh-/Doc/Zsh/builtins.yo ./Doc/Zsh/builtins.yo *** ../zsh-/Doc/Zsh/builtins.yo Wed Oct 13 11:12:13 1999 --- ./Doc/Zsh/builtins.yo Wed Oct 13 11:32:51 1999 *************** *** 523,528 **** --- 523,530 ---- sitem(tt(maxproc))(Maximum number of processes.) sitem(tt(addressspace))(Maximum amount of address space used.) sitem(tt(cachedthreads))(Maximum number of cached threads.) + sitem(tt(aiooperations))(Maximum number of AIO operations.) + sitem(tt(aiomemorylocked))(Maximum amount of memory locked in RAM for AIO operations.) endsitem() Which of these resource limits are available depends on the system. diff -cr ../zsh-/Src/Builtins/rlimits.awk ./Src/Builtins/rlimits.awk *** ../zsh-/Src/Builtins/rlimits.awk Wed Oct 13 11:12:15 1999 --- ./Src/Builtins/rlimits.awk Wed Oct 13 11:19:29 1999 *************** *** 6,12 **** # BEGIN {limidx = 0} ! /^[\t ]*(#[\t ]*define[\t _]*RLIMIT_[A-Z]*[\t ]*[0-9][0-9]*|RLIMIT_[A-Z]*,[\t ]*)/ { limindex = index($0, "RLIMIT_") limtail = substr($0, limindex, 80) split(limtail, tmp) --- 6,12 ---- # BEGIN {limidx = 0} ! /^[\t ]*(#[\t ]*define[\t _]*RLIMIT_[A-Z_]*[\t ]*[0-9][0-9]*|RLIMIT_[A-Z]*,[\t ]*)/ { limindex = index($0, "RLIMIT_") limtail = substr($0, limindex, 80) split(limtail, tmp) *************** *** 35,40 **** --- 35,42 ---- if (limnam == "NPROC") { msg[limnum] = "maxproc" } if (limnam == "AS") { msg[limnum] = "addressspace" } if (limnam == "TCACHE") { msg[limnum] = "cachedthreads" } + if (limnam == "AIO_OPS") { msg[limnum] = "aiooperations" } + if (limnam == "AIO_MEM") { msg[limnum] = "aiomemorylocked" } } } } diff -cr ../zsh-/Src/Builtins/rlimits.c ./Src/Builtins/rlimits.c *** ../zsh-/Src/Builtins/rlimits.c Wed Oct 13 11:12:15 1999 --- ./Src/Builtins/rlimits.c Wed Oct 13 11:29:55 1999 *************** *** 218,223 **** --- 218,237 ---- printf("cached threads "); break; # endif /* RLIMIT_TCACHE */ + # ifdef RLIMIT_AIO_OPS + case RLIMIT_AIO_OPS: + if (head) + printf("AIO operations "); + break; + # endif /* RLIMIT_AIO_OPS */ + # ifdef RLIMIT_AIO_MEM + case RLIMIT_AIO_MEM: + if (head) + printf("AIO locked-in-memory (kb) "); + if (limit != RLIM_INFINITY) + limit /= 1024; + break; + # endif /* RLIMIT_AIO_MEM */ } /* display the limit */ if (limit == RLIM_INFINITY) *************** *** 538,543 **** --- 552,560 ---- # ifdef RLIMIT_VMEM case RLIMIT_VMEM: # endif /* RLIMIT_VMEM */ + # ifdef RLIMIT_AIO_MEM + case RLIMIT_AIO_MEM: + # endif /* RLIMIT_AIO_MEM */ limit *= 1024; break; } END