summaryrefslogtreecommitdiffstats
path: root/usr.bin/limits
Commit message (Collapse)AuthorAgeFilesLines
* MFHgjb2016-03-142-8/+17
|\ | | | | | | Sponsored by: The FreeBSD Foundation
| * Fix handling of umtxp resource limit in sh(1)/ulimit(1), limits(1), addkib2016-03-122-8/+17
| | | | | | | | | | | | | | | | login.conf(5) support. Reviewed by: jilles Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D5610
* | MFHgjb2016-03-101-0/+11
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * DIRDEPS_BUILD: Connect MK_TESTS.bdrewery2016-03-091-0/+11
| | | | | | | | Sponsored by: EMC / Isilon Storage Division
* | MFHgjb2016-03-021-1/+6
|\ \ | |/ | | | | Sponsored by: The FreeBSD Foundation
| * Implement process-shared locks support for libthr.so.3, withoutkib2016-02-281-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | breaking the ABI. Special value is stored in the lock pointer to indicate shared lock, and offline page in the shared memory is allocated to store the actual lock. Reviewed by: vangyzen (previous version) Discussed with: deischen, emaste, jhb, rwatson, Martin Simmons <martin@lispworks.com> Tested by: pho Sponsored by: The FreeBSD Foundation
* | First pass to fix the 'tests' packages.gjb2016-02-021-0/+4
|/ | | | Sponsored by: The FreeBSD Foundation
* Add some basic tests that exercise cputime limits with limits(1)ngie2015-11-093-0/+76
| | | | | MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-2/+1
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Merge headsjg2014-04-282-43/+42
| |\
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | Convert to usr.bin/ to LIBADDbapt2014-11-251-2/+1
| |/ |/| | | | | Reduce overlinking
* | sh(1),limits(1): Document kqueues (-k) rlimit.jilles2013-11-011-3/+7
| |
* | Remove the dependency on procfs.pluknet2013-11-011-19/+1
| | | | | | | | | | | | Reviewed by: kib MFC after: 1 week X-MFC with: r257430
* | Remove the dependency on procfs. Use sysctl KERN_PROC_PATHNAME andkib2013-10-311-14/+20
| | | | | | | | | | | | | | | | | | KERN_PROC_PID to obtain the parent process pathname and command, used to determine the calling shell. Submitted by: Stefan Neudorf PR: bin/183484 MFC after: 1 week
* | Fix long line and record proper commit message for r257427:kib2013-10-311-1/+2
| | | | | | | | | | | | | | | | Add the '-k' option for getopt() call and usage. Submitted by: Stefan Neudorf PR: bin/183494 MFC after: 1 week
* | The limit for the swap space is spelled 'swapsize', at least sincekib2013-10-311-3/+3
| | | | | | | | | | | | | | | | tcsh 6.17.00 import. Submitted by: Stefan Neudorf PR: bin/183480 MFC after: 1 week
* | The limit for the swap space is spelled 'swapsize', at least sincekib2013-10-311-2/+2
| | | | | | | | | | | | | | | | tcsh 6.17.00 import. Submitted by: Stefan Neudorf PR: bin/183480 MFC after: 1 week
* | Add a resource limit for the total number of kqueues available to thekib2013-10-211-5/+11
|/ | | | | | | | | | | | | | | | | | user. Kqueue now saves the ucred of the allocating thread, to correctly decrement the counter on close. Under some specific and not real-world use scenario for kqueue, it is possible for the kqueues to consume memory proportional to the square of the number of the filedescriptors available to the process. Limit allows administrator to prevent the abuse. This is kernel-mode side of the change, with the user-mode enabling commit following. Reported and tested by: pho Discussed with: jmg Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* General mdoc(7) and typo fixes.gjb2012-05-101-2/+2
| | | | | | PR: 167696 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* Add -P option to allow get and set limits for other processes.trociny2012-01-252-7/+91
| | | | | Submitted by: Andrey Zonov <andrey at zonov.org> MFC after: 2 weeks
* Spelling fixes for usr.bin/uqs2011-12-301-1/+1
|
* Add link to rctl(8).trasz2011-04-101-1/+2
|
* Document -w for swapuse.pluknet2011-04-051-3/+7
| | | | | | PR: docs/156089 Submitted by: Andrey Ignatov <rdna att rdna.ru> MFC after: 1 week
* Build usr.bin/ with WARNS=6 by default.ed2010-01-021-1/+0
| | | | Also add some missing $FreeBSD$ to keep svn happy.
* Revert most part of 200420 as requested, as more review and polish isdelphij2009-12-131-0/+1
| | | | needed.
* Remove unneeded header includes from usr.bin/ except contributed code.delphij2009-12-111-1/+0
| | | | Tested with: make universe
* Usermode portion of the support for swap allocation accounting:kib2009-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)
* 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.
OpenPOWER on IntegriCloud