summaryrefslogtreecommitdiffstats
path: root/bin/sh/miscbltin.c
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-10-09 20:56:06 +0000
committergreen <green@FreeBSD.org>1999-10-09 20:56:06 +0000
commit962bd6c00ccfe28eb150ee775fa868f880bfee60 (patch)
tree9aac551aef5062edd70f928166fc68d393cdbc20 /bin/sh/miscbltin.c
parent14b89019c6f151d71fd698017bd5f36e1843357d (diff)
downloadFreeBSD-src-962bd6c00ccfe28eb150ee775fa868f880bfee60.zip
FreeBSD-src-962bd6c00ccfe28eb150ee775fa868f880bfee60.tar.gz
Implement ulimit -b for RLIMIT_SBSIZE.
Diffstat (limited to 'bin/sh/miscbltin.c')
-rw-r--r--bin/sh/miscbltin.c5
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;
OpenPOWER on IntegriCloud