zsh-workers
 help / color / mirror / code / Atom feed
From: "Melissa D. Binde" <binde@terindell.com>
To: Zefram <zefram@fysh.org>
Cc: zsh-workers@sunsite.auc.dk
Subject: Re: HP-UX B.11.00 9000/800
Date: Wed, 27 Oct 1999 22:19:20 -0700	[thread overview]
Message-ID: <19991027221920.C9237@amazon.com> (raw)
In-Reply-To: <E11bLm3-0003S3-00@crucigera.fysh.org>; from Zefram on Wed, Oct 13, 1999 at 11:36:47AM +0100

[-- Attachment #1: Type: text/plain, Size: 3529 bytes --]

Thank you.  I ended up back-porting the patch to 3.0.6 (this looks like it
was made against your beta tree?), but it worked beautifully.

My back-ported patch (context-sensitive diff) is attached as an fyi.



On Wed Oct 13 at 11:36:47 AM, Zefram wrote:

> 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





-M.

-- 
Melissa Binde
binde@amazon.com
Tools Engineer / Systems Engineering

[-- Attachment #2: patch-zsh-3.0.6-HP-UX --]
[-- Type: text/plain, Size: 2526 bytes --]

diff -durpN zsh-3.0.6.orig/Src/builtin.c zsh-3.0.6/Src/builtin.c
--- zsh-3.0.6.orig/Src/builtin.c	Tue Jul 13 02:24:29 1999
+++ zsh-3.0.6/Src/builtin.c	Wed Oct 27 20:31:31 1999
@@ -3997,6 +3997,9 @@ bin_ulimit(char *name, char **argv, char
 # ifdef RLIMIT_VMEM
 	    case RLIMIT_VMEM:
 # endif /* RLIMIT_VMEM */
+# ifdef RLIMIT_AIO_MEM               
+            case RLIMIT_AIO_MEM:       
+# endif /* RLIMIT_AIO_MEM */  
 		limit *= 1024;
 		break;
 	    }
@@ -4196,6 +4199,20 @@ printulimit(int lim, int hard, int head)
 	    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)
diff -durpN zsh-3.0.6.orig/Src/rlimits.awk zsh-3.0.6/Src/rlimits.awk
--- zsh-3.0.6.orig/Src/rlimits.awk	Tue Apr 27 22:21:43 1999
+++ zsh-3.0.6/Src/rlimits.awk	Wed Oct 27 20:29:14 1999
@@ -7,7 +7,7 @@
 #
 BEGIN {limidx = 0}
 
-/^[\t ]*(#[\t ]*define[\t _]*RLIMIT_[A-Z]*[\t ]*[0-9][0-9]*|RLIMIT_[A-Z]*,[\t ]*)/ {
+/^[\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,6 +35,8 @@ BEGIN {limidx = 0}
 	    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 -durpN zsh-3.0.6.orig/config.log zsh-3.0.6/config.log
--- zsh-3.0.6.orig/config.log	Wed Oct 27 20:32:00 1999
+++ zsh-3.0.6/config.log	Wed Dec 31 16:00:00 1969
@@ -1,4 +0,0 @@
-This file contains any messages produced by compilers while
-running configure, to aid debugging if configure makes a mistake.
-
-configure:586: checking host system type
Binary files zsh-3.0.6.orig/conftest and zsh-3.0.6/conftest differ

      reply	other threads:[~1999-10-28  5:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-13 10:08 Melissa D. Binde
1999-10-13 10:36 ` Zefram
1999-10-28  5:19   ` Melissa D. Binde [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=19991027221920.C9237@amazon.com \
    --to=binde@terindell.com \
    --cc=zefram@fysh.org \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).