diff options
author | Brian Feldman <green@FreeBSD.org> | 1999-10-09 20:56:06 +0000 |
---|---|---|
committer | Brian Feldman <green@FreeBSD.org> | 1999-10-09 20:56:06 +0000 |
commit | 7cde774d158c85645da7cdad9f609915cb2b393c (patch) | |
tree | 963b388afef0805a45063883765eb8b7fc3d895b /bin/sh | |
parent | 6b3ced11a2b9225041e40efc39c5ffbcda94dab1 (diff) | |
download | src-7cde774d158c85645da7cdad9f609915cb2b393c.tar.gz src-7cde774d158c85645da7cdad9f609915cb2b393c.zip |
Implement ulimit -b for RLIMIT_SBSIZE.
Notes
Notes:
svn path=/head/; revision=52072
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/miscbltin.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/sh/miscbltin.c b/bin/sh/miscbltin.c index 24683572aab7..bb602f6a68af 100644 --- a/bin/sh/miscbltin.c +++ b/bin/sh/miscbltin.c @@ -349,6 +349,9 @@ static const struct limits limits[] = { #ifdef RLIMIT_SWAP { "swap limit", "kbytes", RLIMIT_SWAP, 1024, 'w' }, #endif +#ifdef RLIMIT_SBSIZE + { "sbsize", "bytes", RLIMIT_SBSIZE, 1, 'b' }, +#endif { (char *) 0, (char *)0, 0, 0, '\0' } }; @@ -367,7 +370,7 @@ ulimitcmd(argc, argv) struct rlimit limit; what = 'f'; - while ((optc = nextopt("HSatfdsmcnul")) != '\0') + while ((optc = nextopt("HSatfdsmcnulb")) != '\0') switch (optc) { case 'H': how = HARD; |