#
319256 |
|
30-May-2017 |
asomers |
MFC r316500 (except the part to usr.bin/fortune)
strcpy => strlcpy, strcat => strlcat
Reported by: Coverity CID: 1006703 978863 1006745 1347163 Reviewed by: cem Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D10192
|
#
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 |
#
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/
|
#
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 |
|
03-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.
|
#
139038 |
|
19-Dec-2004 |
cperciva |
Use the accepted abbreviation "kB" for kilobyte, rather than "kb" (which is the common unit for a kilobit).
|
#
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
|
#
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.
|
#
76437 |
|
10-May-2001 |
sheldonh |
Handle sbsize as a size, not a number.
Submitted by: Paul Herman <pherman@frenchfries.net>
|
#
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 |
|
27-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
#
27573 |
|
21-Jul-1997 |
charnier |
Cosmetic in usage string. Typos in man page.
|
#
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.
|
#
21923 |
|
21-Jan-1997 |
davidn |
limits(1): set and display process resources.
|