summaryrefslogtreecommitdiffstats
path: root/usr.bin/limits
Commit message (Collapse)AuthorAgeFilesLines
* Add support for RLIMIT_NPTS to limits(1).ed2008-09-022-54/+68
| | | | | | | | | | | | | After the MPSAFE TTY import we support an additional rlimit, called RLIMIT_NPTS. This limit allows you to cap the amount of pseudo-terminals allocated by one user. We forgot to add support for this limit to limits(1), which means it crashed. Add the proper bits to make it work like it should. Unfortunately not all shells actually implement the RLIMIT, so unfortunately I suspect it to be broken with certain shells. Submitted by: Yuriy Tsibizov <yuriy tsibizov gfk ru>
* Significantly reduce the memory leak as noted in BUGS section forscf2007-07-041-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | setenv(3) by tracking the size of the memory allocated instead of using strlen() on the current value. Convert all calls to POSIX from historic BSD API: - unsetenv returns an int. - putenv takes a char * instead of const char *. - putenv no longer makes a copy of the input string. - errno is set appropriately for POSIX. Exceptions involve bad environ variable and internal initialization code. These both set errno to EFAULT. Several patches to base utilities to handle the POSIX changes from Andrey Chernov's previous commit. A few I re-wrote to use setenv() instead of putenv(). New regression module for tools/regression/environ to test these functions. It also can be used to test the performance. Bump __FreeBSD_version to 700050 due to API change. PR: kern/99826 Approved by: wes Approved by: re (kensmith)
* Back out all POSIXified *env() changes.ache2007-05-011-2/+2
| | | | | | | | | Not because I admit they are technically wrong and not because of bug reports (I receive nothing). But because I surprisingly meets so strong opposition and resistance so lost any desire to continue that. Anyone who interested in POSIX can dig out what changes and how through cvs diffs.
* limits calls setenv("name=value", "value", 1); which violates POSIX:ache2007-04-301-2/+2
| | | | | | | "The setenv( ) function shall fail if: [EINVAL] The name argument is a null pointer, points to an empty string, or points to a string containing an '=' character." The fix (like all others in this subject) is backward-compatible.
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Use the accepted abbreviation "kB" for kilobyte, rather than "kb" (whichcperciva2004-12-191-7/+7
| | | | is the common unit for a kilobit).
* This code builds cleanly at WARNS level 6.des2004-11-081-0/+1
| | | | MFC after: 1 week
* Mechanically kill hard sentence breaks.ru2004-07-021-2/+2
|
* Uniformly refer to a file system as "file system".ru2002-12-121-2/+2
| | | | Approved by: re
* mdoc(7) police: laundry.ru2002-11-261-120/+152
| | | | Approved by: re
* Update the usage string in the limits(1) manpage to include -b forgreen2002-09-182-5/+6
| | | | | | sbsize. Also, correct the format string in getopt(3) usage to reflect that -b takes an argument, and correct another case of RLIMIT_SBSIZE having been forgotten.
* Consistently use FBSDIDobrien2002-06-301-2/+3
|
* Make limits(1) aware of the new vmemoryuse resource limit.dillon2002-06-262-16/+37
| | | | Submitted by: sheldonh
* Fix mdoc nits in preparation for RLIMIT_VMEM support:sheldonh2002-06-261-3/+5
| | | | | | | * add missing Ar macro for one instance of limitflags * fix indentation problem (not perfect, but then this is one _very_ awkward manpage mark up properly)
* Use `The .Nm utility'charnier2002-04-201-7/+12
|
* Warns cleanups:dwmalone2002-04-131-6/+9
| | | | | | | 1) Add missing initialisers. 2) Avoid shadowing rcswhich. 3) Use intmax_t and %j for printing rather than quad_t and %q. 4) Don't modify a variable twice between sequence points.
* Don't use gcc specific flags.dwmalone2002-04-011-1/+0
|
* Remove whitespace at EOL.dd2001-07-151-2/+2
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Remove duplicate words.dd2001-06-241-1/+1
|
* Handle sbsize as a size, not a number.sheldonh2001-05-101-1/+1
| | | | Submitted by: Paul Herman <pherman@frenchfries.net>
* Fixed some style bugs (bogus cloned Id, null overrides of defaults, andbde2001-02-171-7/+3
| | | | the usual style bugs for DPADD/LDADD).
* mdoc(7) police: replace -hang list with the -tag list,ru2001-02-141-7/+10
| | | | | | add missing .Xo/.Xc to the tags. This only worked due to the off-by-one bug in the -hang lists, which I will hopefully backport from the mdocNG shortly.
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-6/+6
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-7/+10
|
* Properly use .Nm, .Em, .Pa etc. Make usage() a simplier function.charnier2000-03-262-45/+60
|
* This implements the RLIMIT_SBSIZE ("sbsize") administrative limits forgreen1999-10-092-13/+26
| | | | | userland. Currently, it can be enforced by login and csh. More shells supporting sbsize are welcome.
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* Bad reference of setrlimit(3) changed to setrlimit(2).chris1999-08-141-2/+2
|
* Typo fix.ghelmer1999-04-131-2/+2
| | | | PR: docs/11022
* Reference the sysctl variables related to various limits.ghelmer1999-03-151-4/+13
| | | | PR: docs/6764
* Removed occurrences of consecutive repeated words (such as "the the").alex1999-02-121-2/+2
|
* Remove useless `BINOWN=root' now that it is the default.obrien1998-09-191-1/+0
|
* Fix a bunch of spelling errors.steve1998-06-041-3/+3
| | | | | PR: 6856 Submitted by: Josh Gilliam <josh@quick.net>
* In the SEE ALSO section, {get,set}rlimit are said to be in the sectionmax1998-05-081-3/+3
| | | | | | 3 which are actually in the section 2. Pointed out by: Brian Reichert <reichert@numachi.com> PR: 6480
* ulimit does not have its own manpage as it is a shell builtin.steve1998-02-011-2/+1
| | | | | PR: 5582 Submitted by: Craig Leres <leres@ee.lbl.gov>
* Sort cross refereces in section SEE ALSO.wosch1997-09-291-2/+2
|
* Cosmetic in usage string. Typos in man page.charnier1997-07-212-8/+20
|
* Fix typos.davidn1997-07-161-3/+3
| | | | | PR: 4101 Submitted by: Horikawa Kazuo <k-horik@mail.yk.rim.or.jp>
* login_getclass() -> login_getpwclass().davidn1997-05-101-497/+490
| | | | | | Updated (incorrect) entry for bash [-v]. Remove unused support for long rlim_t. Added "bash2" to bash style ulimit handling.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* limits(1): set and display process resources.davidn1997-01-213-0/+954
OpenPOWER on IntegriCloud