summaryrefslogtreecommitdiffstats
path: root/bin/ksh/c_ulimit.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Support 64 bit integers on 32 bit architectures.tobias2018-04-091-3/+4
| | | | | | | No binary change on amd64 and there should be no differences on any other 64 bit architecture either (because long = int64_t). ok cheloha, tb
* Favor usage of __func__ in warning/error messages. Some of them referred to theanton2018-03-151-2/+2
| | | | | | | wrong function and fix the rest for consistency. Diff from Michael W. Bombardieri with some cosmetic cleanup applied. ok benno@ tb@
* Introduce internal_warningf() and mark internal_errorf() as noreturnjca2018-01-161-2/+2
| | | | | This helps tools like scan-build, and follows the example of warningf() and errorf(). ok anton@
* Stop constructing the ulimit optstring passed to ksh_getopt() at runtime sinceanton2018-01-161-16/+2
| | | | | | it's rarely subject to change. While here, unifdef RLIMIT_VMEM. ok jca@
* Move system headers from sh.h to those files that actually need them.tb2015-12-141-1/+2
| | | | ok mmcc@ a while ago
* Use isdigit() instead of ksh's homebrewed alternative.mmcc2015-11-121-1/+2
| | | | ok nicm@. Also discussed with millert@ and guenther@.
* Move string.h include from sh.h to the files that use it.mmcc2015-10-191-1/+3
| | | | ok nicm@
* Apply style(9) to header includes.mmcc2015-10-191-2/+3
| | | | ok nicm@
* correct spelling of NULL from (char *)0. from Michael McConville.tedu2015-09-151-2/+2
| | | | ok md5
* remove trailing whitespaces; use tabs instead of spaces where appropriate;sobrado2013-11-281-2/+2
| | | | no binary changes.
* be more specific in ulimit error messages.espie2013-11-141-3/+4
| | | | | prompted by henning@ okay millert@, krw@, pirofti@
* Make ulimit able to get and set multiple limits in a single invocationmillert2008-03-211-99/+125
| | | | like bash and zsh do. Requested by espie@, OK deraadt@
* Compute user-given ulimit value times ulimit unit as an rlim_t value, not amiod2006-11-201-2/+2
| | | | | | long value; catches some 32 bit overflows on 32 bit platforms. Found by drahn@, ok otto@
* might as well make ksh_getopt() match real getopt(), ie. get rid of thatderaadt2006-03-121-2/+2
| | | | stupid EOF concept that was never true. adobriyan@gmail
* lots of indentation cleanup, now ksh is readable like our other code.deraadt2005-03-301-19/+18
| | | | double checked to make sure no binaries change, and eyed by niallo
* Introduce POSIX hex and octal (0x... and 0...) constants in arithmeticotto2005-02-021-2/+2
| | | | | | | expressions. Work by Matthias Kilian, based on an old diff by myself. Note: MAKEDEV should be updated. Tested by many, thanks. ok millert@ deraadt@
* Ansification plus some minor knf. No binary change on i386 andotto2004-12-201-3/+2
| | | | | sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@
* Remove unused OS dependent #ifdef blocks, #defines and macro abstraction.millert2004-12-181-101/+4
| | | | First step in making the ksh code easier to read. From Matthias Kilian
* typos from Jared Yanovich;jmc2003-10-221-2/+2
| | | | ok deraadt@
* knftodd2002-06-091-2/+2
|
* patches from pdksh 5.2.13.11millert1999-06-151-2/+2
|
* bug fixes from pdksh-unstable-5.2.13.5; some of which we already had.millert1999-01-081-2/+2
|
* better error message from ulimitmillert1998-11-241-2/+6
|
* Bug fixes from pdksh-unstable-5.2.13.4, including "official" versions ofmillert1998-10-291-13/+22
| | | | | | | | | | | | | | | | | | some that we had already fixed locally. o typeset -f FUNC doesn't print follows command (and expression) substitutions. o when re-allocating memory, too much may be copied from old memory. o set -o printed some options sans names. o emacs mode: <esc>. in very fist command causes core dump. o pdksh dumps core after a cd command. o typeset -i reports on array elements that have no value (at&t ksh reports on array base name - no index). o ulimit -ctn unlimittttted kills shell (resource exceeded). o ". /dev/null" says access denied. o flag field in aliases incorrectly changed (all flags set instead of clearing ISSET) in exec.c(flushcom). o ${#array[*]} prints largest index instead of number of (set) elements in an array (ksh88 does the former). o sys_siglist[] doesn't always have NSIG non-null entries...
* Make ulimit catch bogosity so that: "ulimit -dflmnpst unlimitted"millert1998-01-171-2/+5
| | | | | | Results in: ksh: ulimit: "unlimitted" is not a valid limit Not: Killed (because it treated the word as 0). Noticed by mickey@openbsd.org
* back outkstailey1997-06-191-2/+2
|
* (foo *)0 -> NULLkstailey1997-06-181-2/+2
|
* Import pdksh 5.2.7.downsj1996-08-141-0/+257