History log of /freebsd-10.0-release/usr.bin/limits/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


235211 10-May-2012 gjb

General mdoc(7) and typo fixes.

PR: 167696
Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after: 3 days


230549 25-Jan-2012 trociny

Add -P option to allow get and set limits for other processes.

Submitted by: Andrey Zonov <andrey at zonov.org>
MFC after: 2 weeks


228992 30-Dec-2011 uqs

Spelling fixes for usr.bin/


220516 10-Apr-2011 trasz

Add link to rctl(8).


220358 05-Apr-2011 pluknet

Document -w for swapuse.

PR: docs/156089
Submitted by: Andrey Ignatov <rdna att rdna.ru>
MFC after: 1 week


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


200462 13-Dec-2009 delphij

Revert most part of 200420 as requested, as more review and polish is
needed.


200420 11-Dec-2009 delphij

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


194767 23-Jun-2009 kib

Usermode portion of the support for swap allocation accounting:
- update for getrlimit(2) manpage;
- support for setting RLIMIT_SWAP in login class;
- addition to the limits(1) and sh and csh limit-setting builtins;
- tuning(7) documentation on the sysctls controlling overcommit.

In collaboration with: pho
Reviewed by: alc
Approved by: re (kensmith)


182685 02-Sep-2008 ed

Add support for RLIMIT_NPTS to limits(1).

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>


171195 04-Jul-2007 scf

Significantly reduce the memory leak as noted in BUGS section for
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)


169177 01-May-2007 ache

Back out all POSIXified *env() changes.

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.


169147 30-Apr-2007 ache

limits calls setenv("name=value", "value", 1); which violates POSIX:
"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.


140368 17-Jan-2005 ru

Added the EXIT STATUS section where appropriate.


139038 19-Dec-2004 cperciva

Use the accepted abbreviation "kB" for kilobyte, rather than "kb" (which
is the common unit for a kilobit).


137391 08-Nov-2004 des

This code builds cleanly at WARNS level 6.

MFC after: 1 week


131491 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


107788 12-Dec-2002 ru

Uniformly refer to a file system as "file system".

Approved by: re


107267 26-Nov-2002 ru

mdoc(7) police: laundry.

Approved by: re


103549 18-Sep-2002 green

Update the usage string in the limits(1) manpage to include -b for
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.


99112 30-Jun-2002 obrien

Consistently use FBSDID


98850 26-Jun-2002 dillon

Make limits(1) aware of the new vmemoryuse resource limit.

Submitted by: sheldonh


98840 26-Jun-2002 sheldonh

Fix mdoc nits in preparation for RLIMIT_VMEM support:

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


95124 20-Apr-2002 charnier

Use `The .Nm utility'


94611 13-Apr-2002 dwmalone

Warns cleanups:
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.


93524 01-Apr-2002 dwmalone

Don't use gcc specific flags.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


78686 24-Jun-2001 dd

Remove duplicate words.


76437 10-May-2001 sheldonh

Handle sbsize as a size, not a number.

Submitted by: Paul Herman <pherman@frenchfries.net>


72559 17-Feb-2001 bde

Fixed some style bugs (bogus cloned Id, null overrides of defaults, and
the usual style bugs for DPADD/LDADD).


72477 14-Feb-2001 ru

mdoc(7) police: replace -hang list with the -tag list,
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.


71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


58609 26-Mar-2000 charnier

Properly use .Nm, .Em, .Pa etc. Make usage() a simplier function.


52071 09-Oct-1999 green

This implements the RLIMIT_SBSIZE ("sbsize") administrative limits for
userland. Currently, it can be enforced by login and csh. More
shells supporting sbsize are welcome.


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


49734 14-Aug-1999 chris

Bad reference of setrlimit(3) changed to setrlimit(2).


45638 13-Apr-1999 ghelmer

Typo fix.

PR: docs/11022


44786 15-Mar-1999 ghelmer

Reference the sysctl variables related to various limits.

PR: docs/6764


43920 12-Feb-1999 alex

Removed occurrences of consecutive repeated words (such as "the the").


39495 19-Sep-1998 obrien

Remove useless `BINOWN=root' now that it is the default.


36649 04-Jun-1998 steve

Fix a bunch of spelling errors.

PR: 6856
Submitted by: Josh Gilliam <josh@quick.net>


35843 08-May-1998 max

In the SEE ALSO section, {get,set}rlimit are said to be in the section
3 which are actually in the section 2.
Pointed out by: Brian Reichert <reichert@numachi.com>
PR: 6480


32963 01-Feb-1998 steve

ulimit does not have its own manpage as it is a shell builtin.

PR: 5582
Submitted by: Craig Leres <leres@ee.lbl.gov>


29988 29-Sep-1997 wosch

Sort cross refereces in section SEE ALSO.


27573 21-Jul-1997 charnier

Cosmetic in usage string. Typos in man page.


27450 16-Jul-1997 davidn

Fix typos.
PR: 4101
Submitted by: Horikawa Kazuo <k-horik@mail.yk.rim.or.jp>


25672 10-May-1997 davidn

login_getclass() -> login_getpwclass().
Updated (incorrect) entry for bash [-v].
Remove unused support for long rlim_t.
Added "bash2" to bash style ulimit handling.


24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21924 21-Jan-1997 davidn

This commit was generated by cvs2svn to compensate for changes in r21923,
which included commits to RCS files with non-trunk default branches.