zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: ulimit -e/-r
@ 2006-09-15 21:13 Clint Adams
  2006-09-15 21:40 ` Clint Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2006-09-15 21:13 UTC (permalink / raw)
  To: zsh-workers

bash is using -e and -r, so..

Index: Src/Builtins/rlimits.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Builtins/rlimits.c,v
retrieving revision 1.15
diff -u -r1.15 rlimits.c
--- Src/Builtins/rlimits.c	30 May 2006 22:35:03 -0000	1.15
+++ Src/Builtins/rlimits.c	15 Sep 2006 21:11:09 -0000
@@ -342,6 +342,18 @@
 	    printf("-N %2d: threads per process     ", RLIMIT_PTHREAD);
 	break;
 # endif /* HAVE_RLIMIT_PTHREAD */
+# ifdef HAVE_RLIMIT_NICE
+    case RLIMIT_NICE:
+	if (head)
+	    printf("-e: max nice                    ");
+	break;
+# endif /* HAVE_RLIMIT_NICE */
+# ifdef HAVE_RLIMIT_RTPRIO
+    case RLIMIT_RTPRIO
+	if (head)
+	    printf("-r: max rt priority             ");
+	break;
+# endif /* HAVE_RLIMIT_RTPRIO */
     default:
 	if (head)
 	    printf("-N %2d:                         ", lim);
@@ -773,6 +785,16 @@
 		    res = RLIMIT_MSGQUEUE;
 		    break;
 # endif
+# ifdef HAVE_RLIMIT_NICE
+		case 'e':
+		    res = RLIMIT_NICE;
+		    break;
+# endif
+# ifdef HAVE_RLIMIT_RTPRIO
+		case 'r':
+		    res = RLIMIT_RTPRIO;
+		    break;
+# endif
 		default:
 		    /* unrecognised limit */
 		    zwarnnam(name, "bad option: -%c", *options);


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: ulimit -e/-r
  2006-09-15 21:13 PATCH: ulimit -e/-r Clint Adams
@ 2006-09-15 21:40 ` Clint Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2006-09-15 21:40 UTC (permalink / raw)
  To: zsh-workers

> Index: Src/Builtins/rlimits.c

Oops.

--- orig/configure.ac
+++ mod/configure.ac
@@ -1436,6 +1436,8 @@
 zsh_LIMIT_PRESENT(RLIMIT_VMEM)
 zsh_LIMIT_PRESENT(RLIMIT_SIGPENDING)
 zsh_LIMIT_PRESENT(RLIMIT_MSGQUEUE)
+zsh_LIMIT_PRESENT(RLIMIT_NICE)
+zsh_LIMIT_PRESENT(RLIMIT_RTPRIO)
 
 AH_TEMPLATE([RLIMIT_VMEM_IS_RSS],
 [Define to 1 if RLIMIT_VMEM and RLIMIT_RSS both exist and are equal.])




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-15 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-15 21:13 PATCH: ulimit -e/-r Clint Adams
2006-09-15 21:40 ` Clint Adams

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