diff options
author | green <green@FreeBSD.org> | 1999-10-09 20:56:06 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-10-09 20:56:06 +0000 |
commit | 962bd6c00ccfe28eb150ee775fa868f880bfee60 (patch) | |
tree | 9aac551aef5062edd70f928166fc68d393cdbc20 /bin | |
parent | 14b89019c6f151d71fd698017bd5f36e1843357d (diff) | |
download | FreeBSD-src-962bd6c00ccfe28eb150ee775fa868f880bfee60.zip FreeBSD-src-962bd6c00ccfe28eb150ee775fa868f880bfee60.tar.gz |
Implement ulimit -b for RLIMIT_SBSIZE.
Diffstat (limited to 'bin')
-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 2468357..bb602f6 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; |