aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/limits
Commit message (Collapse)AuthorAgeFilesLines
...
* Add link to rctl(8).Edward Tomasz Napierala2011-04-101-1/+2
| | | | Notes: svn path=/head/; revision=220516
* Document -w for swapuse.Sergey Kandaurov2011-04-051-3/+7
| | | | | | | | | PR: docs/156089 Submitted by: Andrey Ignatov <rdna att rdna.ru> MFC after: 1 week Notes: svn path=/head/; revision=220358
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+1
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-1/+0
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* Usermode portion of the support for swap allocation accounting:Konstantin Belousov2009-06-231-13/+23
| | | | | | | | | | | | | | - 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) Notes: svn path=/head/; revision=194767
* Add support for RLIMIT_NPTS to limits(1).Ed Schouten2008-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> Notes: svn path=/head/; revision=182685
* Significantly reduce the memory leak as noted in BUGS section forSean Farley2007-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) Notes: svn path=/head/; revision=171195
* Back out all POSIXified *env() changes.Andrey A. Chernov2007-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. Notes: svn path=/head/; revision=169177
* limits calls setenv("name=value", "value", 1); which violates POSIX:Andrey A. Chernov2007-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. Notes: svn path=/head/; revision=169147
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Use the accepted abbreviation "kB" for kilobyte, rather than "kb" (whichColin Percival2004-12-191-7/+7
| | | | | | | is the common unit for a kilobit). Notes: svn path=/head/; revision=139038
* This code builds cleanly at WARNS level 6.Dag-Erling Smørgrav2004-11-081-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=137391
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-2/+2
| | | | Notes: svn path=/head/; revision=131491
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-2/+2
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* mdoc(7) police: laundry.Ruslan Ermilov2002-11-261-120/+152
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107267
* Update the usage string in the limits(1) manpage to include -b forBrian Feldman2002-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. Notes: svn path=/head/; revision=103549
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+3
| | | | Notes: svn path=/head/; revision=99112
* Make limits(1) aware of the new vmemoryuse resource limit.Matthew Dillon2002-06-262-16/+37
| | | | | | | Submitted by: sheldonh Notes: svn path=/head/; revision=98850
* Fix mdoc nits in preparation for RLIMIT_VMEM support:Sheldon Hearn2002-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) Notes: svn path=/head/; revision=98840
* Use `The .Nm utility'Philippe Charnier2002-04-201-7/+12
| | | | Notes: svn path=/head/; revision=95124
* Warns cleanups:David Malone2002-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. Notes: svn path=/head/; revision=94611
* Don't use gcc specific flags.David Malone2002-04-011-1/+0
| | | | Notes: svn path=/head/; revision=93524
* Remove whitespace at EOL.Dima Dorfman2001-07-151-2/+2
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* Remove duplicate words.Dima Dorfman2001-06-241-1/+1
| | | | Notes: svn path=/head/; revision=78686
* Handle sbsize as a size, not a number.Sheldon Hearn2001-05-101-1/+1
| | | | | | | Submitted by: Paul Herman <pherman@frenchfries.net> Notes: svn path=/head/; revision=76437
* Fixed some style bugs (bogus cloned Id, null overrides of defaults, andBruce Evans2001-02-171-7/+3
| | | | | | | the usual style bugs for DPADD/LDADD). Notes: svn path=/head/; revision=72559
* mdoc(7) police: replace -hang list with the -tag list,Ruslan Ermilov2001-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. Notes: svn path=/head/; revision=72477
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-6/+6
| | | | Notes: svn path=/head/; revision=71895
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-7/+10
| | | | Notes: svn path=/head/; revision=68963
* Properly use .Nm, .Em, .Pa etc. Make usage() a simplier function.Philippe Charnier2000-03-262-45/+60
| | | | Notes: svn path=/head/; revision=58609
* This implements the RLIMIT_SBSIZE ("sbsize") administrative limits forBrian Feldman1999-10-092-13/+26
| | | | | | | | userland. Currently, it can be enforced by login and csh. More shells supporting sbsize are welcome. Notes: svn path=/head/; revision=52071
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50477
* Bad reference of setrlimit(3) changed to setrlimit(2).Chris Costello1999-08-141-2/+2
| | | | Notes: svn path=/head/; revision=49734
* Typo fix.Guy Helmer1999-04-131-2/+2
| | | | | | | PR: docs/11022 Notes: svn path=/head/; revision=45638
* Reference the sysctl variables related to various limits.Guy Helmer1999-03-151-4/+13
| | | | | | | PR: docs/6764 Notes: svn path=/head/; revision=44786
* Removed occurrences of consecutive repeated words (such as "the the").Alexander Langer1999-02-121-2/+2
| | | | Notes: svn path=/head/; revision=43920
* Remove useless `BINOWN=root' now that it is the default.David E. O'Brien1998-09-191-1/+0
| | | | Notes: svn path=/head/; revision=39495
* Fix a bunch of spelling errors.Steve Price1998-06-041-3/+3
| | | | | | | | PR: 6856 Submitted by: Josh Gilliam <josh@quick.net> Notes: svn path=/head/; revision=36649
* In the SEE ALSO section, {get,set}rlimit are said to be in the sectionMasafumi Max NAKANE1998-05-081-3/+3
| | | | | | | | | 3 which are actually in the section 2. Pointed out by: Brian Reichert <reichert@numachi.com> PR: 6480 Notes: svn path=/head/; revision=35843
* ulimit does not have its own manpage as it is a shell builtin.Steve Price1998-02-011-2/+1
| | | | | | | | PR: 5582 Submitted by: Craig Leres <leres@ee.lbl.gov> Notes: svn path=/head/; revision=32963
* Sort cross refereces in section SEE ALSO.Wolfram Schneider1997-09-291-2/+2
| | | | Notes: svn path=/head/; revision=29988
* Cosmetic in usage string. Typos in man page.Philippe Charnier1997-07-212-8/+20
| | | | Notes: svn path=/head/; revision=27573
* Fix typos.David Nugent1997-07-161-3/+3
| | | | | | | | PR: 4101 Submitted by: Horikawa Kazuo <k-horik@mail.yk.rim.or.jp> Notes: svn path=/head/; revision=27450
* login_getclass() -> login_getpwclass().David Nugent1997-05-101-497/+490
| | | | | | | | | Updated (incorrect) entry for bash [-v]. Remove unused support for long rlim_t. Added "bash2" to bash style ulimit handling. Notes: svn path=/head/; revision=25672
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24360
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-222-2/+2
| | | | Notes: svn path=/head/; revision=23012
* limits(1): set and display process resources.David Nugent1997-01-213-0/+954
Notes: svn path=/cvs2svn/branches/DAVIDN/; revision=21923