From owner-cvs-bin Thu Oct 19 11:42:20 1995 Return-Path: owner-cvs-bin Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA27898 for cvs-bin-outgoing; Thu, 19 Oct 1995 11:42:20 -0700 Received: (from joerg@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA27889 ; Thu, 19 Oct 1995 11:42:15 -0700 Date: Thu, 19 Oct 1995 11:42:15 -0700 From: Joerg Wunsch Message-Id: <199510191842.LAA27889@freefall.freebsd.org> To: cvs-bin, CVS-commiters Subject: cvs commit: src/bin/sh builtins miscbltin.c sh.1 Sender: owner-cvs-bin@FreeBSD.org Precedence: bulk joerg 95/10/19 11:42:15 Modified: bin/sh builtins miscbltin.c sh.1 Log: Implement the "ulimit" builtin. This is the analogon to csh's "limit" command and badly needed in sh(1) for everybody who wants to modify the system-wide limits from inside /etc/rc. The options are similar to other system's implemantations of this command, with the FreeBSD additions for -m (memoryuse) and -p (max processes) that are not available on other systems. From owner-cvs-bin Thu Oct 19 16:46:09 1995 Return-Path: owner-cvs-bin Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id QAA06100 for cvs-bin-outgoing; Thu, 19 Oct 1995 16:46:09 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id QAA06095 ; Thu, 19 Oct 1995 16:45:59 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id AAA11864; Fri, 20 Oct 1995 00:45:51 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id AAA28567; Fri, 20 Oct 1995 00:45:51 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id AAA00659; Fri, 20 Oct 1995 00:45:17 +0100 From: J Wunsch Message-Id: <199510192345.AAA00659@uriah.heep.sax.de> Subject: Re: cvs commit: src/bin/sh builtins miscbltin.c sh.1 To: joerg@freefall.freebsd.org (Joerg Wunsch) Date: Fri, 20 Oct 1995 00:45:17 +0100 (MET) Cc: cvs-bin@freefall.freebsd.org, CVS-commiters@freefall.freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199510191842.LAA27889@freefall.freebsd.org> from "Joerg Wunsch" at Oct 19, 95 11:42:15 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 532 Sender: owner-cvs-bin@FreeBSD.org Precedence: bulk As Joerg Wunsch wrote: > > joerg 95/10/19 11:42:15 > > Modified: bin/sh builtins miscbltin.c sh.1 > Log: > Implement the "ulimit" builtin. This is the analogon to csh's "limit" > command and badly needed in sh(1) for everybody who wants to modify > the system-wide limits from inside /etc/rc. This is *NOT* intented to go into 2.1, David. :-) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) From owner-cvs-bin Thu Oct 19 18:28:49 1995 Return-Path: owner-cvs-bin Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA08795 for cvs-bin-outgoing; Thu, 19 Oct 1995 18:28:49 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id SAA08787 ; Thu, 19 Oct 1995 18:28:39 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id LAA08440; Fri, 20 Oct 1995 11:25:19 +1000 Date: Fri, 20 Oct 1995 11:25:19 +1000 From: Bruce Evans Message-Id: <199510200125.LAA08440@godzilla.zeta.org.au> To: CVS-commiters@freefall.freebsd.org, cvs-bin@freefall.freebsd.org, joerg@freefall.freebsd.org Subject: Re: cvs commit: src/bin/sh builtins miscbltin.c sh.1 Sender: owner-cvs-bin@FreeBSD.org Precedence: bulk > Modified: bin/sh builtins miscbltin.c sh.1 > Log: > Implement the "ulimit" builtin. This is the analogon to csh's "limit" > command and badly needed in sh(1) for everybody who wants to modify > the system-wide limits from inside /etc/rc. > > The options are similar to other system's implemantations of this > command, with the FreeBSD additions for -m (memoryuse) and -p (max > processes) that are not available on other systems. $bash help ulimit ... -m the maximum resident set size # units of KB ... -p the pipe buffer size # units of 512 bytes :-( ... -u the maximum number of user processes Bruce From owner-cvs-bin Thu Oct 19 19:53:17 1995 Return-Path: owner-cvs-bin Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA11859 for cvs-bin-outgoing; Thu, 19 Oct 1995 19:53:17 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA11848 ; Thu, 19 Oct 1995 19:53:00 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id MAA11414; Fri, 20 Oct 1995 12:48:19 +1000 Date: Fri, 20 Oct 1995 12:48:19 +1000 From: Bruce Evans Message-Id: <199510200248.MAA11414@godzilla.zeta.org.au> To: CVS-commiters@freefall.freebsd.org, bde@zeta.org.au, cvs-bin@freefall.freebsd.org, joerg@freefall.freebsd.org Subject: Re: cvs commit: src/bin/sh builtins miscbltin.c sh.1 Sender: owner-cvs-bin@FreeBSD.org Precedence: bulk I wrote: >> Modified: bin/sh builtins miscbltin.c sh.1 >> Log: >> Implement the "ulimit" builtin. This is the analogon to csh's "limit" >> ... >$bash help ulimit > ... > -m the maximum resident set size # units of KB > ... > -p the pipe buffer size # units of 512 bytes :-( > ... > -u the maximum number of user processes Otherwise the new ulimit options (except for the file size units) are the same as for bash. Bash has better formatting and descriptions: $bash ulimit -a core file size (blocks) unlimited data seg size (kbytes) 65536 file size (blocks) unlimited max memory size (kbytes) 14116 stack size (kbytes) 8192 cpu time (seconds) unlimited max user processes 40 pipe size (512 bytes) 1 open files 64 virtual memory (kbytes) 73728 $sh ulimit -a coredump(512-blocks) unlimited time(seconds) unlimited datasize(kilobytes) 65536 filesize(512-blocks) unlimited lockedmem(kilobytes) 4706 nofiles(descriptors) 64 processes(max) 40 memoryuse(kilobytes) 14116 stacksize(kilobytes) 8192 %csh limit cputime unlimited filesize unlimited datasize 65536 kbytes stacksize 8192 kbytes coredumpsize unlimited memoryuse 14116 kbytes memorylocked 4706 kbytes maxproc 40 openfiles 64 Bruce From owner-cvs-bin Fri Oct 20 17:47:39 1995 Return-Path: owner-cvs-bin Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA26914 for cvs-bin-outgoing; Fri, 20 Oct 1995 17:47:39 -0700 Received: (from joerg@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA26905 ; Fri, 20 Oct 1995 17:47:35 -0700 Date: Fri, 20 Oct 1995 17:47:35 -0700 From: Joerg Wunsch Message-Id: <199510210047.RAA26905@freefall.freebsd.org> To: cvs-bin, CVS-commiters Subject: cvs commit: src/bin/sh miscbltin.c redir.c sh.1 Sender: owner-cvs-bin@FreeBSD.org Precedence: bulk joerg 95/10/20 17:47:33 Modified: bin/sh miscbltin.c redir.c sh.1 Log: o rename ulimit -p into ulimit -u, so we are in agreement with bash o fix brokeness for 1>&5 redirection, where `5' was an invalid file descriptor, but no error message has been generated o fix brokeness for redirect to/from myself case